Bug#834552: java-wrappers: jvm-list.sh does not include $__jvm_gcj5 and $__jvm_openjdk8 in aliases
Vincent Lefevre
vincent at vinc17.net
Tue Aug 16 23:45:27 UTC 2016
Package: java-wrappers
Version: 0.1.28
Severity: normal
/usr/lib/java-wrappers/jvm-list.sh contains:
[...]
# Now, free runtimes:
__jvm_gcj2="/usr/lib/jvm/java-*-gcj-4.* "
__jvm_gcj5="/usr/lib/jvm/java-1.5*-gcj-4.* "
__jvm_openjdk6="/usr/lib/jvm/java-6-openjdk-$__arch /usr/lib/jvm/java-6-openjdk"
__jvm_openjdk7="/usr/lib/jvm/java-7-openjdk-$__arch /usr/lib/jvm/java-7-openjdk"
__jvm_openjdk8="/usr/lib/jvm/java-8-openjdk-$__arch /usr/lib/jvm/java-8-openjdk"
# And a few aliases
__jvm_gcj="$__jvm_gcj2"
__jvm_openjdk="$__jvm_openjdk7 $__jvm_openjdk6"
[...]
I find surprising to see that $__jvm_gcj5 and $__jvm_openjdk8 are
not included in these aliases, respectively. I suppose that one
should have:
__jvm_gcj="$__jvm_gcj5 $__jvm_gcj2"
__jvm_openjdk="$__jvm_openjdk8 $__jvm_openjdk7 $__jvm_openjdk6"
Note: I've noticed this problem because the jing / trang sh wrappers
do:
find_java_runtime openjdk sun || find_java_runtime
and if openjdk-8-jre is the only installed openjdk runtime, then one
gets a spurious warning:
[warning] /usr/bin/jing: No java runtime was found
or
[warning] /usr/bin/trang: No java runtime was found
(though this warning was useful to find this bug, I don't think
it should be there, because jing/trang can run with the JDK found
by the second find_java_runtime, and I'm going to report another
bug against src:jing-trang about this).
-- System Information:
Debian Release: stretch/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages java-wrappers depends on:
ii unzip 6.0-20
java-wrappers recommends no packages.
java-wrappers suggests no packages.
-- no debconf information
More information about the pkg-java-maintainers
mailing list