From: Joshua Nichols <nichoj@gentoo.org>
To: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] looking for contributions to java-1.5-fixer
Date: Fri, 31 Mar 2006 00:43:00 -0500 [thread overview]
Message-ID: <442CC164.2010602@gentoo.org> (raw)
Hey folks,
So, we have a bash script to help people rebuild packages on their
system that were built with Java 1.5. It does help a bit, but it could
definitely could use a little work. People often ask how they can help
out, so I figure it may be a good thing to announce the need for
improving this script.
Here's a brief synopsis of what it does:
* gets a list of all jars, using the pattern /usr/share/*/lib/*.jar
* uses a python script, class-version-verify.py to check what version
bytecode for each jar
* makes a list of offending jars
* uses qfile from app-portage/portage-utils to determine what package
it belongs to
* attempts to emerge all the offending packages
Here are some problems with the current script:
* Things that are brought onto the classpath for /usr/bin/ant cause
some big trouble. This is because 1.5 bytecode is brought onto the
classpath when you're trying to build 1.4 bytecode.
* It's not smart enough to emerge stuff in order. As a result, we just
attempt to merge them in a pseudo random order. If a package fails, we
keep track of it to try in another 'run'. If the same packages keep
failing 3 times, the script dies.
* Some things could be installing jars somewhere beside
/usr/share/*/lib/*.jar (in particular, to /opt)
* Some binary packages install jars with 1.5 bytecode. These would be
false positive.
Some corresponding suggestions of how to handle the problems:
* Check ant dependencies first. If there are offending packages, unmerge
those, then remerge
* Try unmerging stuff first. This way, emerge will figure out what order
to put things in
* try parsing CLASSPATH out of /usr/share/*/package.env to get a list of
jars that get installed
* have a variable with a list of known 1.5 jars. ignore the jar if it's
in this list.
The source for this is in subversion at:
https://svn.gentooexperimental.org/svn/java/java-config-wrapper/trunk/
(under src/shell)
So if this sounds up your ally, give it a shot. Hope to hear from someone :)
Regards,
- Josh
--
gentoo-java@gentoo.org mailing list
reply other threads:[~2006-03-31 6:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=442CC164.2010602@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