Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 833096

Summary: dev-java/openjdk-11.0.14_p9-r1 should be able to bootstrap with dev-java/openjdk{,-bin}[-gentoo-vm]
Product: Gentoo Linux Reporter: Alexander Miller <alex.miller>
Component: Current packagesAssignee: Java team <java>
Status: UNCONFIRMED ---    
Severity: enhancement CC: arthurzam, java, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: modified openjdk-11.0.14_p9-r1.ebuild

Description Alexander Miller 2022-02-10 23:26:27 UTC
Created attachment 764816 [details]
modified openjdk-11.0.14_p9-r1.ebuild

The latest dev-java/openjdk:11 lost the gentoo-vm USE flag an is always installed as gentoo-vm, while for all previous ebuilds the flag was masked (at least for stable arches). Since the newer ebuild depends on a gentoo-vm, there is no direct upgrade path from <dev-java/openjdk-11.0.14_p9-r1 to dev-java/openjdk-11.0.14_p9-r1. Instead we're forced to install the newest dev-java/openjdk-bin:11 just to bootstrap the newer version of dev-java/openjdk:11.

This is totally unneccessary, the non-gentoo-vm versions are good enough.

I can understand that you wanted to simplify the ebuild and remove the non-gentoo-vm handling, it's not very nice to the users. So you're forcing them to download useless 190MB of distfiles, waste 250MB in /opt, and have to remember to manually depclean the cruft after the update, just so you can remove a dozen of lines from the ebuild.

While I agree that the ebuild should *eventually* be clean up, I really think you should provide a smooth upgrade path for at least 3 months (better 6, some users are slow with updates).

I added the required logic back to the ebuild and adjusted the dependencies such that it bootraps with any :11 vm. Tested, and (as expected) it works for me. I'm attaching the modified ebuild for the devs or interested users.
Comment 1 Larry the Git Cow gentoo-dev 2022-02-16 20:32:13 UTC
The bug has been referenced in the following commit(s):

commit 11de3479da384aaad1232b4399c387eee99db6eb
Author:     Georgy Yakovlev <>
AuthorDate: 2022-02-16 20:31:09 +0000
Commit:     Georgy Yakovlev <>
CommitDate: 2022-02-16 20:31:55 +0000

    profiles/base: remove openjdk*:11 gentoo-vm mask
    Signed-off-by: Georgy Yakovlev <>

 profiles/base/package.use.stable.mask | 9 ---------
 1 file changed, 9 deletions(-)
Comment 2 Georgy Yakovlev archtester gentoo-dev 2022-02-16 20:33:52 UTC
gentoo-vm is now unmasked for previous version, so it can be used now too on stable systems if it's rebuilt.

thanks for the patch, I may merge it soon after checking the bootstrap logic, there were some bugs and I removed that branch to simplify code and maintenance.
Comment 3 Larry the Git Cow gentoo-dev 2024-05-17 09:28:22 UTC
The bug has been referenced in the following commit(s):

commit d57754cd3fe53161d876a8043ec720ed7f0f1d3d
Author:     Volkmar W. Pogatzki <>
AuthorDate: 2024-05-15 21:13:52 +0000
Commit:     Miroslav Šulc <>
CommitDate: 2024-05-17 09:28:04 +0000

    dev-java/openjdk: drop 11.0.22_p7
    Signed-off-by: Volkmar W. Pogatzki <>
    Signed-off-by: Miroslav Šulc <>

 dev-java/openjdk/Manifest                  |   1 -
 dev-java/openjdk/openjdk-11.0.22_p7.ebuild | 312 -----------------------------
 2 files changed, 313 deletions(-)