1 |
Hi, |
2 |
|
3 |
as you might know, we're getting rid of 1.4 jdk soonish (now it's up to |
4 |
the arch teams). While it's quite late removal, we can be much faster |
5 |
with 1.5 removal, since 1.5 got EOLed this week and the next bunch of |
6 |
security bugs won't be fixed there. |
7 |
|
8 |
The list of packages that need to be fixed isn't that large, and most |
9 |
just can't compile due to the JDBC API changes. Adding those missing |
10 |
methods can be quite messy and large patches, so instead I've tested the |
11 |
idea of keeping just the classes from a 1.5 jdk in a special package, |
12 |
and using it as bootclasspath to build the problematic packages against. |
13 |
In the end, it's about 10 packages that need it and it seems to work. |
14 |
|
15 |
Here's what's required: |
16 |
1) the attached function that should be added to java-ant-2.eclass. |
17 |
Nothing fancy, just rewrites the build.xml with bootclasspath provided |
18 |
by the package below. |
19 |
2) A package with the bootclasspath. For now, I assume it would be |
20 |
called dev-java/sun-bootclasspath of version 1.5 and just extract rt.jar |
21 |
and jsse.jar from the jdk distfile, and install it under |
22 |
/opt/sun-bootclasspath-1.5/ . Beetter ideas for naming/path welcome |
23 |
3) Packages that need it, will depend on >=virtual/jdk-1.5 and the |
24 |
sun-bootclasspath-1.5 and call the eclass function in the java_prepare |
25 |
phase. Since it's just 10 packages, I don't think any fancy automagic |
26 |
variables are needed to pollute the eclasses even more. The revbumps are |
27 |
sitting on my drive, can be commited after the eclass and package. |
28 |
|
29 |
If it looks sane, I can commit it. |
30 |
|
31 |
The 1.5 removal is tracked on https://bugs.gentoo.org/show_bug.cgi?id=292001 |
32 |
Besides the packages solved by this way, there are packages with java6 |
33 |
flag to be removed (and made mandatory), some that restrict jdk to 1.5 |
34 |
only for tests (can be test-restricted at worst) and few need more |
35 |
special treatment... |
36 |
|
37 |
Vlastimil |