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

Martin Kletzander mkletzan at redhat.com
Mon Nov 19 22:52:07 UTC 2018


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
-- 
2.19.1




More information about the Libguestfs mailing list