main/thunar: buildfix: needs patch for libpng-1.4

This commit is contained in:
Natanael Copa 2010-01-29 13:22:27 +00:00
parent 425c9ab2e8
commit d4b33335f1
2 changed files with 21 additions and 2 deletions

View File

@ -11,11 +11,17 @@ makedepends="pkgconfig libexif-dev xfce4-panel-dev exo-dev pcre-dev
intltool gettext-dev libiconv-dev expat-dev startup-notification-dev
libsm-dev e2fsprogs-dev gamin-dev libexif-dev"
install=
source="http://archive.xfce.org/src/xfce/thunar/${pkgver%.*}/Thunar-$pkgver.tar.bz2"
source="http://archive.xfce.org/src/xfce/thunar/${pkgver%.*}/Thunar-$pkgver.tar.bz2
libpng-1.4.patch"
depends_dev="exo-dev glib-dev gamin-dev"
_builddir="$srcdir"/Thunar-$pkgver
prepare() {
cd "$_builddir"
patch -p1 -i "$srcdir"/libpng-1.4.patch
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
@ -35,4 +41,5 @@ package() {
sed -i 's:x-directory/gnome-default-handler;::' "$pkgdir"/usr/share/applications/Thunar-folder-handler.desktop
}
md5sums="218373aa45d74b6ba8c69c4d5af3bb19 Thunar-1.0.1.tar.bz2"
md5sums="218373aa45d74b6ba8c69c4d5af3bb19 Thunar-1.0.1.tar.bz2
ee998c20ba13d0cb18741da8b7d67328 libpng-1.4.patch"

View File

@ -0,0 +1,12 @@
diff -Naur Thunar-1.0.1.orig/thunar-vfs/thunar-vfs-thumb.c Thunar-1.0.1/thunar-vfs/thunar-vfs-thumb.c
--- Thunar-1.0.1.orig/thunar-vfs/thunar-vfs-thumb.c 2010-01-20 21:31:35.000000000 -0500
+++ Thunar-1.0.1/thunar-vfs/thunar-vfs-thumb.c 2010-01-20 21:34:51.000000000 -0500
@@ -1169,7 +1169,7 @@
goto done0;
/* verify the png signature */
- if (G_LIKELY (png_check_sig ((png_bytep) signature, sizeof (signature))))
+ if (G_LIKELY (!png_sig_cmp ((png_bytep) signature, 0, sizeof (signature))))
rewind (fp);
else
goto done0;