From: Joshua Nichols <nichoj@gentoo.org>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] migration-overlay entering main tree
Date: Thu, 29 Jun 2006 11:11:56 -0400 [thread overview]
Message-ID: <44A3EDBC.4050105@gentoo.org> (raw)
In-Reply-To: <254054bc0606281542u70501ce0u13f468b6fdfc77a4@mail.gmail.com>
Wiktor Wandachowicz wrote:
>
> 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.
>
Granted, the messages could be improved a bit. It's not mentioned in the
guide, because a) java-1.5-fixer may not be required and b) it's pretty
straight forward to emerge these if you don't have them.
> 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
Freaky. I can't say that I've seen that before.
>
> 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?
>
If you let it keep running, it would have eventually gotten to
servletapi, rebuilt that successfully, then retried hsqldb. As for why
it's listed 3 times, I'm not quite sure. It _should_ be filtering
duplicates as I recall.
> 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?
>
I don't believe it would be possible to have a migration that was
totally automated, to be honest. There are a number of pitfalls as is,
like not having all the new Java packages unmasked and keyworded, user
used 1.5 at some point and needs to recompile everything with 1.4, etc.
> HTH,
> Wiktor Wandachowicz
>
- Josh
--
gentoo-java@gentoo.org mailing list
next prev parent reply other threads:[~2006-06-29 15:12 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
2006-06-29 15:11 ` Joshua Nichols [this message]
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=44A3EDBC.4050105@gentoo.org \
--to=nichoj@gentoo.org \
--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