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.
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(-)
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.
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(-)