Skip to content
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

Open
1 task done
david-x64 opened this issue Dec 16, 2024 · 2 comments
Open
1 task done

Debian Packaging Incompatibility with OpenJDK #1077

david-x64 opened this issue Dec 16, 2024 · 2 comments

Comments

@david-x64
Copy link

Please provide a brief summary of the bug

Debian package temurin-21-jdk provides package name java21-sdk-headless.
But it does not provide java21-sdk.

Debian package openjdk-21-jdk on linux mint provides java21-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 the java<version>-sdk package name for Java versions up to 18.

Did you test with the latest update version?

  • Yes

Please provide steps to reproduce where possible

Compare package descriptions of temurin-21-jdk and openjdk-21-jdk.
Especially compare the field Provides of both packages.

apt-cache show temurin-21-jdk
apt-cache show openjdk-21-jdk

Expected Results

I expect to find a versioned common name in the Provides field of both packages.
For example temurin-21-jdk should provide java21-sdk just as openjdk-21-jdk does already.

Actual Results

temurin-21-jdk does not provide java21-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

NAME="Linux Mint"
VERSION="22 (Wilma)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22"
VERSION_ID="22"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=wilma
UBUNTU_CODENAME=noble

How did you install Java?

sudo apt install temurin-21-jdk

Did it work before?

Yes, this worked up to Java-18.

Did you test with other Java versions?

No response

Relevant log output

Package: temurin-21-jdk
Version: 21.0.0.0.0+35
...
Provides: ...java-sdk, java-sdk-headless, ..., java18-sdk, java21-sdk-headless, ...
@david-x64 david-x64 added the bug label Dec 16, 2024
@karianna
Copy link
Contributor

@jerboaa - Thoughts on this?

@jerboaa
Copy link
Contributor

jerboaa commented Dec 17, 2024

@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):
https://openjdk.org/jeps/8278252

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.

@jerboaa jerboaa transferred this issue from adoptium/adoptium-support Dec 17, 2024
@karianna karianna added enhancement and removed bug labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants