On 01/09/14 00:04, Ted Unangst wrote:
> On Wed, Jan 08, 2014 at 14:53, Ted Unangst wrote:
> 
>> After a few hints from others, it's definitely unzip 6.0 that's broken.
>> Rolling the port back to unzip 5.52 works fine. Filing a bug with
>> upstream if I can figure out how.
> 
> Rejoice! Steven Schweda replied and it's a known issue, with a patch. 
> 
> http://article.gmane.org/gmane.comp.version-control.git/181173
> 
> I delegate incorporating this patch into the port to you, the lucky
> reader. I can mostly only mess things up. :)
> 
free commit for you, lucky reader, time to go to sleep here.
 Cheers
  Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/archivers/unzip/Makefile,v
retrieving revision 1.46
diff -u -p -u -p -r1.46 Makefile
--- Makefile	16 Jul 2013 18:44:39 -0000	1.46
+++ Makefile	8 Jan 2014 23:19:25 -0000
@@ -5,7 +5,7 @@ COMMENT=	extract, list & test files in a
 VERSION=	6.0
 DISTNAME=	unzip${VERSION:S/.//}
 PKGNAME=	unzip-${VERSION}
-REVISION =	2
+REVISION =	3
 CATEGORIES=	archivers
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=infozip/} \
 		http://mirror.switch.ch/ftp/mirror/infozip/src/ \
Index: patches/patch-process_c
===================================================================
RCS file: patches/patch-process_c
diff -N patches/patch-process_c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-process_c	8 Jan 2014 23:19:25 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+--- process.c.orig	Thu Jan  9 00:14:26 2014
++++ process.c	Thu Jan  9 00:15:49 2014
+@@ -1751,6 +1751,12 @@ int process_cdir_file_hdr(__G)    /* return PK-type er
+         = (G.crec.general_purpose_bit_flag & (1 << 11)) == (1 << 11);
+ #endif
+ 
++#ifdef SYMLINKS
++    /* Initialize the symlink flag, may be set by the platform-specific
++       mapattr function.  */
++    G.pInfo->symlink = 0;
++#endif
++
+     return PK_COOL;
+ 
+ } /* end function process_cdir_file_hdr() */

Reply via email to