Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497818 - dev-java/icedtea does not compile for "End-of-central-directory signature not found"
Summary: dev-java/icedtea does not compile for "End-of-central-directory signature not...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
Depends on:
Reported: 2014-01-11 18:54 UTC by Yichao Zhou
Modified: 2014-01-11 18:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
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- && /usr/bin/unzip -o /var/notmpfs/portage/dev-java/icedtea- )
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/, 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.