* [gentoo-java] Experiences when switching
@ 2005-11-02 12:50 Martin von Gagern
2005-11-08 4:51 ` Joshua Nichols
0 siblings, 1 reply; 2+ messages in thread
From: Martin von Gagern @ 2005-11-02 12:50 UTC (permalink / raw
To: gentoo-java
[-- Attachment #1: Type: text/plain, Size: 2802 bytes --]
Hi!
This is a report about what I experienced when switching to the
axxo-overlay. I used sun-jdk-1.5 as system vm before. Those were the
(successful) steps that got me there:
* checkout and activate overlay
* remerge jdk packages
* remove stale config files in /etc/env.d/java that do not have
PROVIDES_TYPE and PROVIDES_VERSION set
* java-config, setting 1.5 as system vm again (got changed by remerge)
* env-update
* start new session (su -) to get clean environment (without JAVAC set!)
* emerge ant-core (will fail if JAVAC is set to 1.5 compiler)
Annotation: BOOTJAVAC_OPTS should probably set to include -source and
-target, and JAVAC should perhaps be set by ebuild or
unset so that ${JAVA_HOME}/bin/javac is used
* unmerge jsch and jdepend (which had classes in 1.5 format which caused
ant to fail with an UnsupportedClassVersionError)
* remerge all installed 1.5 files in correct order using
class-version-verify.py from the gentoo-wiki.
* emerge -uavND world
There were two bugs in the second to last step.
dev-java/commons-modeler-1.1 fails. It depend on a sun-jmx-1.2.1 but
this version is named simply "jmx" by java-config, so I had to manually
update to sun-jmx-1.2.1-r1 before updating commons-modeler-1.1.
I did not yet file a bug for this as I experienced this only with
axxo-overlay so far, and don't know if the main portage tree has the
same problem.
dev-java/gnu-jaf-1.0-r2 fails. "make: invalid option -- 1". I changed
"-k1" to "-j1" in the ebuild. Looks very much like a typo.
The update world is still running, but I gotta go.
This is the second time I had trouble with the /usr/bin/ant script
loading classes into the classpath that I did not want. The other time
was when I wanted to use a development snapshot of cup from
http://www2.in.tum.de/projects/cup/ but this did not work as the cup
bundled with xalan. I would really want some way to set an environment
variable or command line flag and thus select the list of packages
loaded into the classpath for ant, overriding the list currently
included. Then one would not have to unmerge jsch and jdepend but could
instead set this package list to include only the list of dependencies
of the package currently emerged.
I filed this as http://bugs.gentoo.org/show_bug.cgi?id=111227
Another question yet is if xalan does indeed need cup itself or if the
cup runtime library would be enough. If someone has time to look into
this, feel free to do so, but this has low priority for me right now.
I first tried to use gentoo-java-experimental and axxo-overlay together,
given in this order. This failed for sys-libs/db-4.2.52_p2-r1. This is
the reason why I chose to update to axxo-overlay first and try
gentoo-java-experimental later this week.
Greetings,
Martin von Gagern (MvG)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-java] Experiences when switching
2005-11-02 12:50 [gentoo-java] Experiences when switching Martin von Gagern
@ 2005-11-08 4:51 ` Joshua Nichols
0 siblings, 0 replies; 2+ messages in thread
From: Joshua Nichols @ 2005-11-08 4:51 UTC (permalink / raw
To: Martin von Gagern; +Cc: gentoo-java
Had meant to send this out earlier, but apparently I forgot to send...
> dev-java/commons-modeler-1.1 fails. It depend on a sun-jmx-1.2.1 but
> this version is named simply "jmx" by java-config, so I had to manually
> update to sun-jmx-1.2.1-r1 before updating commons-modeler-1.1.
> I did not yet file a bug for this as I experienced this only with
> axxo-overlay so far, and don't know if the main portage tree has the
> same problem.
Which overlay was commons-modeler coming from when you were tried
emerging it? emerge -v commons-modeler should tell you this.
At some point, jmx was renamed to sun-jmx. This was perhaps a month or
so ago, and also should be fixed in the overlays. In general, before
reporting badness happening, you also should make sure you a) emerge
sync and svn update the overlays and b) emerge -Du world.
> This is the second time I had trouble with the /usr/bin/ant script
> loading classes into the classpath that I did not want. The other time
> was when I wanted to use a development snapshot of cup from
> http://www2.in.tum.de/projects/cup/ but this did not work as the cup
> bundled with xalan. I would really want some way to set an environment
> variable or command line flag and thus select the list of packages
> loaded into the classpath for ant, overriding the list currently
> included. Then one would not have to unmerge jsch and jdepend but could
> instead set this package list to include only the list of dependencies
> of the package currently emerged.
> I filed this as http://bugs.gentoo.org/show_bug.cgi?id=111227
This isn't really related to the new overlay so much, so probably
shouldn't have been included with the rest of the report...
That being said, this will probably get a low priority by the
developers because a) it doesn't have a lot of immediate benefits, and
b), as the Java herd has been short-handed for some time, and already
has enough on its plate. Patches are more than welcome though.
> Another question yet is if xalan does indeed need cup itself or if the
> cup runtime library would be enough. If someone has time to look into
> this, feel free to do so, but this has low priority for me right now.
>
> I first tried to use gentoo-java-experimental and axxo-overlay together,
> given in this order. This failed for sys-libs/db-4.2.52_p2-r1. This is
> the reason why I chose to update to axxo-overlay first and try
> gentoo-java-experimental later this week.
There may be some issues with using more than one of the experimental
ovlerlay together, so I wouldn't mix them unless you know what your
doing and/or want to help make them play nice :) If you are going to
play with fire, I'd recommend using a 1.4 system VM to get the same
behavior as is in portage.
sys-libs/db was removed awhile ago from gentoo-experimental-overlay.
As already mentioned, please do a svn update before reporting badness.
Thanks for the input.
- Josh (nichoj)
--
gentoo-java@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-08 4:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-02 12:50 [gentoo-java] Experiences when switching Martin von Gagern
2005-11-08 4:51 ` Joshua Nichols
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox