1 |
Hi, |
2 |
|
3 |
I've faced a problem with migrated packages on my laptop. If I remember |
4 |
well, I've read somewhere that the new Java system will always try to |
5 |
build packages with the lower JDK possible. At least on my laptop (it's |
6 |
a fresh install of Gentoo - I've installed it about two weeks ago) |
7 |
packages are not built with the lowest JDK possible which results in |
8 |
these bugs when compiling packages dependant on a badly built package: |
9 |
|
10 |
>>> Emerging (1 of 1) dev-java/xerces-2.7.1-r1 to / |
11 |
* checking ebuild checksums ;-) |
12 |
... |
13 |
[ ok ] |
14 |
* checking auxfile checksums ;-) |
15 |
... |
16 |
[ ok ] |
17 |
* checking miscfile checksums ;-) |
18 |
... |
19 |
[ ok ] |
20 |
* checking Xerces-J-src.2.7.1.tar.gz ;-) |
21 |
... |
22 |
[ ok ] |
23 |
* Using: sun-jdk-1.4 |
24 |
>>> Unpacking source... |
25 |
>>> Unpacking Xerces-J-src.2.7.1.tar.gz to |
26 |
/var/tmp/portage/xerces-2.7.1-r1/work |
27 |
tar: A lone zero block at 19079 |
28 |
* Applying xerces-2.7.1-r1-gentoo.patch |
29 |
... |
30 |
[ ok ] |
31 |
* Applying xerces-2.7.1-no_dom3.patch |
32 |
... |
33 |
[ ok ] |
34 |
>>> Source unpacked. |
35 |
Rewriting ./build.xml |
36 |
>>> Compiling source in |
37 |
/var/tmp/portage/xerces-2.7.1-r1/work/xerces-2_7_1 ... |
38 |
Buildfile: build.xml |
39 |
|
40 |
BUILD FAILED |
41 |
java.lang.UnsupportedClassVersionError: org/xml/sax/ext/Attributes2 |
42 |
(Unsupported major.minor version 49.0) |
43 |
... |
44 |
|
45 |
In this example dev-java/xml-commons-external was built using JDK 1.5 |
46 |
though it could be built JDK 1.4 too. |
47 |
|
48 |
>>> Emerging (1 of 1) dev-java/xml-commons-external-1.3.02-r1 to / |
49 |
* checking ebuild checksums ;-) |
50 |
... |
51 |
[ ok ] |
52 |
* checking auxfile checksums ;-) |
53 |
... |
54 |
[ ok ] |
55 |
* checking miscfile checksums ;-) |
56 |
... |
57 |
[ ok ] |
58 |
* checking xml-commons-external-1.3.02.tar.bz2 ;-) |
59 |
... |
60 |
[ ok ] |
61 |
* Using: sun-jdk-1.5 |
62 |
>>> Unpacking source... |
63 |
>>> Unpacking xml-commons-external-1.3.02.tar.bz2 to |
64 |
/var/tmp/portage/xml-commons-external-1.3.02-r1/work |
65 |
>>> Source unpacked. |
66 |
Rewriting ./build.xml |
67 |
... |
68 |
|
69 |
>From ebuild: |
70 |
... |
71 |
DEPEND=">=virtual/jdk-1.3 |
72 |
dev-java/ant-core" |
73 |
RDEPEND=">=virtual/jre-1.3" |
74 |
... |
75 |
|
76 |
Am I missing something or is there a bug? |
77 |
|
78 |
Miroslav |