diff options
author | Martin Dummer <martin.dummer@gmx.net> | 2021-08-12 12:36:53 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-08-16 09:58:25 +0300 |
commit | 05304bfc02bfb62b66733ee8df4089ce4285299c (patch) | |
tree | 49b5d829b9677fc2005b3e29720f4bdf5897b6be /net-im/signal-cli-bin/files | |
parent | app-vim/gentoo-syntax: Sync the live ebuild (diff) | |
download | gentoo-05304bfc02bfb62b66733ee8df4089ce4285299c.tar.gz gentoo-05304bfc02bfb62b66733ee8df4089ce4285299c.tar.bz2 gentoo-05304bfc02bfb62b66733ee8df4089ce4285299c.zip |
net-im/signal-cli-bin: enhance java binary search
Implement a suggestion to search more directories for the java11 binary
see https://github.com/gentoo/gentoo/pull/18719#discussion_r687230129
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-im/signal-cli-bin/files')
-rw-r--r-- | net-im/signal-cli-bin/files/signal-cli-bin-0.8.1-use-working-java-version.patch | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/net-im/signal-cli-bin/files/signal-cli-bin-0.8.1-use-working-java-version.patch b/net-im/signal-cli-bin/files/signal-cli-bin-0.8.1-use-working-java-version.patch index 4a550e410bfb..b39745214944 100644 --- a/net-im/signal-cli-bin/files/signal-cli-bin-0.8.1-use-working-java-version.patch +++ b/net-im/signal-cli-bin/files/signal-cli-bin-0.8.1-use-working-java-version.patch @@ -1,7 +1,7 @@ Signed-off-by: Martin Dummer <martin.dummer@gmx.net> ---- a/bin/signal-cli 2021-03-02 20:56:06.000000000 +0100 -+++ b/bin/signal-cli 2021-05-03 12:05:45.406811750 +0200 -@@ -84,13 +84,20 @@ +--- a/bin/signal-cli ++++ b/bin/signal-cli +@@ -84,13 +84,19 @@ # Determine the Java command to use to start the JVM. @@ -14,8 +14,7 @@ Signed-off-by: Martin Dummer <martin.dummer@gmx.net> - fi +# This package needs Java 11, but Java 11 is currently not part of the gentoo eselect config system +# so we must search for matching java binaries -+JAVA_DIRS="$JAVA_HOME /opt/openjdk-jre-bin-11 /opt/openjdk-bin-11" -+for I in $JAVA_DIRS ; do ++for I in /usr/lib*/openjdk-11 /opt/openjdk-bin-11 /opt/openjdk-jre-bin-11; do + J_TRY="$I/bin/java" + if [ -x "$J_TRY" ] ; then + "$J_TRY" -version 2>&1 | grep --fixed-strings --quiet "11." |