From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1G6OhK-0007ug-5t for garchives@archives.gentoo.org; Fri, 28 Jul 2006 09:31:58 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6S9VJub013645; Fri, 28 Jul 2006 09:31:19 GMT Received: from slimak.dkm.cz (slimak.dkm.cz [62.24.64.34]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6S9VI88023197 for ; Fri, 28 Jul 2006 09:31:18 GMT Received: (qmail 23805 invoked by uid 0); 28 Jul 2006 09:31:16 -0000 Received: from r141.chello.upc.cz (HELO ?192.168.1.1?) (62.24.83.141) by slimak.dkm.cz with SMTP; 28 Jul 2006 09:31:16 -0000 Message-ID: <44C9D964.3060405@seznam.cz> Date: Fri, 28 Jul 2006 11:31:16 +0200 From: Caster User-Agent: Thunderbird 1.5.0.4 (X11/20060605) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] Falling to the lowest jdk available References: <44C9D438.80502@startnet.cz> In-Reply-To: <44C9D438.80502@startnet.cz> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k6S9VJv3013645 X-Archives-Salt: ab77ddba-f524-4a8a-9510-ae84619eac14 X-Archives-Hash: 9bf47706757e073aedf1fb810716e527 Miroslav =A9ulc wrote: > Hi, >=20 > 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=3D">=3Dvirtual/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=3D"=3Dvirtual/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 --=20 gentoo-java@gentoo.org mailing list