[Libguestfs] [PATCH] configure: add java-8-openjdk and java-7-openjdk as locations for java

Richard W.M. Jones rjones at redhat.com
Thu Aug 14 16:36:19 UTC 2014


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




More information about the Libguestfs mailing list