Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2007 12:34:03 GMT
From:      "George L. Yermulnik"<yz@yz.kiev.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/108799: ports/archivers/unzip doesn't work with files >2Gb in archives
Message-ID:  <200702051234.l15CY33J060912@www.freebsd.org>
Resent-Message-ID: <200702051240.l15Cefxc039458@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         108799
>Category:       ports
>Synopsis:       ports/archivers/unzip doesn't work with files >2Gb in archives
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 05 12:40:39 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     George L. Yermulnik
>Release:        FreeBSD 4.11-STABLE
>Organization:
>Environment:
FreeBSD yz.iptelecom.net.ua 4.11-STABLE FreeBSD 4.11-STABLE #66: Thu Oct 19 19:13:39 EEST 2006     root@yz.iptelecom.net.ua:/usr/src/sys/compile/YZ  i386
>Description:
ports/archivers/unzip doesn't work with files >2Gb in archives - when there's a file more than 2Gb in archive, unzip reports "File too large".
This can be fixed by adding "_FILE_OFFSET_BITS=64" to "CFLAGS" in ports/archivers/unzip/Makefile
>How-To-Repeat:
/usr/local/bin/unzip test.zip (which contains file >2Gb)
>Fix:
--- ports/archivers/unzip/Makefile.orig Mon Feb  5 14:32:30 2007
+++ ports/archivers/unzip/Makefile      Mon Feb  5 14:32:32 2007
@@ -23,6 +23,8 @@
 PORTDOCS=      README WHERE
 MAN1=          funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1

+CFLAGS+=       -D_FILE_OFFSET_BITS=64
+
 .if defined(WITH_UNZIP_UNREDUCE)
 DISTFILES=     ${DISTNAME}${EXTRACT_SUFX} unreduce_full.zip
 EXTRACT_ONLY=  ${PORTNAME}552.tar.gz
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702051234.l15CY33J060912>