Gentoo Archives: gentoo-java

From: "Petteri Räty" <betelgeuse@g.o>
To: "Sven Köhler" <skoehler@×××.de>
Cc: gentoo-java@l.g.o
Subject: Re: [gentoo-java] Re: JDK used for compiling
Date: Mon, 19 Nov 2007 09:43:32
Message-Id: 4740BCF0.1090703@gentoo.org
In Reply to: [gentoo-java] Re: JDK used for compiling by "Sven Köhler"
1 Sven Köhler kirjoitti:
2 >> On Sun, 2007-11-18 at 20:06 +0100, Sven Köhler wrote:
3 >>>>> I was conviced, that ebuilds always use the lowest JDK version possible.
4 >>>>> But it seems, that packages use the System VM - which is 1.6 in my case.
5 >>>>> But 1.5 is also installed.
6 >>>> Ebuilds compile source/target based on the lowest JDK version specified
7 >>>> in the ebuild. Which vm is used is controlled by by the ebuild and/or
8 >>>> the env. But most times that's restricted just to a version that
9 >>>> satisfied a virtual. Not specific vms.
10 >>> Oh good! I was hoping to hear that.
11 >>>
12 >>> But here, on my machine with default config, i'm compiling
13 >>> commons-daemon, and it says "using sun-jdk-1.6".
14 >>> Oh, and even if i set the system VM to 1.5, it still uses sun-jdk-1.6.
15 >>> Strange! Look:
16 >> SYSTEM VM != BUILD VM
17 >>
18 >>> Why that? I don't find any particular line in commons-daemon's ebuild
19 >>> which specifies, that it should use JDK 1.6 instead of JDK 1.5.
20 >>> The dependencies are >=virtual/jdk-1.4 and such.
21 >> http://www.gentoo.org/doc/en/java.xml#doc_chap5
22 >
23 > OK, so i don't understand.
24 >
25 > Why does commons-daemon use sun-jdk-1.6 to compile while sun-jdk-1.5* is
26 > installed too?
27 >
28
29 The default choice is the highest version of the default vm set for the
30 arch.
31
32 betelgeuse@pena /usr/share/java-config-2/config $ cat jdk-defaults.conf
33 # This files contain the default support jdk's
34 *= sun-jdk blackdown-jdk ibm-jdk-bin jrockit-jdk-bin
35
36 On x86 and amd64 this means that the highest version of sun-jdk
37 installed is used. But yeah I think it would be nicer to use the system
38 vm in case jdk.conf does not specify anything.
39
40 Regards,
41 Petteri

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-java] Re: JDK used for compiling "Sven Köhler" <skoehler@×××.de>