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 1G6PmU-0000oA-Rj for garchives@archives.gentoo.org; Fri, 28 Jul 2006 10:41:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6SAejKX026009; Fri, 28 Jul 2006 10:40:45 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6SAeiRb019515 for ; Fri, 28 Jul 2006 10:40:44 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D167C648A8 for ; Fri, 28 Jul 2006 10:40:43 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07671-20 for ; Fri, 28 Jul 2006 10:40:41 +0000 (UTC) Received: from titan.startnet.cz (unknown [82.113.63.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id E2EB464665 for ; Fri, 28 Jul 2006 10:40:38 +0000 (UTC) Received: (qmail 31465 invoked from network); 28 Jul 2006 12:40:36 +0200 Received: from unknown (HELO ?192.168.1.4?) (miroslav.sulc@startnet.cz@10.15.192.25) by titan.local.startnet.cz with ESMTPA; 28 Jul 2006 12:40:36 +0200 Message-ID: <44C9E99E.6010601@startnet.cz> Date: Fri, 28 Jul 2006 12:40:30 +0200 From: =?ISO-8859-2?Q?Miroslav_=A9ulc?= Organization: StartNet s.r.o. User-Agent: Thunderbird 1.5.0.4 (X11/20060715) 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> <44C9D964.3060405@seznam.cz> In-Reply-To: <44C9D964.3060405@seznam.cz> Content-Type: multipart/mixed; boundary="------------030803060704010401000009" X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-2.561 required=5.5 tests=[AWL=-0.038, BAYES_00=-2.599, TW_RK=0.077] X-Spam-Score: -2.561 X-Spam-Level: X-Archives-Salt: a5f28725-2e0c-4f7d-9c67-335cb7f1c061 X-Archives-Hash: 88240c3695b54490864a994ab2f3de9b This is a multi-part message in MIME format. --------------030803060704010401000009 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 k6SAejKx026009 Caster napsal(a): > Miroslav =A9ulc wrote: > =20 >> Hi, >> >> I've faced a problem with migrated packages on my laptop. If I remembe= r >> 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: >> =20 > > 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 th= e > 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 onl= y > 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). > =20 Thank you for explanation. Now it's clear to me. I've discovered that jaxme, aspectwerkz and subversion want to be rebuild over and over again: # java-1.5-fixer * Generating a list of jars which ant uses ... = = =20 [ ok ] * Checking for > 1.4 bytecode in ant jars ... = = =20 [ ok ] * Generating a list of jars in the system ... = = =20 [ ok ] * Checking for > 1.4 bytecode in system jars ... = = =20 [ ok ] * Attempting to fix broken packages ... * Packages to fix this run: =3Ddev-java/aspectwerkz-2.0_rc2-r1 =3Ddev-java/aspectwerkz-2.0_rc2-r1 =3Ddev-java/aspectwerkz-2.0_rc2-r1 =3Ddev-java/aspectwerkz-2.0_rc2-r1 =3Ddev-java/jaxme-0.3.1-r1 =3Ddev-java/jaxme-0.3.1-r1 =3Ddev-java/jaxme-0.3.1-r1 =3Ddev-java/jaxme-0.3.1-r1 =3Ddev-java/jaxme-0.3.1-r1 =3Ddev-java/jaxme-0.3.1-r1 =3Ddev-util/subversion-1.3.2-r3 > Caster > =20 --------------030803060704010401000009 Content-Type: text/x-vcard; charset=utf-8; name="miroslav.sulc.vcf" Content-Disposition: attachment; filename="miroslav.sulc.vcf" Content-Transfer-Encoding: 7bit begin:vcard fn;quoted-printable:Miroslav =C5=A0ulc n;quoted-printable:=C5=A0ulc;Miroslav org:StartNet s.r.o. adr;quoted-printable;quoted-printable:;;Schodov=C3=A1 309/10;Praha 5;;150 00;=C4=8Cesk=C3=A1 republika email;internet:miroslav.sulc@startnet.cz tel;cell:+420 603 711 413 x-mozilla-html:TRUE url:http://www.startnet.cz version:2.1 end:vcard --------------030803060704010401000009-- -- gentoo-java@gentoo.org mailing list