-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debian Packaging Incompatibility with OpenJDK #1077
Comments
@jerboaa - Thoughts on this? |
I'm not sure it's possible (or desirable) to be compatible with any distro provides. This might inadvertently pull in Temurin where the user perhaps doesn't intent to. On the other hand, it seems a reasonable use-case to depend on some vendor-independent thing. The question is whether or not there is agreement between distros of OpenJDK of what those vendor-independent provides should be and whether or not that causes problems. For example there has been this JEP draft a while ago which didn't go anywhere (withdrawn): Something like this would also be hard to test reliably. We'd probably need to find somebody to drive this effort in terms of implementation/research/test and would need PMC go ahead. |
This may be an omission in the debian control files used to build the .deb packages, sample below, it looks like after JDK18, some updates were omitted, I guess determining if this was deliberate or not should influence the fix. |
After discussion at PMC, this issue appears to be a bug/omission when the debian control files were created for JDK21 onwards, this will be fixed in the upcoming January 2025 CPU cycle. A new issue will be created to discuss whether JDK21 should be providing the earlier runtime/sdk/etc version, or behave in a similar fashion to the rpms. |
New issue to track future enhancement/potential change : #1096 |
Also interestingly the control files used to build the jre deb packages do have the lines I believe are missing for the JDK. |
Sounds even more like just a simple oversight then :-) |
Please provide a brief summary of the bug
Debian package
temurin-21-jdk
provides package namejava21-sdk-headless
.But it does not provide
java21-sdk
.Debian package
openjdk-21-jdk
on linux mint providesjava21-sdk
But it does not provide
java21-sdk-headless
.So there is no common package name provided anymore which I can use to express a build dependency on Java 21 in a vendor independent manner.
Interestingly, the
temurin-21-jdk
package does provide thejava<version>-sdk
package name for Java versions up to 18.Did you test with the latest update version?
Please provide steps to reproduce where possible
Compare package descriptions of
temurin-21-jdk
andopenjdk-21-jdk
.Especially compare the field
Provides
of both packages.Expected Results
I expect to find a versioned common name in the
Provides
field of both packages.For example
temurin-21-jdk
should providejava21-sdk
just asopenjdk-21-jdk
does already.Actual Results
temurin-21-jdk
does not providejava21-sdk
.What Java Version are you using?
openjdk 21.0.5 2024-10-15 LTS OpenJDK Runtime Environment Temurin-21.0.5+11 (build 21.0.5+11-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (build 21.0.5+11-LTS, mixed mode, sharing)
What is your operating system and platform?
Linux Mint 22 - Wilma, x86_64
How did you install Java?
Did it work before?
Did you test with other Java versions?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: