Update JRE dependencies for debian trixie #2342
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
debian trixie comes (currently) with
openjdk-21-jre-headless
(selected bydefault-jre-headless
) oropenjdk-25-jre-headless
, but notopenjdk-17-jre-headless
(nor 11). I'm currently running (a small personal instance) withopenjdk-25-jre-headless
and it seems fine.(
openjdk-17-jre-headless
is still installed but not selected as/usr/bin/java
, and apt is unhappy about "locally installed" packages.)Another options for the dependency list would be
default-jre-headless | java-runtime-headless (>= 17)
.default-jre-headless
is a real package that depends on the default JRE of a debian release, andjava-runtime-headless
is a (versioned) virtual package provided by allopenjdk*-jre-headless
packages since version 17 - on trixie this should default to 21 but allow 25.openjdk-11-jre-headless
should be usable on buster and bullseye via thedefault-jre-headless
in those dists, or you could append| openjdk-11-jre-headless
as final alternative (afaik the versionedjava-runtime-headless (>= ...)
shouldn't acceptopenjdk-11-jre-headless
, because it providesjava-runtime-headless
only without a version).I don't think a versioned dependency on
default-jre-headless
(e.g. likedefault-jre-headless (>=2:1.11)
) would be a proper solution; if you want to make sure a recent enough java is installed (although that doesn't guarantee it is selected for/usr/bin/java
) you should stick tojava-runtime-headless (>= 17)
.Similar names could be used for the build dependencies.
If you tell me what semantics you'd like in the dependencies I can adjust this PR (within the limits of what is reasonably possible with the debian packages).