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'
Please check ownership and permissions of the distfile in question. ls -l /usr/portage/distfile/osgi.core-5.0.0.jar
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 ?
That's outside the ebuild scope, it has no permissions to change permissions.