Gentoo Archives: gentoo-java

From: Martin von Gagern <Martin.vGagern@×××.net>
To: gentoo-java@l.g.o
Subject: [gentoo-java] Experiences when switching
Date: Wed, 02 Nov 2005 12:52:01
Message-Id: 4368B617.2040403@gmx.net
1 Hi!
2
3 This is a report about what I experienced when switching to the
4 axxo-overlay. I used sun-jdk-1.5 as system vm before. Those were the
5 (successful) steps that got me there:
6
7 * checkout and activate overlay
8 * remerge jdk packages
9 * remove stale config files in /etc/env.d/java that do not have
10 PROVIDES_TYPE and PROVIDES_VERSION set
11 * java-config, setting 1.5 as system vm again (got changed by remerge)
12 * env-update
13 * start new session (su -) to get clean environment (without JAVAC set!)
14 * emerge ant-core (will fail if JAVAC is set to 1.5 compiler)
15 Annotation: BOOTJAVAC_OPTS should probably set to include -source and
16 -target, and JAVAC should perhaps be set by ebuild or
17 unset so that ${JAVA_HOME}/bin/javac is used
18 * unmerge jsch and jdepend (which had classes in 1.5 format which caused
19 ant to fail with an UnsupportedClassVersionError)
20 * remerge all installed 1.5 files in correct order using
21 class-version-verify.py from the gentoo-wiki.
22 * emerge -uavND world
23
24 There were two bugs in the second to last step.
25
26 dev-java/commons-modeler-1.1 fails. It depend on a sun-jmx-1.2.1 but
27 this version is named simply "jmx" by java-config, so I had to manually
28 update to sun-jmx-1.2.1-r1 before updating commons-modeler-1.1.
29 I did not yet file a bug for this as I experienced this only with
30 axxo-overlay so far, and don't know if the main portage tree has the
31 same problem.
32
33 dev-java/gnu-jaf-1.0-r2 fails. "make: invalid option -- 1". I changed
34 "-k1" to "-j1" in the ebuild. Looks very much like a typo.
35
36 The update world is still running, but I gotta go.
37
38 This is the second time I had trouble with the /usr/bin/ant script
39 loading classes into the classpath that I did not want. The other time
40 was when I wanted to use a development snapshot of cup from
41 http://www2.in.tum.de/projects/cup/ but this did not work as the cup
42 bundled with xalan. I would really want some way to set an environment
43 variable or command line flag and thus select the list of packages
44 loaded into the classpath for ant, overriding the list currently
45 included. Then one would not have to unmerge jsch and jdepend but could
46 instead set this package list to include only the list of dependencies
47 of the package currently emerged.
48 I filed this as http://bugs.gentoo.org/show_bug.cgi?id=111227
49
50 Another question yet is if xalan does indeed need cup itself or if the
51 cup runtime library would be enough. If someone has time to look into
52 this, feel free to do so, but this has low priority for me right now.
53
54 I first tried to use gentoo-java-experimental and axxo-overlay together,
55 given in this order. This failed for sys-libs/db-4.2.52_p2-r1. This is
56 the reason why I chose to update to axxo-overlay first and try
57 gentoo-java-experimental later this week.
58
59 Greetings,
60 Martin von Gagern (MvG)

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-java] Experiences when switching Joshua Nichols <joshua.nichols@×××××.com>