Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 341909

Summary: >=app-arch/unzip-5.0: does not recognize .zip files correctly if built with -malign-double on x86
Product: Gentoo Linux Reporter: Christian Franke <nobody-gentoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: jer
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christian Franke 2010-10-20 15:54:48 UTC
If there is -malign-double in CFLAGS, app-arch/unzip builds fine, however it fails to unpack any zip file. This is on x86.

The ebuild might filter -malign-double.

Reproducible: Always

Steps to Reproduce:
1. add -malign-double to CFLAGS
2. reemerge app-arch/unpack
3. try to unpack a zip file

Actual Results:  
sccd unzip60 # ./unzip testmake.zip
Archive:  testmake.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of testmake.zip or
        testmake.zip.zip, and cannot find testmake.zip.ZIP, period.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-20 16:30:04 UTC
You can resolve this by removing -malign-double from CFLAGS. Gentoo does not support it.