[arch-commits] Commit in zip/trunk (PKGBUILD zipnote.patch)

Gaetan Bisson bisson at archlinux.org
Wed Jan 13 07:13:55 UTC 2016


    Date: Wednesday, January 13, 2016 @ 08:13:54
  Author: bisson
Revision: 258153

fix FS#47713

Added:
  zip/trunk/zipnote.patch
Modified:
  zip/trunk/PKGBUILD

---------------+
 PKGBUILD      |    9 ++++++---
 zipnote.patch |   13 +++++++++++++
 2 files changed, 19 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-01-13 06:57:29 UTC (rev 258152)
+++ PKGBUILD	2016-01-13 07:13:54 UTC (rev 258153)
@@ -5,14 +5,16 @@
 pkgname=zip
 pkgver=3.0
 _pkgver=${pkgver/./}
-pkgrel=6
+pkgrel=7
 pkgdesc='Compressor/archiver for creating and modifying zipfiles'
 url='http://www.info-zip.org/Zip.html'
 arch=('i686' 'x86_64')
 license=('custom')
 depends=('bzip2')
-source=("http://downloads.sourceforge.net/infozip/${pkgname}${_pkgver}.tar.gz")
-sha1sums=('c9f4099ecf2772b53c2dd4a8e508064ce015d182')
+source=("http://downloads.sourceforge.net/infozip/${pkgname}${_pkgver}.tar.gz"
+        'zipnote.patch')
+sha1sums=('c9f4099ecf2772b53c2dd4a8e508064ce015d182'
+          'bb7301ba3339af9b9837dfc323777393f5c53a65')
 
 options=('!makeflags')
 
@@ -20,6 +22,7 @@
 	cd "${srcdir}/${pkgname}${_pkgver}"
 	sed -e "/^CFLAGS_NOOPT =/s/\$/ $CPPFLAGS $CFLAGS/" -i unix/Makefile
 	sed -e "s/^LFLAGS1=''/LFLAGS1=$LDFLAGS/" -i unix/configure
+	patch -p1 -i ../zipnote.patch
 }
 
 build() {

Added: zipnote.patch
===================================================================
--- zipnote.patch	                        (rev 0)
+++ zipnote.patch	2016-01-13 07:13:54 UTC (rev 258153)
@@ -0,0 +1,13 @@
+diff --git a/zipnote.c b/zipnote.c
+index 5e02cb6..996f012 100644
+--- a/zipnote.c
++++ b/zipnote.c
+@@ -661,7 +661,7 @@ char **argv;            /* command line tokens */
+     if ((r = zipcopy(z)) != ZE_OK)
+       ziperr(r, "was copying an entry");
+   }
+-  fclose(x);
++  fclose(in_file);
+ 
+   /* Write central directory and end of central directory with new comments */
+   if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */



More information about the arch-commits mailing list