1 |
Wolfgang Liebich wrote: |
2 |
> Hi, |
3 |
> I have a gentoo system with many parallel JDKs installed. java-config -L |
4 |
> says |
5 |
> [ibm-jdk-1.3.1] "IBM JDK 1.3.1" (/etc/env.d/java/20ibm-jdk-1.3.1) |
6 |
> [sun-jdk-1.5.0.06] "Sun JDK 1.5.0.06" (/etc/env.d/java/20sun-jdk-1.5.0.06) |
7 |
> [ibm-jdk-1.4.1] "IBM JDK 1.4.1" (/etc/env.d/java/20ibm-jdk-1.4.1) |
8 |
> [sun-jdk-1.3.1.16] "Sun JDK 1.3.1.16" (/etc/env.d/java/20sun-jdk-1.3.1.16) * |
9 |
> [sun-jdk-1.4.2.09] "Sun JDK 1.4.2.09" (/etc/env.d/java/20sun-jdk-1.4.2.09) |
10 |
> [blackdown-jdk-1.4.2.02] "Blackdown JDK 1.4.2.02" (/etc/env.d/java/20blackdown-jdk-1.4.2.02) |
11 |
> |
12 |
> This is mainly b/c I want to use this box for Java compatibility |
13 |
> evaluation. My main (default) JDK for now is sun-jdk-1.3.1.16. BUT when |
14 |
> I try to update dev-java/xml-commons, the JDK 1.5 patch is applied |
15 |
> ALWAYS - it ignores the system JDK to be used. SO it seems that in order |
16 |
> to update this package I have to switch to a 1.5 JDK - is this right? It |
17 |
> doesn't seem so to me... |
18 |
> Puzzled, |
19 |
> Wolfgang |
20 |
|
21 |
It is, check the |
22 |
/usr/portage/dev-java/xml-commons/files/1.0_beta2-jdk15.patch and you |
23 |
will see that it just changes the source and target attributes in the |
24 |
build.xml file. The patch is not dependent on the system jdk used. In |
25 |
general we try to prefer noncondional patches because it makes debugging |
26 |
problems easier. Please also note that there is a gentoo-java mailing |
27 |
lists where java related questions are likely to get better answers than |
28 |
on gentoo-users. |
29 |
|
30 |
You should also note that most ebuilds depend on >=virtual/jre-1.4 so |
31 |
having 1.3 as the system jdk to emerge stuff might not work. |
32 |
|
33 |
Regards, |
34 |
Petteri |