Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357633 - dev-java/icedtea-6.1.10.4 fails at src_install (cacerts creation problem) with USE=jamvm
Summary: dev-java/icedtea-6.1.10.4 fails at src_install (cacerts creation problem) wit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-06 12:50 UTC by Daniel Pielmeier
Modified: 2014-01-28 18:45 UTC (History)
5 users (show)

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


Attachments
emerge.info (emerge.info,4.68 KB, text/plain)
2011-03-06 12:51 UTC, Daniel Pielmeier
Details
build.log (dev-java:icedtea-6.1.10:20110306-122441.log.bz2,246.50 KB, application/octet-stream)
2011-03-06 12:52 UTC, Daniel Pielmeier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Pielmeier gentoo-dev 2011-03-06 12:50:16 UTC
* Generating cacerts file from certificates in /usr/share/ca-certificates/
cp: cannot stat `cacerts': No such file or directory
 * ERROR: dev-java/icedtea-6.1.10 failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 4594:  Called die
 * The specific snippet of code:
 *       cp -vRP cacerts "${ddest}/jre/lib/security/" || die;


I guess something goes wrong with generate-cacerts.pl that runs before.
Comment 1 Daniel Pielmeier gentoo-dev 2011-03-06 12:51:00 UTC
Created attachment 264921 [details]
emerge.info
Comment 2 Daniel Pielmeier gentoo-dev 2011-03-06 12:52:26 UTC
Created attachment 264923 [details]
build.log
Comment 3 Daniel Pielmeier gentoo-dev 2011-03-06 12:53:06 UTC
USE flags: dev-java/icedtea-6.1.10 [6.1.9.7-r1] USE="cacao hs20%* jamvm%* nio2 nsplugin nss webstart xrender zero -debug -doc -examples -javascript -pulseaudio -systemtap (-hs19%*)" 
Comment 4 Daniel Pielmeier gentoo-dev 2011-03-08 20:50:07 UTC
Looks like this is a problem with the keytool binary. Running ./generate-cacerts.pl ./generate-cacerts.pl "${ddest}/bin/keytool" all.crt does not generate the cacerts file and thus copying fails afterwards. When I use the keytools binary from the installed version of dev-java/icedtea-6.1.9.7-r1 the file is created and the installation completes.
Comment 5 Daniel Pielmeier gentoo-dev 2011-03-09 17:58:59 UTC
I reverted to dev-java/icedtea-6.1.9.7-r1 for now as dev-java/icedtea-6.1.10 segfaults.

java -version
Segmentation fault
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-03-25 17:53:29 UTC
(In reply to comment #3)
> USE flags: dev-java/icedtea-6.1.10 [6.1.9.7-r1] USE="cacao hs20%* jamvm%* nio2
> nsplugin nss webstart xrender zero -debug -doc -examples -javascript
> -pulseaudio -systemtap (-hs19%*)" 

Any difference without zero USE flag?
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-03-25 17:54:23 UTC
(In reply to comment #6)
> (In reply to comment #3)
> > USE flags: dev-java/icedtea-6.1.10 [6.1.9.7-r1] USE="cacao hs20%* jamvm%* nio2
> > nsplugin nss webstart xrender zero -debug -doc -examples -javascript
> > -pulseaudio -systemtap (-hs19%*)" 
> 
> Any difference without zero USE flag?

Oh, and also without cacao and jamvm...
Comment 8 Daniel Pielmeier gentoo-dev 2011-03-25 22:31:34 UTC
Building without jamvm succeeds.
Comment 9 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-03-30 11:49:22 UTC
Andrew: looks like USE=jamvm fails.
Comment 10 Daniel Pielmeier gentoo-dev 2011-04-11 20:55:56 UTC
This issue remains in dev-java/icedtea-6.1.10.1.
Comment 11 Daniel Pielmeier gentoo-dev 2011-10-28 18:15:31 UTC
Still there in dev-java/icedtea-6.1.10.4.
Comment 12 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-10-28 23:24:29 UTC
Thanks for the info. I suggest not using cacao or jamvm (or zero) unless you have some special reason for that.
Comment 13 Johannes Hirte 2011-12-07 08:28:32 UTC
dev-java/icedtea-7.2.0-r3 is affected too
Comment 14 Markus Knetschke 2012-12-26 23:32:59 UTC
Fails also on arm (with jamvm) with gcj-jdk compiler.

Error is:
* Generating cacerts file from certificates in /usr/share/ca-certificates/
Exception occurred while printing exception (java/lang/NoClassDefFoundError)...
Original exception was java/lang/NoClassDefFoundError
Exception in thread "main" Exception occurred while printing exception (java/lang/NoClassDefFoundError)...
Original exception was java/lang/NoClassDefFoundError
Exception occurred while printing exception (java/lang/NoClassDefFoundError)...
Original exception was java/lang/NoClassDefFoundError
...(a lot more...)
Exception in thread "main" Exception occurred while printing exception (java/lang/NoClassDefFoundError)...
Original exception was java/lang/NoClassDefFoundError
cp: cannot stat 'cacerts': No such file or directory
Comment 15 Daniel Pielmeier gentoo-dev 2013-10-13 16:23:05 UTC
I tried to test this with dev-java/icedtea-6.1.12.6 but there is no jamvm use flag anymore. How do we proceed now. Can we close this bug?
Comment 16 Daniel Pielmeier gentoo-dev 2013-11-30 14:54:57 UTC
(In reply to Daniel Pielmeier from comment #15)
> I tried to test this with dev-java/icedtea-6.1.12.6 but there is no jamvm
> use flag anymore. How do we proceed now. Can we close this bug?

Ping!
Comment 17 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-11-30 15:02:09 UTC
>  18 Nov 2011; Vlastimil Babka <caster@gentoo.org> icedtea-6.1.10.4-r1.ebuild,
>  icedtea-7.2.0-r1.ebuild:
>  Remove 'cacao' and 'jamvm' USE flags. Also remove 'zero' flag and have it
>  used only for ppc/ppc64. This functionality was experimental and brought more
>  problems than benefits. Also remove the bootstrapping with cacao due to
>  failures. Fixes numerous bugs.

Appears it was removed because it was experimental; I don't really know this package or what is going on with it (apart from having done one version bump), I hope one of the other developers can highlight the situation.
Comment 18 Ralph Sennhauser (RETIRED) gentoo-dev 2014-01-28 18:45:39 UTC
(In reply to Daniel Pielmeier from comment #15)
> I tried to test this with dev-java/icedtea-6.1.12.6 but there is no jamvm
> use flag anymore. How do we proceed now. Can we close this bug?

Indeed. Jamvm is currently working even tho we don't expose it directly anymore.

Thanks for the report and sorry for taking so long getting back to this.