summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jolly <kangie@gentoo.org>2025-04-16 17:58:54 +1000
committerMatt Jolly <kangie@gentoo.org>2025-04-16 17:58:54 +1000
commitecd66ed03a052474be3cc7abe119a48ee88b54b5 (patch)
tree0238a4fd032989a2c7a732bfe7140e4e55005feb
parent975c298ebe20eb9db80169eebbc2070618b17f4c (diff)
downloadgentoo-ecd66ed03a052474be3cc7abe119a48ee88b54b5.tar.gz
gentoo-ecd66ed03a052474be3cc7abe119a48ee88b54b5.tar.bz2
gentoo-ecd66ed03a052474be3cc7abe119a48ee88b54b5.zip
app-misc/elasticsearch: drop unused patch
Signed-off-by: Matt Jolly <kangie@gentoo.org>
-rw-r--r--app-misc/elasticsearch/files/elasticsearch-env.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/app-misc/elasticsearch/files/elasticsearch-env.patch b/app-misc/elasticsearch/files/elasticsearch-env.patch
deleted file mode 100644
index fb150bb51db3..000000000000
--- a/app-misc/elasticsearch/files/elasticsearch-env.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Since ES 8.0.0 upstream stopped distributing a 'no-JDK' package.
-This requires us to set `ES_JAVA_HOME` else it fails to find the
-JDK that we unbundled and will not start.
---- a/bin/elasticsearch-env
-+++ b/bin/elasticsearch-env
-@@ -36,6 +36,18 @@ ES_HOME=`dirname "$ES_HOME"`
- ES_CLASSPATH="$ES_HOME/lib/*"
- LAUNCHERS_CLASSPATH="$ES_CLASSPATH:$ES_HOME/lib/launchers/*"
-
-+# Set our JVM in a Gentoo-specific manner
-+if [ -z "$ES_JAVA_HOME" ]; then
-+ GENTOO_VM=$(depend-java-query --get-vm virtual/jre:17)
-+ if [ ! -z "$GENTOO_VM" ]; then
-+ ES_JAVA_HOME=$(java-config-2 --select-vm=${GENTOO_VM} --jre-home)
-+ else
-+ echo "Unable to automatically detect a supported Java 17 VM. Elasticsearch is unlikely to launch."
-+ echo "Please ensure that you have installed an appropriate Java VM using portage"
-+ echo "OR pass the ES_JAVA_HOME environment variable."
-+ fi
-+fi
-+
- # now set the path to java
- if [ ! -z "$ES_JAVA_HOME" ]; then
- JAVA="$ES_JAVA_HOME/bin/java"