public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Falling to the lowest jdk available
@ 2006-07-28  9:09 Miroslav Šulc
  2006-07-28  9:24 ` Krzysiek Pawlik
  2006-07-28  9:31 ` Caster
  0 siblings, 2 replies; 16+ messages in thread
From: Miroslav Šulc @ 2006-07-28  9:09 UTC (permalink / raw
  To: Gentoo Java

[-- Attachment #1: Type: text/plain, Size: 3519 bytes --]

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:

>>> Emerging (1 of 1) dev-java/xerces-2.7.1-r1 to /
 * checking ebuild checksums ;-)
...                                                                                                                                                                    
[ ok ]
 * checking auxfile checksums ;-)
...                                                                                                                                                                   
[ ok ]
 * checking miscfile checksums ;-)
...                                                                                                                                                                  
[ ok ]
 * checking Xerces-J-src.2.7.1.tar.gz ;-)
...                                                                                                                                                           
[ ok ]
 * Using: sun-jdk-1.4
>>> Unpacking source...
>>> Unpacking Xerces-J-src.2.7.1.tar.gz to
/var/tmp/portage/xerces-2.7.1-r1/work
tar: A lone zero block at 19079
 * Applying xerces-2.7.1-r1-gentoo.patch
...                                                                                                                                                            
[ ok ]
 * Applying xerces-2.7.1-no_dom3.patch
...                                                                                                                                                              
[ ok ]
>>> Source unpacked.
Rewriting ./build.xml
>>> Compiling source in
/var/tmp/portage/xerces-2.7.1-r1/work/xerces-2_7_1 ...
Buildfile: build.xml

BUILD FAILED
java.lang.UnsupportedClassVersionError: org/xml/sax/ext/Attributes2
(Unsupported major.minor version 49.0)
...

In this example dev-java/xml-commons-external was built using JDK 1.5
though it could be built JDK 1.4 too.

>>> Emerging (1 of 1) dev-java/xml-commons-external-1.3.02-r1 to /
 * checking ebuild checksums ;-)
...                                                                                                                                                                    
[ ok ]
 * checking auxfile checksums ;-)
...                                                                                                                                                                   
[ ok ]
 * checking miscfile checksums ;-)
...                                                                                                                                                                  
[ ok ]
 * checking xml-commons-external-1.3.02.tar.bz2 ;-)
...                                                                                                                                                 
[ ok ]
 * Using: sun-jdk-1.5
>>> Unpacking source...
>>> Unpacking xml-commons-external-1.3.02.tar.bz2 to
/var/tmp/portage/xml-commons-external-1.3.02-r1/work
>>> Source unpacked.
Rewriting ./build.xml
...

>From ebuild:
...
DEPEND=">=virtual/jdk-1.3
        dev-java/ant-core"
RDEPEND=">=virtual/jre-1.3"
...

Am I missing something or is there a bug?

Miroslav

[-- Attachment #2: miroslav.sulc.vcf --]
[-- Type: text/x-vcard, Size: 349 bytes --]

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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-07-28 16:03 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2006-07-28 10:40   ` Miroslav Šulc
2006-07-28 10:54     ` Wiktor Wandachowicz
2006-07-28 11:26       ` Miroslav Šulc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox