[Libguestfs] [PATCH] m4: Add java search path for Gentoo

Richard W.M. Jones rjones at redhat.com
Tue Nov 20 08:40:42 UTC 2018


On Mon, Nov 19, 2018 at 11:52:07PM +0100, Martin Kletzander wrote:
> In Gentoo the java alternatives are managed using jva-config (or eselect java),
> but because the selection is treated as a configuration the symlink to the
> current jvm selected is stored in /etc, particularly in the symlink
> /etc/java-config-2/current-system-vm which works such as /usr/lib/jvm/default.
> 
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> ---
>  m4/guestfs-java.m4 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/m4/guestfs-java.m4 b/m4/guestfs-java.m4
> index daa5af32d8bd..1ca9912b0630 100644
> --- a/m4/guestfs-java.m4
> +++ b/m4/guestfs-java.m4
> @@ -46,6 +46,7 @@ if test "x$with_java" != "xno"; then
>              /usr/lib64/jvm/java \
>              /usr/lib/jvm/default-java \
>              /usr/lib/jvm/default \
> +            /etc/java-config-2/current-system-vm \
>              /usr/lib/jvm/java-8-openjdk \
>              /usr/lib/jvm/java-7-openjdk \
>              /usr/lib/jvm/java-6-openjdk

Thanks, will push it in a moment.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list