Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483018 - [TRACKER] 1.6 JDKs/JREs cleanup
Summary: [TRACKER] 1.6 JDKs/JREs cleanup
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
Keywords: Tracker
Depends on: java15removal jdk7-tracker jdk7-stabilization 405057 471940 496110
Blocks: CVE-2013-1500 CVE-2013-3829 CVE-2013-5878 552452
  Show dependency tree
Reported: 2013-08-30 13:47 UTC by Tom Wijsman (TomWij) (RETIRED)
Modified: 2016-04-14 20:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

candidates.txt (candidates.txt,2.82 KB, text/plain)
2015-03-20 13:24 UTC, Patrice Clement

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-08-30 13:47:01 UTC
1.6 was EOLed in Feb 2013, this tracker aims to deal with packages that do not support 1.7 yet; as it is time that we start to try to get rid of 1.6.

Please do not respond to this bug; if you have a bug with a package that does not compile against 1.7, please file a new bug. Thank you in advance.
Comment 1 Patrice Clement gentoo-dev 2015-03-20 13:24:09 UTC
Created attachment 399314 [details]

Pretty much all the JDKs/JREs listed in this file can go except SoyLatte 7 (v6 is obsolete). We have to get in touch with Gentoo Prefix since they maintain it and let them know about the removal.
Comment 2 Andrew John Hughes 2015-03-20 20:37:41 UTC
I mentioned this in the recent IRC meeting, but the URL mentioned refers to Oracle's implementation of Java 6. OpenJDK 6, as used by IcedTea 1.x, is still being maintained at present and so there is no reason to remove that or the 1.6 virtual as yet.
Comment 3 James Le Cuirot gentoo-dev 2015-03-20 20:41:48 UTC
Is there any great reason to keep it though once we get 7 stabilised?
Comment 4 James Le Cuirot gentoo-dev 2015-03-20 21:47:57 UTC
I discussed the above question with gnu_andrew on IRC and we came to the conclusion that Gentoo doesn't really need Java 6 at all. As an upstream maintainer of icedtea, he will continue to privately work on an ebuild, primarily to test that it builds in a clean environment.
Comment 5 Patrice Clement gentoo-dev 2015-03-23 16:30:54 UTC
Hi Prefix team

We are in the process of cleaning up 1.6 JDKs/JREs from the tree, and hence are listing potential candidates. Although we do not maitain dev-java/soy-latte-jdk-bin, we would like to know if you want to keep it the tree (dev-java/soylatte-jdk-bin/soylatte-jdk-bin-1.0.3.ebuild) or are OK if we go ahead and remove it. Bear in mind Oracle have EOL'd Java 6 in Feb 2013 so it would be about time to see it off.
Comment 6 Fabian Groffen gentoo-dev 2015-03-23 19:59:09 UTC
This is not so much about wanting this or not.  I noticed you already threw away the apple variants.  This is about if you want any Java, on some systems you just have at best Java 1.5, or Java 6.  These are older OSX-es, with PPC in particular.  Maybe we can move it to some overlay so it remains available for those who have no other choice.  Solaris same thing, IIRC.
Comment 7 James Le Cuirot gentoo-dev 2015-03-28 23:55:22 UTC
It's just dawned on me that we cannot even remove 1.6 until we have 1.7 or better VMs for *all* the archs we have keywords for in *any* other Java packages. Seems obvious but no one has raised this point yet.

Despite what grobian said above, the prefix targets are actually relatively well  covered thanks to Oracle's JDK supporting MacOS (but not PPC) and Solaris. oracle-jdk-bin- has all these:

KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"

icedtea- also has ia64 covered. The problem archs are plain arm, ppc, and ppc64. I have access to timberdoodle and my own ARM hardware so I guess I'll need to get icedtea-bin packages built for all these.
Comment 8 Michael Haubenwallner gentoo-dev 2015-03-30 08:42:11 UTC
Although being available for ppc*-linux and x86*-linux as well, bug#499874 comment#2 tells about punting ibm-jdk-bin.

But, AFAICS, as the only one for ppc-aix, what to do with that one?
Comment 9 James Le Cuirot gentoo-dev 2015-03-30 21:31:31 UTC
(In reply to Michael Haubenwallner from comment #8)
> But, AFAICS, as the only one for ppc-aix, what to do with that one?

I've asked gnu_andrew about this but he has yet to respond. As best as I can tell, support was merged into icedtea some time ago so it may just work but you guys are going to have to help us out here. I've never used or even seen AIX in my life. Please try to build icedtea, either using gcj or failing that, with ibm-jdk-bin. If only the latter works then we'll have to see about creating an icedtea-bin package that you can use to bootstrap from in future.

I've tried to find out more about OSX/PPC but information is sketchy and gnu_andrew didn't know. Soylatte is Java 7 but the release is very old so you really want to start using icedtea proper if you can. The only Apple hardware in this house is an iPod Mini so again, you're going to have to do some work here.

Sorry if it sounds like I'm being difficult but these old VMs are a burden for us and a liability for you. We would test these platforms if we could but we can't. I have at least taken on Linux/PPC by getting access to timberdoodle even though this is a platform I only had a short run with a few years ago.

So I've managed to build icedtea 7 on Linux/PPC. I had hoped the tests would pass but they're quite explosive. On closer inspection, the systemtap tests only support x86 and amd64 but there are plenty of other failures too. gnu_andrew tells me that they used to run the suite automatically but have neglected it lately. I am currently attempting a test run on my own amd64 system to see how that compares but I suspect it'll be a case of RESTRICT="test". I'm more concerned that the tests for dev-java/jna are failing on ppc while they pass on amd64. Investigating…
Comment 10 Andrew John Hughes 2015-03-31 22:38:15 UTC
IBM & SAP's work [0] includes a PPC64 port for both GNU/Linux and AIX. I've never even used an AIX machine though, and I doubt anyone has built IcedTea on it. But, in theory, it should be supported. They merged their port into OpenJDK 8 upstream but we've also included the 7 version in IcedTea 2.x.

OS X is supported by Oracle on x86_64. PPC is supported on Linux. So, in theory the combination should be possible. I also have access to Apple PPC hardware, but I don't know when I'd have time to look into this. I suspect there will be issues with the compiler and libraries being older than what Oracle build on.

As to tests, I've never known all the jtreg tests to pass (I assume that's what you mean; running 'make check' in IcedTea) on the main platforms like x86_64. If you're using a different VM on a different arch, it's even more unlikely. I did add RESTRICT="test" originally but it was removed in the main tree. It should either be re-added, or you can try a midway option of configuring with --disable-jdk-tests which should turn off the most troublesome JDK ones, leaving the JVM and tools tests, which have tended to be more reliable.

Again, improving tests is something that's on the TODO list, but resources are stretched, especially now there are four JDKs (6,7,8,9) being used.

Comment 11 James Le Cuirot gentoo-dev 2015-04-01 22:36:48 UTC
After giving up on the icedtea tests, I tried to get better results from the jna tests. gnu_andrew suggested I rebuild icedtea with jamvm instead since this looks to be the future for Java on PPC. After wrestling with an unusual issue that I won't bore you with, the jna tests mostly pass, much better than they did with icedtea built against CACAO. Given that the tests are probably geared towards HotSpot and also given they don't entirely pass with ibm-jdk-bin either, I have at least a little confidence in this solution for PPC going forward. Hopefully a new icedtea release against jamvm 2.0.0 will yield even better results. In the meantime, I will see about preparing an icedtea-bin package so that we can continue culling off 1.6.
Comment 12 James Le Cuirot gentoo-dev 2015-04-05 16:40:13 UTC
It has been brought to my attention that IBM's JDK is still very much maintained, all the way from 1.5 to 1.8 on x86, amd64, ppc, and ppc64 for Linux. I had wrongly assumed that it had died out like many of the other JDKs. That doesn't change my stance on removing 1.6, in fact it strengthens it, but I am in two minds about whether to keep ibm-jdk-bin at all.

On the one hand, it's even more annoying than Oracle's in that you need to actually register to download it. I am prepared to make an exception for Oracle's given its popularity but shouldn't we be nudging people towards free software here? We're very lucky that the maintainer of icedtea is a Gentoo user.

On the other hand, while I am prepared to create icedtea-bin releases for ppc and ppc64 on Linux, I cannot help with AIX. That would mean someone else would have to take up this task or end users would have to make do with bootstrapping from GCJ.

I would like ppc team's input here so CC'ing them in.
Comment 13 Michael Haubenwallner gentoo-dev 2015-04-08 08:19:49 UTC
(In reply to James Le Cuirot from comment #12)
> On the other hand, while I am prepared to create icedtea-bin releases for
> ppc and ppc64 on Linux, I cannot help with AIX. That would mean someone else
> would have to take up this task or end users would have to make do with
> bootstrapping from GCJ.

As far as I am aware of, the number of ppc-aix users besides myself is near zero. And myself in particular doesn't care too much for a broken ~ppc-aix until I find time to fix it again. But when I fix ibm-jdk-bin, what I'd like to know is the agreed target for these fixes: Either gx86, or prefix-overlay with chance to move to gx86, or my company-overlay only.
Comment 14 James Le Cuirot gentoo-dev 2015-12-18 14:40:22 UTC
Okay guys, it's taken a while but short of a stabilization or two, the road is now clear for the removal of Java 6. We'll hang on to icedtea-6 while the stragglers are sorted out but I intend to last-rite the others now. These are:

dev-java/soylatte-jdk-bin (including the Java 7 version)

I'm sorry if you're using one of these on some old platform but these are beyond ancient. As I said earlier, you really should be looking at icedtea now. We should have totally killed off Java 7 by now, let alone 6.

I am now much happier about the situation for ppc and ppc64 on Linux. The CACAO builds are faring well since I applied my dynamic heap patch. ppc64 even supports HotSpot, which we haven't been able to use on timberdoodle for Java 7 due to some race condition but it does work fine for Java 8.

If you want to try icedtea yourself then you need to start with gcc[gcj]. GCJ is going away sooner or later and icedtea will attempt to address this by allowing itself to be built without any Java prerequisites, possibly with the help of JamVM. This will certainly make things simpler but we're not there yet, I'm afraid.

I am in dialog with haubi about the future of ibm-jdk-bin. It is still very much maintained upstream but there is practically no user interest, not least because of its registration wall. haubi wants it for ppc-aix so it may be keyworded for this alone in an overlay. We're still working out the details.

gnu_andrew has expressed that he would like to keep icedtea-6 in java-overlay as he still intends to maintain it. I will therefore, if it's possible, unmask it in java-overlay to counteract the mask in the main tree. The virtuals will remain masked, however.

I will wait till Sunday evening for any concerns to be raised but keeping these around simply isn't an option.
Comment 15 Fabian Groffen gentoo-dev 2015-12-18 15:38:24 UTC
I dunno, I guess the only option is to let you remove it and leave people without.
Comment 16 James Le Cuirot gentoo-dev 2016-04-14 20:26:44 UTC
It's finally gone! Yay!