diff --git a/projects/opensearch.org/package.yml b/projects/opensearch.org/package.yml index c5bc15c6..fdcb4097 100644 --- a/projects/opensearch.org/package.yml +++ b/projects/opensearch.org/package.yml @@ -24,9 +24,20 @@ build: openblas.net: "*" script: + # there seems to be a loader bug with trying to dlopen libc on macos 12 and earlier. + # remove this step when macos 12 and under are no longer supported. + - run: | + sed -i 's|JNAKernel32Library.getInstance();|//JNAKernel32Library.getInstance();|' server/src/main/java/org/opensearch/bootstrap/Bootstrap.java + if: darwin/x86-64 - gradle -Dbuild.snapshot=false ":distribution:archives:no-jdk-{{hw.platform}}-tar:assemble" - run: tar --strip-components=1 -xf $SRCROOT/distribution/archives/no-jdk-{{hw.platform}}-tar/build/distributions/opensearch-*.tar.gz working-directory: ${{prefix}} + # there seems to be a loader bug with trying to dlopen libc on macos 12 and earlier. + # remove this step when macos 12 and under are no longer supported. + - run: | + rm -f lib/jna-*.jar + if: darwin/x86-64 + working-directory: ${{prefix}} - run: 'sed -i "s|#\s*cluster.name: .*|cluster.name: opensearch_pkgx|" opensearch.yml' working-directory: ${{prefix}}/config