Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833096 - dev-java/openjdk-11.0.14_p9-r1 should be able to bootstrap with dev-java/openjdk{,-bin}[-gentoo-vm]
Summary: dev-java/openjdk-11.0.14_p9-r1 should be able to bootstrap with dev-java/open...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-10 23:26 UTC by Alexander Miller
Modified: 2024-05-17 09:28 UTC (History)
3 users (show)

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


Attachments
modified openjdk-11.0.14_p9-r1.ebuild (openjdk-11.0.14_p9-r1.ebuild,7.93 KB, text/plain)
2022-02-10 23:26 UTC, Alexander Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11de3479da384aaad1232b4399c387eee99db6eb

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

    profiles/base: remove openjdk*:11 gentoo-vm mask
    
    Closes: https://bugs.gentoo.org/810613
    Bug: https://bugs.gentoo.org/697014
    Bug: https://bugs.gentoo.org/833096
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d57754cd3fe53161d876a8043ec720ed7f0f1d3d

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

    dev-java/openjdk: drop 11.0.22_p7
    
    Bug: https://bugs.gentoo.org/925020
    Bug: https://bugs.gentoo.org/916211
    Bug: https://bugs.gentoo.org/898978
    Bug: https://bugs.gentoo.org/833096
    Bug: https://bugs.gentoo.org/907680
    Bug: https://bugs.gentoo.org/677876
    Bug: https://bugs.gentoo.org/927028
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/36690
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

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