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 |