[PATCH] configure: add java-8-openjdk and java-7-openjdk as locations for java
This helps some distros (e.g. Archlinux) where openjdk is installed in java-MAJOR-openjdk directories, without any "default version" symlink. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 1d93ca0..fa26924 100644 --- a/configure.ac +++ b/configure.ac @@ -1251,6 +1251,8 @@ if test "x$with_java" != "xno"; then for d in \ /usr/lib/jvm/java \ /usr/lib/jvm/default-java \ + /usr/lib/jvm/java-8-openjdk \ + /usr/lib/jvm/java-7-openjdk \ /usr/lib/jvm/java-6-openjdk do if test -d $d && test -f $d/bin/java; then -- 1.9.3
On Thursday 14 August 2014 17:34:00 Pino Toscano wrote:
This helps some distros (e.g. Archlinux) where openjdk is installed in java-MAJOR-openjdk directories, without any "default version" symlink.
FWIW, since less than a month, Arch Linux includes a /usr/lib/jvm/java-default-runtime -> java-7-openjdk symlink (or java-8-openjdk) (see package java-common). Documentation: https://wiki.archlinux.org/index.php/Java#Multiple_official_Java_environment... Peter
--- configure.ac | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac index 1d93ca0..fa26924 100644 --- a/configure.ac +++ b/configure.ac @@ -1251,6 +1251,8 @@ if test "x$with_java" != "xno"; then for d in \ /usr/lib/jvm/java \ /usr/lib/jvm/default-java \ + /usr/lib/jvm/java-8-openjdk \ + /usr/lib/jvm/java-7-openjdk \ /usr/lib/jvm/java-6-openjdk do if test -d $d && test -f $d/bin/java; then
On Thursday 14 August 2014 17:54:19 Peter Wu wrote:
On Thursday 14 August 2014 17:34:00 Pino Toscano wrote:
This helps some distros (e.g. Archlinux) where openjdk is installed in java-MAJOR-openjdk directories, without any "default version" symlink. FWIW, since less than a month, Arch Linux includes a /usr/lib/jvm/java-default-runtime -> java-7-openjdk symlink (or java-8-openjdk) (see package java-common). Documentation: https://wiki.archlinux.org/index.php/Java#Multiple_official_Java_environment...
Makes sense. I just added /usr/lib/jvm/java-default-runtime as third "generic symlink" after the two existing one, on top of this patch. Thanks for the heads-up, -- Pino Toscano
On Thu, Aug 14, 2014 at 05:34:00PM +0200, Pino Toscano wrote:
This helps some distros (e.g. Archlinux) where openjdk is installed in java-MAJOR-openjdk directories, without any "default version" symlink. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac index 1d93ca0..fa26924 100644 --- a/configure.ac +++ b/configure.ac @@ -1251,6 +1251,8 @@ if test "x$with_java" != "xno"; then for d in \ /usr/lib/jvm/java \ /usr/lib/jvm/default-java \ + /usr/lib/jvm/java-8-openjdk \ + /usr/lib/jvm/java-7-openjdk \ /usr/lib/jvm/java-6-openjdk do if test -d $d && test -f $d/bin/java; then
ACK. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
participants (3)
-
Peter Wu -
Pino Toscano -
Richard W.M. Jones