Martin Kletzander
2018-Nov-19 22:52 UTC
[Libguestfs] [PATCH] m4: Add java search path for Gentoo
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@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
Richard W.M. Jones
2018-Nov-20 08:40 UTC
Re: [Libguestfs] [PATCH] m4: Add java search path for Gentoo
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@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-openjdkThanks, 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
Apparently Analagous Threads
- [PATCH] configure: add java-8-openjdk and java-7-openjdk as locations for java
- [PATCH] java: support OpenJDK 10+
- [PATCH] configure: Move language binding detection to separate files.
- [PATCH 1/2] configure: visually split the blocks of checks
- [PATCH 2/2] configure: output paths where java is searched in