Summary: | dev-util/idea-community: Issue with openjdk Slot Specification | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diogo Pinto <gentoo> |
Component: | Current packages | Assignee: | Mike Pagano <mpagano> |
Status: | UNCONFIRMED --- | ||
Severity: | minor | CC: | gentoo, gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Diogo Pinto
2025-05-12 00:15:25 UTC
(In reply to Diogo Pinto from comment #0) > [...] > The Idea 2025 works up to OpenJDK version 24, so I see no problem in > removing this specification or using a Slot operator, in my case it helped. Could you please also check with openjdk:25 (it is not yet keyworded but will get most probably after branching in June)? I tried version 25 of OpenJDK, and it seems to work. Since version 25 is not officially supported, even though it works, wouldn't it be better to restrict its use? I tested the following restriction before OR, and it seemed effective: !dev-java/openjdk:25 !dev-java/openjdk-bin:25 . (In reply to Diogo Pinto from comment #2) > I tried version 25 of OpenJDK, and it seems to work. > > Since version 25 is not officially supported, even though it works, wouldn't > it be better to restrict its use? > > I tested the following restriction before OR, and it seemed effective: > !dev-java/openjdk:25 > !dev-java/openjdk-bin:25 > > . openjdk:25 is the upcoming next LTS and it will be keyworded soon. https://openjdk.org/projects/jdk/25/#Schedule And I've never seen that kind of restriction for any jdk before. (In reply to Volkmar W. Pogatzki from comment #3) > And I've never seen that kind of restriction for any jdk before. I took a look at the other packages, and using virtual/jdk is more common and easier to maintain. DEPEND=">=virtual/jdk-17" It solved this issue in the same way. (In reply to Diogo Pinto from comment #4) > (In reply to Volkmar W. Pogatzki from comment #3) > > And I've never seen that kind of restriction for any jdk before. > > I took a look at the other packages, and using virtual/jdk is more common > and easier to maintain. > > DEPEND=">=virtual/jdk-17" > > It solved this issue in the same way. This solved another issue. If you didn't have OpenJDK installed, emerge installed both the openjdk-bin and openjdk-bin packages. Note: This is the idea-community package without any modifications or fixes. [ebuild N ~] dev-java/openjdk-bin-17.0.15_p6 USE="alsa cups -headless-awt (-selinux) -source" [ebuild N ~] dev-java/openjdk-17.0.15_p6 USE="alsa cups jbootstrap (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt (-javafx) -lto (-selinux) -source -systemtap" [ebuild N ~] dev-util/idea-community-2025.1.1.1 USE="wayland -experimental" With only DEPEND=“>=virtual/jdk-17”, emerge only installs one of the packages: [ebuild N ~] dev-java/openjdk-bin-21.0.7_p6 USE="alsa cups -headless-awt (-selinux) -source" [ebuild N ] virtual/jdk-21 USE="-headless-awt" [ebuild N ~] dev-util/idea-community-2025.1.1.1 USE="wayland -experimental" The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc5a4d8f28bd08289b61da7d5402448a32c77a2e commit bc5a4d8f28bd08289b61da7d5402448a32c77a2e Author: Mike Pagano <mpagano@gentoo.org> AuthorDate: 2025-05-19 19:29:02 +0000 Commit: Mike Pagano <mpagano@gentoo.org> CommitDate: 2025-05-19 19:29:02 +0000 dev-util/idea-community: Adjust JDK dependency Bug: https://bugs.gentoo.org/955858 Signed-off-by: Mike Pagano <mpagano@gentoo.org> .../idea-community-2025.1.1.1-r1.ebuild | 176 +++++++++++++++++++++ 1 file changed, 176 insertions(+) |