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

Bug 77134

Summary: Can't emerge dev-java/java-sdk-docs-1.4.2, zip error
Product: Gentoo Linux Reporter: Justin Findlay <jfindlay>
Component: New packagesAssignee: Java team <java>
Status: VERIFIED WORKSFORME    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: make.conf

Description Justin Findlay 2005-01-08 07:15:56 UTC
# emerge -vuD world
...
>>> md5 src_uri ;-) j2sdk-1_4_2-doc.zip
>>> Unpacking source...
>>> Unpacking j2sdk-1_4_2-doc.zip to /var/tmp/portage/java-sdk-docs-1.4.2/work
error:  cannot open zipfile [ /usr/portage/distfiles/j2sdk-1_4_2-doc.zip ]
unzip:  cannot find /usr/portage/distfiles/j2sdk-1_4_2-doc.zip, /usr/portage/distfiles/j2sdk-1_4_2-doc.zip.zip or /usr/portage/distfiles/j2sdk-1_4_2-doc.zip.ZIP.
...
# file /usr/portage/distfiles/j2sdk-1_4_2-doc.zip
/usr/portage/distfiles/j2sdk-1_4_2-doc.zip: Zip archive data, at least v1.0 to extract
Comment 1 Justin Findlay 2005-01-08 07:16:56 UTC
Created attachment 47940 [details]
make.conf
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-08 23:16:50 UTC
no way to reproduce this error, i've tried it on different independent systems and even on different architectures. no way to reproduce it. marking it as worksforme. 
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2005-01-09 04:08:28 UTC
Works for me too. Maybe you have problems in your unzip program?
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-09 04:13:49 UTC
or as axxo suggested: check that the permissions on the file are sufficient. 
Comment 5 Thomas Matthijs (RETIRED) gentoo-dev 2005-01-09 04:15:01 UTC
you probably do not have to correct premissions on the file
make sure portage:portage or root:portage(not sure) can read it
Comment 6 Justin Findlay 2005-01-10 17:20:57 UTC
archimedes root # ls -lh /usr/portage/distfiles/j2sdk-1_4_2-doc.zip
-rw-------    1 justin   justin        33M Jan  8 02:10 /usr/portage/distfiles/j
2sdk-1_4_2-doc.zip
archimedes root # chown root:portage /usr/portage/distfiles/j2sdk-1_4_2-doc.zip
archimedes root # chmod 664 /usr/portage/distfiles/j2sdk-1_4_2-doc.zip
archimedes root # ls -lh /usr/portage/distfiles/j2sdk-1_4_2-doc.zip
-rw-rw-r--    1 root     portage       33M Jan  8 02:10 /usr/portage/distfiles/j2sdk-1_4_2-doc.zip
archimedes root # emerge -v dev-java/java-sdk-docs
...
Success.  Excuse the newbie mistake, though I wouldn't have thought to check the permissions from the error that emerge gave.
Comment 7 Jan Brinkmann (RETIRED) gentoo-dev 2005-01-11 02:17:13 UTC
no problem at all, the most important thing is that everything works fine for you.