From ca17ab65c1cf794f9bef9effedc9f4679b1ac7aa Mon Sep 17 00:00:00 2001 From: "Scott J. Goldman" Date: Sat, 13 Jan 2024 23:09:46 -0800 Subject: [PATCH] fix loader paths for opensearch try appending to library path env vars instead of overriding java.library.path which clobbers other necessary paths --- projects/opensearch.org/package.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/projects/opensearch.org/package.yml b/projects/opensearch.org/package.yml index f0f9d351..c5bc15c6 100644 --- a/projects/opensearch.org/package.yml +++ b/projects/opensearch.org/package.yml @@ -95,8 +95,12 @@ build: zip -r opensearch-knn-{{version}}.0.zip lib/ {{prefix}}/bin/opensearch-plugin install --batch file:`pwd`/opensearch-knn-{{version}}.0.zip working-directory: k-NN - - run: echo 'export OPENSEARCH_JAVA_OPTS="-Djava.library.path=$OPENSEARCH_HOME/plugins/opensearch-knn/lib $OPENSEARCH_JAVA_OPTS"' >> opensearch-env + - run: echo 'export JAVA_LIBRARY_PATH="$OPENSEARCH_HOME/plugins/opensearch-knn/lib:$JAVA_LIBRARY_PATH"' >> opensearch-env working-directory: ${{prefix}}/bin + if: darwin + - run: echo 'export LD_LIBRARY_PATH="$OPENSEARCH_HOME/plugins/opensearch-knn/lib:$LD_LIBRARY_PATH"' >> opensearch-env + working-directory: ${{prefix}}/bin + if: linux provides: - bin/opensearch