1 |
Caster napsal(a): |
2 |
> Miroslav Šulc wrote: |
3 |
> |
4 |
>> Hi, |
5 |
>> |
6 |
>> I've faced a problem with migrated packages on my laptop. If I remember |
7 |
>> well, I've read somewhere that the new Java system will always try to |
8 |
>> build packages with the lower JDK possible. At least on my laptop (it's |
9 |
>> a fresh install of Gentoo - I've installed it about two weeks ago) |
10 |
>> packages are not built with the lowest JDK possible which results in |
11 |
>> these bugs when compiling packages dependant on a badly built package: |
12 |
>> |
13 |
> |
14 |
> It's like this: |
15 |
> |
16 |
> DEPEND=">=virtual/jdk-1.4" will make it use 1.4 or higher JDK (it |
17 |
> prefers the higher, you can tune that in |
18 |
> /etc/java-config-2/build/jdk.conf) but it will rewrite the build.xml |
19 |
> file(s) to -source 1.4 -target 1.4 so even with 1.5 JDK it should |
20 |
> produce 1.4 compatible class files. |
21 |
> |
22 |
> DEPEND="=virtual/jdk-1.4" will use 1.4 JDK specifically, in case the |
23 |
> package needs not just 1.4 language compliance but e.g. also breaks on |
24 |
> 1.4 -> 1.5 API changes or relies on something else that is specific only |
25 |
> to 1.4. |
26 |
> |
27 |
> So seeing "Using: sun-jdk-1.5" is not a bug, note you also see the |
28 |
> "Rewriting ./build.xml" that ensures proper -source and -target |
29 |
> arguments. The problem could be if you have built something with 1.5 |
30 |
> before the migration - run java-1.5-fixer to fix that. But it is also |
31 |
> possible that the build.xml file(s) weren't properly rewritten, some |
32 |
> were ommitted... and that would be a bug. You just need to find out |
33 |
> which package is causing that (probably some that will want to be |
34 |
> rebuilt with java-1.5-fixer over and over again). |
35 |
> |
36 |
Thank you for explanation. Now it's clear to me. I've discovered that |
37 |
jaxme, aspectwerkz and subversion want to be rebuild over and over again: |
38 |
|
39 |
# java-1.5-fixer |
40 |
* Generating a list of jars which ant uses |
41 |
... |
42 |
[ ok ] |
43 |
* Checking for > 1.4 bytecode in ant jars |
44 |
... |
45 |
[ ok ] |
46 |
* Generating a list of jars in the system |
47 |
... |
48 |
[ ok ] |
49 |
* Checking for > 1.4 bytecode in system jars |
50 |
... |
51 |
[ ok ] |
52 |
* Attempting to fix broken packages ... |
53 |
* Packages to fix this run: |
54 |
=dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/aspectwerkz-2.0_rc2-r1 |
55 |
=dev-java/aspectwerkz-2.0_rc2-r1 =dev-java/aspectwerkz-2.0_rc2-r1 |
56 |
=dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 |
57 |
=dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 |
58 |
=dev-java/jaxme-0.3.1-r1 =dev-java/jaxme-0.3.1-r1 |
59 |
=dev-util/subversion-1.3.2-r3 |
60 |
> Caster |
61 |
> |