[arch-commits] Commit in mtpaint/trunk (PKGBUILD giflib.patch)
Alexander Rødseth
arodseth at nymeria.archlinux.org
Wed May 28 14:32:38 UTC 2014
Date: Wednesday, May 28, 2014 @ 16:32:38
Author: arodseth
Revision: 112013
upgpkg: mtpaint 3.40-14
Added:
mtpaint/trunk/giflib.patch
Modified:
mtpaint/trunk/PKGBUILD
--------------+
PKGBUILD | 9 +++++++--
giflib.patch | 29 +++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-05-28 14:23:32 UTC (rev 112012)
+++ PKGBUILD 2014-05-28 14:32:38 UTC (rev 112013)
@@ -15,12 +15,17 @@
makedepends=('gtk2' 'giflib' 'libjpeg' 'openjpeg' 'lcms2' 'libtiff' 'libpng'
'freetype2')
install='mtpaint.install'
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2")
-sha256sums=('ef321d2b404839c7b909bdf5283eb22a37fbdd35b4cc9e380ddc400573d7c890')
+source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2"
+ 'giflib.patch')
+sha256sums=('ef321d2b404839c7b909bdf5283eb22a37fbdd35b4cc9e380ddc400573d7c890'
+ '38b3a50d7275e9dc3fe8c78e774b51fa55fc7bf11a490c13b4974455c7db830c')
prepare() {
cd "$pkgname-$pkgver"
+ # GIFLIB patch for the file close function
+ patch -p0 -i "$srcdir/giflib.patch"
+
# Recommended by Mark Tyler himself
sed -i 's:$LIBS $LDFLAGS:$LDFLAGS $LIBS:' configure
Added: giflib.patch
===================================================================
--- giflib.patch (rev 0)
+++ giflib.patch 2014-05-28 14:32:38 UTC (rev 112013)
@@ -0,0 +1,29 @@
+--- src/png.c 2014-05-28 12:02:50.000000000 +0200
++++ src2/png.c 2014-05-28 12:02:43.569815883 +0200
+@@ -1608,7 +1608,7 @@
+ }
+ res = 1;
+ fail: mem_free_chanlist(w_set.img);
+- DGifCloseFile(giffy);
++ DGifCloseFile(giffy, NULL);
+ return (res);
+ }
+
+@@ -1659,7 +1659,7 @@
+ }
+ }
+ res = 1;
+-fail: DGifCloseFile(giffy);
++fail: DGifCloseFile(giffy, NULL);
+ return (res);
+ }
+
+@@ -1725,7 +1725,7 @@
+ if (!settings->silent) progress_end();
+ msg = 0;
+
+-fail: EGifCloseFile(giffy);
++fail: EGifCloseFile(giffy, NULL);
+ #ifndef WIN32
+ /* giflib creates files with 0600 permissions, which is nasty - WJ */
+ mode = umask(0022);
More information about the arch-commits
mailing list