mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
main/thunar: buildfix: needs patch for libpng-1.4
This commit is contained in:
parent
425c9ab2e8
commit
d4b33335f1
@ -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"
|
||||
|
||||
12
main/thunar/libpng-1.4.patch
Normal file
12
main/thunar/libpng-1.4.patch
Normal 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;
|
||||
Loading…
x
Reference in New Issue
Block a user