Pino Toscano
2014-Aug-14 15:34 UTC
[Libguestfs] [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
Peter Wu
2014-Aug-14 15:54 UTC
Re: [Libguestfs] [PATCH] configure: add java-8-openjdk and java-7-openjdk as locations for java
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_environments 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 >
Richard W.M. Jones
2014-Aug-14 16:36 UTC
Re: [Libguestfs] [PATCH] configure: add java-8-openjdk and java-7-openjdk as locations for java
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; thenACK. 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
Pino Toscano
2014-Aug-14 17:14 UTC
Re: [Libguestfs] [PATCH] configure: add java-8-openjdk and java-7-openjdk as locations for java
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_environmentsMakes 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
Maybe Matching Threads
- [PATCH] m4: Add java search path for Gentoo
- [PATCH] java: support OpenJDK 10+
- [PATCH] configure: Move language binding detection to separate files.
- [PATCH 1/2] configure: visually split the blocks of checks
- java-1.6.0-openjdk.x86_64 keeps clobbering logging.properties