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

Bug 497818

Summary: dev-java/icedtea does not compile for "End-of-central-directory signature not found"
Product: Gentoo Linux Reporter: Yichao Zhou <broken.zhou>
Component: [OLD] JavaAssignee: Java team <java>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Yichao Zhou 2014-01-11 18:54:20 UTC
1.  echo 'UNZIP="-O CP936"' > /etc/env.d/zip

I use this setting because in our country the filename in all zip files is encoding in CP936.

2.  env-update

3.  emerge -1 dev-java/icedtea

emerge should fail at something like
( cd  /var/notmpfs/portage/dev-java/icedtea-7.2.4.3/work/icedtea-2.4.3/openjdk.build && /usr/bin/unzip -o /var/notmpfs/portage/dev-java/icedtea-7.2.4.3/work/icedtea-2.4.3/openjdk.build/corba/dist/lib/bin.zip )
Archive:  /usr/bin/unzip
  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.
note:  /usr/bin/unzip may be a plain executable, not an archive
unzip:  cannot find zipfile directory in one of /usr/bin/unzip or
        /usr/bin/unzip.zip, and cannot find /usr/bin/unzip.ZIP, period.


It seems that after setting UNZIP environment variable, the build system of icedtea cannot find unzip correctly and set UNZIP=/usr/bin/unzip.  This lead unzip to be insane.