Bug 108799 - ports/archivers/unzip doesn't work with files >2Gb in archives
Summary: ports/archivers/unzip doesn't work with files >2Gb in archives
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Andrey A. Chernov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 12:40 UTC by George L. Yermulnik
Modified: 2007-02-08 18:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George L. Yermulnik 2007-02-05 12:40:39 UTC
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

Fix: 

+CFLAGS+=       -D_FILE_OFFSET_BITS=64
+
 .if defined(WITH_UNZIP_UNREDUCE)
 DISTFILES=     ${DISTNAME}${EXTRACT_SUFX} unreduce_full.zip
 EXTRACT_ONLY=  ${PORTNAME}552.tar.gz--H4hRAZEVFa3IOAPB8AbElIzPmjufBFTpjtHG88K8uUdb0Isq
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: /usr/local/bin/unzip test.zip (which contains file >2Gb)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-02-05 12:41:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ache

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-02-08 18:35:20 UTC
ache        2007-02-08 18:35:01 UTC

  FreeBSD ports repository

  Modified files:
    archivers/unzip      Makefile 
  Log:
  Make it work with files >2Gb in archives
  
  PR:             108799
  Submitted by:   "George L. Yermulnik" <yz@yz.kiev.ua>
  
  Revision  Changes    Path
  1.56      +2 -1      ports/archivers/unzip/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Andrey A. Chernov freebsd_committer freebsd_triage 2007-02-08 18:35:23 UTC
State Changed
From-To: open->closed

Committed