Bug#1078013: java-wrappers: find_java_runtime fails to find openjdk-21

mtths at nurfuerspam.de mtths at nurfuerspam.de
Mon Aug 5 23:08:57 BST 2024


Package: java-wrappers
Version: 0.4
Severity: normal
Tags: patch

Dear Maintainer,

since the unstable version of package default-jdk-headless depends on
openjdk-21, this java version should be detected by java-wrappers, too.
The current version of only searches for java 20 as highest version.
[cf. Ubuntu bug #2063510]


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.9.12 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages java-wrappers depends on:
ii  unzip  6.0-28

java-wrappers recommends no packages.

java-wrappers suggests no packages.

-- no debconf information
-------------- next part --------------
--- jvm-list.sh.orig	2022-12-04 18:54:49.000000000 +0100
+++ jvm-list.sh	2024-08-03 20:29:52.160860074 +0200
@@ -39,2 +39,3 @@
 __jvm_oracle20="/usr/lib/jvm/java-20-oracle /usr/lib/jvm/jdk-20-oracle-* /usr/lib/jvm/jre-20-oracle-*"
+__jvm_oracle21="/usr/lib/jvm/java-21-oracle /usr/lib/jvm/jdk-20-oracle-* /usr/lib/jvm/jre-21-oracle-*"

@@ -51,2 +52,3 @@
 __jvm_openjdk20="/usr/lib/jvm/java-20-openjdk-$__arch /usr/lib/jvm/java-20-openjdk"
+__jvm_openjdk21="/usr/lib/jvm/java-21-openjdk-$__arch /usr/lib/jvm/java-21-openjdk"

@@ -54,6 +56,7 @@
 # And a few aliases
-__jvm_openjdk="$__jvm_openjdk20 $__jvm_openjdk19 $__jvm_openjdk18 $__jvm_openjdk17 $__jvm_openjdk11 $__jvm_openjdk10 $__jvm_openjdk9 $__jvm_openjdk8 $__jvm_openjdk7 $__jvm_openjdk6"
+__jvm_openjdk="$__jvm_openjdk21 $__jvm_openjdk20 $__jvm_openjdk19 $__jvm_openjdk18 $__jvm_openjdk17 $__jvm_openjdk11 $__jvm_openjdk10 $__jvm_openjdk9 $__jvm_openjdk8 $__jvm_openjdk7 $__jvm_openjdk6"

 # The java* runtimes:
-__jvm_java20="$__jvm_openjdk20 $__jvm_oracle20"
+__jvm_java21="$__jvm_openjdk21 $__jvm_oracle21"
+__jvm_java20="$__jvm_java21 $__jvm_openjdk20 $__jvm_oracle20"
 __jvm_java19="$__jvm_java20 $__jvm_openjdk19 $__jvm_oracle19"


More information about the pkg-java-maintainers mailing list