summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2021-05-03 12:43:44 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-05-19 09:47:54 +0300
commit5d409ca2803e725274367abf55795b8a306ab519 (patch)
tree4e7ba4ea350c09e2a8dcf0e50ee780739133eb43 /net-im/signal-cli-bin/files
parentprofiles/package.mask: dev-java/werken-xpath last-rite (diff)
downloadgentoo-5d409ca2803e725274367abf55795b8a306ab519.tar.gz
gentoo-5d409ca2803e725274367abf55795b8a306ab519.tar.bz2
gentoo-5d409ca2803e725274367abf55795b8a306ab519.zip
net-im/signal-cli-bin: version bump to 0.8.1
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/20666 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.patch31
1 files changed, 31 insertions, 0 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
new file mode 100644
index 000000000000..4a550e410bfb
--- /dev/null
+++ b/net-im/signal-cli-bin/files/signal-cli-bin-0.8.1-use-working-java-version.patch
@@ -0,0 +1,31 @@
+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 @@
+
+
+ # Determine the Java command to use to start the JVM.
+-if [ -n "$JAVA_HOME" ] ; then
+- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+- # IBM's JDK on AIX uses strange locations for the executables
+- JAVACMD="$JAVA_HOME/jre/sh/java"
+- else
+- JAVACMD="$JAVA_HOME/bin/java"
+- 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
++ J_TRY="$I/bin/java"
++ if [ -x "$J_TRY" ] ; then
++ "$J_TRY" -version 2>&1 | grep --fixed-strings --quiet "11."
++ if [ $? -eq 0 ] ; then
++ JAVACMD="$J_TRY"
++ break
++ fi
++ fi
++done
++if [ -n "$JAVACMD" ] ; then
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+