public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Wiktor Wandachowicz" <siryes@gmail.com>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] migration-overlay entering main tree
Date: Thu, 29 Jun 2006 00:42:55 +0200	[thread overview]
Message-ID: <254054bc0606281542u70501ce0u13f468b6fdfc77a4@mail.gmail.com> (raw)
In-Reply-To: <44A2A3C7.2000408@gentoo.org>

Here are my experiences with Java upgrade on a second machine, done step
after step like in the Java Upgrade Guide. Sorry for the length, but I wanted
to be as specific as possible.

After unmasking packages, I removed sun-jdk-1.4*, sun-jdk-1.5* and java-config.
Then I emerged java-config-1* and java-config-2*. All was fine. After emerging
the first JVM I've noticed an error:

# emerge -av =sun-jdk-1.4*
...
!!! ERROR: The active vm could not be found
 *  After installing sun-jdk-1.4.2.12 this
 *  was set as the default JVM to run.
 * No valid generation-1 system-vm set, setting to sun-jdk-1.4.2.12

Nothing serious that a simple "/usr/sbin/env-update && source /etc/profile"
couldn't resolve. And only after two last commands the "java-check-environment"
was able to report success with generation_1_system_vm. I double checked
via "java-config-1 -L" and "java-config-2 -L" that only one JVM was present at
the moment. All was fine.

Then I emerged sun-jdk-1.5 and run the "java-1.5-fixer". Now it became
interesting, because the tool reported *twice* missing packages:

# java-1.5-fixer
 * You need to emerge portage-utils.
# emerge -av portage-utils
 * You need to emerge >=javatoolkit-0.1.6
# emerge -av javatoolkit
# java-1.5-fixer

Well, that's was a little surprise, because the Guide didn't mention these
two packages at all. Not actually confusing for me, but the Guide could at
least explain that need. Less fluent Gentooers can be surprised and
completely unnecessary topics on the forums may arise.

Another intriguing thing was the output while emerging javatoolkit. I've seen:
...
>>> /usr/share/doc/javatoolkit-9.9.9/
>>> /usr/share/doc/javatoolkit-9.9.9/sun-fetch/
>>> /usr/share/doc/javatoolkit-9.9.9/sun-fetch/AUTHORS
>>> /usr/share/doc/javatoolkit-9.9.9/sun-fetch/README
>>> /usr/share/doc/javatoolkit-9.9.9/COPYING
>>> /usr/share/doc/javatoolkit-9.9.9/NEWS
>>> /usr/share/doc/javatoolkit-9.9.9/findclass/
>>> /usr/share/doc/javatoolkit-9.9.9/findclass/AUTHORS
>>> /usr/share/doc/javatoolkit-9.9.9/findclass/README
>>> /usr/share/doc/javatoolkit-9.9.9/AUTHORS
>>> /usr/share/doc/javatoolkit-9.9.9/README
>>> /usr/share/doc/javatoolkit-9.9.9/ChangeLog
>>> /usr/share/doc/javatoolkit-9.9.9/TODO

even though I installed javatoolkit-0.1.9 and not -0.9.9

Last problematic thing I've noticed was the number and order of
packages java-fixer was about to repair:

# java-1.5-fixer
 * Generating a list of jars which ant uses ...                          [ ok ]
 * Checking for > 1.4 bytecode in ant jars ...                           [ ok ]
 * Generating a list of jars in the system ...                           [ ok ]
 * Checking for > 1.4 bytecode in system jars ...                        [ ok ]
 * Attempting to fix broken packages ...
 * Packages to fix this run:
=dev-db/hsqldb-1.7.3.1-r2 =dev-db/hsqldb-1.7.3.1-r2
=dev-db/hsqldb-1.7.3.1-r2 =dev-java/servletapi-2.3-r2
=sys-libs/db-4.3.29

I turned out that even though hsqldb was listed three times, it still
depended on servletapi, which was scheduled fourth. So it broke:

classes:
    [javac] Compiling 111 source files to
/var/tmp/portage/hsqldb-1.7.3.1-r2/work/hsqldb/classes
    [javac] /var/tmp/portage/hsqldb-1.7.3.1-r2/work/hsqldb/src/org/hsqldb/Servlet.java:73:
cannot access javax.servlet.ServletConfig
    [javac] bad class file:
/var/tmp/portage/hsqldb-1.7.3.1-r2/work/hsqldb/lib/servlet.jar(javax/servlet/ServletConfig.class)
    [javac] class file has wrong version 49.0, should be 48.0
    [javac] Please remove or make sure it appears in the correct
subdirectory of the classpath.
    [javac] import javax.servlet.ServletConfig;
    [javac]                      ^
    [javac] 1 error

I needed to remerge servletapi manually and restart java-1.5-fixer. Which,
of course, built hsqldb three times :-( Which was, of course, unnecessary.
How about at least making the packages that java-1.5-fixer is going to fix
unique? And how about figuring a better ordering of packages?

After all the above I think I've finally migrated my machine to Generation-2.
Whoopiee!

In general all was fun and problems were minor IMHO. But migration was
not automatic, like some users would like it to see. Maybe some things
coul dbe improved before stabilization?

HTH,
Wiktor Wandachowicz

-- 
Registered Linux user #390131 (http://counter.li.org)
-- 
gentoo-java@gentoo.org mailing list



  reply	other threads:[~2006-06-28 22:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-25 21:37 [gentoo-java] migration-overlay entering main tree Joshua Nichols
2006-06-25 22:20 ` Greg Tassone
2006-06-25 22:59   ` Joshua Nichols
2006-06-26 10:44     ` Caster
2006-06-26 11:45       ` Joshua Nichols
2006-06-26 10:47     ` Caster
2006-06-26 11:47       ` Joshua Nichols
2006-06-26 13:04 ` Ivan Yosifov
2006-06-26 13:13   ` Joshua Nichols
2006-06-26 23:35     ` Caster
2006-06-28 15:44       ` Joshua Nichols
2006-06-28 22:42         ` Wiktor Wandachowicz [this message]
2006-06-29 15:11           ` Joshua Nichols
2006-06-27 10:38     ` Wiktor Wandachowicz
2006-06-27 12:03       ` Wiktor Wandachowicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=254054bc0606281542u70501ce0u13f468b6fdfc77a4@mail.gmail.com \
    --to=siryes@gmail.com \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox