Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493054 - Emerging dev-java/osgi-core-api-5.0.0 fails: potage tries to unpack osgi.core-5.0.0.jar
Summary: Emerging dev-java/osgi-core-api-5.0.0 fails: potage tries to unpack osgi.core...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-01 19:01 UTC by Viktar Patotski
Modified: 2014-02-03 10:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Viktar Patotski 2013-12-01 19:01:36 UTC
Getting strange error while updating world and particullary emerging "dev-java/osgi-core-api-5.0.0". For some reason portage tries to unpack osgi.core-5.0.0.jar which I downloaded and placed to /usr/portage/distfiles. Emerge log:

>>> Emerging (1 of 205) dev-java/osgi-core-api-5.0.0
 * osgi.core-5.0.0.jar SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                    [ ok ]
 * Using: oracle-jdk-bin-1.7
>>> Unpacking source...
>>> Unpacking osgi.core-5.0.0.jar to /var/tmp/portage/dev-java/osgi-core-api-5.0.0/work
error:  cannot open zipfile [ /var/tmp/portage/dev-java/osgi-core-api-5.0.0/distdir/osgi.core-5.0.0.jar ]
        Permission denied
unzip:  cannot find or open /var/tmp/portage/dev-java/osgi-core-api-5.0.0/distdir/osgi.core-5.0.0.jar, /var/tmp/portage/dev-java/osgi-core-api-5.0.0/distdir/osgi.core-5.0.0.jar.zip or /var/tmp/portage/dev-java/osgi-core-api-5.0.0/distdir/osgi.core-5.0.0.jar.ZIP.
 * ERROR: dev-java/osgi-core-api-5.0.0::gentoo failed (unpack phase):
 *   failure unpacking osgi.core-5.0.0.jar
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_unpack
 *        environment, line 3968:  Called __eapi0_src_unpack
 *   phase-helpers.sh, line  641:  Called unpack 'osgi.core-5.0.0.jar'
 *   phase-helpers.sh, line  346:  Called die
 * The specific snippet of code:
 *               ( set +x ; while true ; do echo n || break ; done ) | \
 *               unzip -qo "${srcdir}${x}" || die "$myfail"
 *
 * If you need support, post the output of `emerge --info '=dev-java/osgi-core-api-5.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/osgi-core-api-5.0.0::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=oracle-jdk-bin-1.7  CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.7.0.21"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER=""
and of course, the output of emerge --info =osgi-core-api-5.0.0
 * The complete build log is located at '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/work'
 * S: '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/work'

>>> Failed to emerge dev-java/osgi-core-api-5.0.0, Log file:

>>>  '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/temp/build.log'

 * Messages for package dev-java/osgi-core-api-5.0.0:

 * ERROR: dev-java/osgi-core-api-5.0.0::gentoo failed (unpack phase):
 *   failure unpacking osgi.core-5.0.0.jar
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_unpack
 *        environment, line 3968:  Called __eapi0_src_unpack
 *   phase-helpers.sh, line  641:  Called unpack 'osgi.core-5.0.0.jar'
 *   phase-helpers.sh, line  346:  Called die
 * The specific snippet of code:
 *               ( set +x ; while true ; do echo n || break ; done ) | \
 *               unzip -qo "${srcdir}${x}" || die "$myfail"
 *
 * If you need support, post the output of `emerge --info '=dev-java/osgi-core-api-5.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/osgi-core-api-5.0.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/work'
 * S: '/var/tmp/portage/dev-java/osgi-core-api-5.0.0/work'
Comment 1 Ralph Sennhauser (RETIRED) gentoo-dev 2013-12-11 18:23:17 UTC
Please check ownership and permissions of the distfile in question.

ls -l /usr/portage/distfile/osgi.core-5.0.0.jar
Comment 2 Jean-Claude Repetto 2014-02-03 09:36:20 UTC
Same problem for me.

This is the answer to Ralph's question :
-rw------- 1 jcr users 418232 30 janv. 17:30 /usr/portage/distfiles/osgi.core-5.0.0.jar

After executing :
chmod 644 /usr/portage/distfiles/osgi.core-5.0.0.jar
it works !

Could this be added to the ebuild ?
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-02-03 10:38:22 UTC
That's outside the ebuild scope, it has no permissions to change permissions.