From: Caster <cast3r@seznam.cz>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] Falling to the lowest jdk available
Date: Fri, 28 Jul 2006 11:31:16 +0200 [thread overview]
Message-ID: <44C9D964.3060405@seznam.cz> (raw)
In-Reply-To: <44C9D438.80502@startnet.cz>
Miroslav Šulc wrote:
> Hi,
>
> I've faced a problem with migrated packages on my laptop. If I remember
> well, I've read somewhere that the new Java system will always try to
> build packages with the lower JDK possible. At least on my laptop (it's
> a fresh install of Gentoo - I've installed it about two weeks ago)
> packages are not built with the lowest JDK possible which results in
> these bugs when compiling packages dependant on a badly built package:
It's like this:
DEPEND=">=virtual/jdk-1.4" will make it use 1.4 or higher JDK (it
prefers the higher, you can tune that in
/etc/java-config-2/build/jdk.conf) but it will rewrite the build.xml
file(s) to -source 1.4 -target 1.4 so even with 1.5 JDK it should
produce 1.4 compatible class files.
DEPEND="=virtual/jdk-1.4" will use 1.4 JDK specifically, in case the
package needs not just 1.4 language compliance but e.g. also breaks on
1.4 -> 1.5 API changes or relies on something else that is specific only
to 1.4.
So seeing "Using: sun-jdk-1.5" is not a bug, note you also see the
"Rewriting ./build.xml" that ensures proper -source and -target
arguments. The problem could be if you have built something with 1.5
before the migration - run java-1.5-fixer to fix that. But it is also
possible that the build.xml file(s) weren't properly rewritten, some
were ommitted... and that would be a bug. You just need to find out
which package is causing that (probably some that will want to be
rebuilt with java-1.5-fixer over and over again).
Caster
--
gentoo-java@gentoo.org mailing list
next prev parent reply other threads:[~2006-07-28 9:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-28 9:09 [gentoo-java] Falling to the lowest jdk available Miroslav Šulc
2006-07-28 9:24 ` Krzysiek Pawlik
2006-07-28 10:33 ` Miroslav Šulc
2006-07-28 10:43 ` Krzysiek Pawlik
2006-07-28 11:01 ` Caster
2006-07-28 11:12 ` Krzysiek Pawlik
2006-07-28 11:59 ` Caster
2006-07-28 12:27 ` Miroslav Šulc
2006-07-28 14:06 ` Caster
2006-07-28 14:50 ` Miroslav Šulc
2006-07-28 16:02 ` Krzysiek Pawlik
2006-07-28 10:44 ` Caster
2006-07-28 9:31 ` Caster [this message]
2006-07-28 10:40 ` Miroslav Šulc
2006-07-28 10:54 ` Wiktor Wandachowicz
2006-07-28 11:26 ` Miroslav Šulc
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=44C9D964.3060405@seznam.cz \
--to=cast3r@seznam.cz \
--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