Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916727 - dev-java/openjdk:21: impossible to bootstrap from earlier openjdk, only from binaries
Summary: dev-java/openjdk:21: impossible to bootstrap from earlier openjdk, only from ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-02 21:58 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2023-11-05 23:24 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey 'L29Ah' Alirzaev 2023-11-02 21:58:05 UTC
As seen in DEPEND: dev-java/openjdk:${SLOT}
Either way to obtain openjdk:21 now requires magic binaries from wonderland despite already having a previous version (openjdk:17) installed.
Comment 1 Alfred Wingate 2023-11-04 22:00:13 UTC
https://openjdk.org/groups/build/doc/building.html jdk-21 cannot be bootstrapped with that version. Even so you built openjdk:17 with magic binaries from wonderland. Unless of course you have been building every single major release of jdk so that you can bootstrap the next and so on.
Comment 2 Georgy Yakovlev archtester gentoo-dev 2023-11-05 11:42:59 UTC
Here’s repo and manual how to do it without magic binaries

https://wiki.gentoo.org/wiki/User:Arthurzam/OpenJDK_Bootstrap

https://github.com/gentoo-mirror/gentoo-bootstrap

We are not going to provide full bootstrap path in gentoo repo this time and probably ever. Too much work and keeping unsupported jdk versions riddled with security bugs is questionable.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-05 12:19:50 UTC
What could be done is installing them only to a location where they're used for bootstrapping but not on the system paths. But that still requires someone to do it, of course.
Comment 4 Georgy Yakovlev archtester gentoo-dev 2023-11-05 23:24:19 UTC
Yeah, it’s possible but not worth it considering there’s perfectly working overlay that provides a patch to bootstrap from pure C and like 5 users.
Really old versions also need older broken unsupported gcc.
Non-LTS java versions lifecycle is 6 months.
Ideally jdk should be able to bootstrap from lts to lts, but that’s hard and is up to upstream.