Page MenuHomeFreeBSD

D52392.id.diff
No OneTemporary

D52392.id.diff

diff --git a/textproc/opensearch/Makefile b/textproc/opensearch/Makefile
--- a/textproc/opensearch/Makefile
+++ b/textproc/opensearch/Makefile
@@ -1,17 +1,19 @@
PORTNAME= opensearch
-DISTVERSION?= 3.1.0
-DISTVERSIONSUFFIX= -linux-x64
+DISTVERSION= 3.2.0
+DISTVERSIONSUFFIX= -linux-${OPENSEARCH_ARCH}
PORTREVISION?= 0
CATEGORIES= textproc java devel
MASTER_SITES= https://artifacts.opensearch.org/releases/bundle/${PORTNAME}/${DISTVERSION}/
PKGNAMESUFFIX?= #
MAINTAINER= opensearch@FreeBSD.org
-COMMENT?= Full-text search engine for Java
+COMMENT= Full-text search engine for Java
WWW= https://opensearch.org
LICENSE= APACHE20
+ONLY_FOR_ARCHS= aarch64 amd64
+
BUILD_DEPENDS= jna>0:devel/jna
RUN_DEPENDS= bash>0:shells/bash \
jna>0:devel/jna
@@ -39,6 +41,12 @@
.include <bsd.port.options.mk>
+.if ${ARCH} == "aarch64"
+OPENSEARCH_ARCH= arm64
+.else
+OPENSEARCH_ARCH= x64
+.endif
+
CONFIG_FILES= opensearch.yml jvm.options log4j2.properties
PLUGINS_CONFIG_FILES?= \
diff --git a/textproc/opensearch/distinfo b/textproc/opensearch/distinfo
--- a/textproc/opensearch/distinfo
+++ b/textproc/opensearch/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1752307580
-SHA256 (opensearch-3.1.0-linux-x64.tar.gz) = a5eb65b1fab3ff4e0befba8cf48174e8bc2daee6d85ffd5b5c4ccf5cbf427eb6
-SIZE (opensearch-3.1.0-linux-x64.tar.gz) = 1000330285
+TIMESTAMP = 1757053538
+SHA256 (opensearch-3.2.0-linux-x64.tar.gz) = 3f77e6a69925af8a18d6feaa651129027dccab4e4f8a20c23fee7873db992f44
+SIZE (opensearch-3.2.0-linux-x64.tar.gz) = 942883522
diff --git a/textproc/opensearch/files/opensearch.in b/textproc/opensearch/files/opensearch.in
--- a/textproc/opensearch/files/opensearch.in
+++ b/textproc/opensearch/files/opensearch.in
@@ -17,6 +17,13 @@
# Set it to the config file location.
# opensearch_java_home (path): Set to %%JAVA_HOME%% by default.
# Set it to the root of the JDK to use.
+# opensearch_flags (): Set to "" by default.
+# Configure temporary startup flags
+# Format: "-Enetwork.host=0.0.0.0 -Ediscovery.type=single-node"
+# See: docs.opensearch.org/latest/install-and-configure/configuring-opensearch/index/
+# opensearch_env (): Set to "" by default.
+# Configure environment
+# Format: "OPENSEARCH_INITIAL_ADMIN_PASSWORD=Secret!Password1"
#
. /etc/rc.subr
@@ -31,6 +38,8 @@
: ${opensearch_config=%%PREFIX%%/etc/opensearch}
: ${opensearch_login_class=root}
: ${opensearch_java_home="%%JAVA_HOME%%"}
+: ${opensearch_flags=""}
+: ${opensearch_env=""}
required_files="${opensearch_config}/opensearch.yml"
_pidprefix=/var/run/opensearch/opensearch
@@ -46,6 +55,10 @@
export OPENSEARCH_PATH_CONF=${opensearch_config}
export JAVA_HOME=${opensearch_java_home}
+if [ -n "${opensearch_env}" ]; then
+ export ${opensearch_env}
+fi
+
opensearch_precmd()
{
/usr/bin/install -d -o ${opensearch_user} -g ${opensearch_group} -m 755 ${pidfile%/*}
diff --git a/textproc/opensearch/files/patch-config_opensearch.yml b/textproc/opensearch/files/patch-config_opensearch.yml
--- a/textproc/opensearch/files/patch-config_opensearch.yml
+++ b/textproc/opensearch/files/patch-config_opensearch.yml
@@ -1,4 +1,4 @@
---- config/opensearch.yml.orig 2021-07-02 23:22:08 UTC
+--- config/opensearch.yml.orig 2021-07-02 23:22:08 UTC
+++ config/opensearch.yml
@@ -31,10 +31,12 @@
# Path to directory where to store the data (separate multiple locations by comma):
@@ -13,3 +13,10 @@
#
# ----------------------------------- Memory -----------------------------------
#
+@@ -122,3 +124,7 @@
+ #
+ #opensearch.experimental.optimization.datetime_formatter_caching.enabled: false
++
++# Disable unsupported AVX2, https://github.com/opensearch-project/k-NN/issues/2788
++knn.faiss.avx2.disabled: true
++knn.faiss.avx512_spr.disabled: true

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 9, 9:30 PM (7 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31172373
Default Alt Text
D52392.id.diff (3 KB)

Event Timeline