mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 18:05:07 +03:00
fix(opensearch) (#6150)
* fix(opensearch) closes #6148 * catch all instances
This commit is contained in:
parent
5bbc9e3cc7
commit
277426d258
1 changed files with 12 additions and 20 deletions
|
@ -13,15 +13,15 @@ dependencies:
|
|||
|
||||
build:
|
||||
dependencies:
|
||||
cmake.org: "*"
|
||||
git-scm.org: "*"
|
||||
gnu.org/wget: "*"
|
||||
cmake.org: '*'
|
||||
git-scm.org: '*'
|
||||
gnu.org/wget: '*'
|
||||
gradle.org: '*'
|
||||
openjdk.org: ^17
|
||||
gnu.org/gcc: ^12 # for gfortran
|
||||
linux:
|
||||
# on mac we use the Accelerate framework instead, on linux this is linked statically
|
||||
openblas.net: "*"
|
||||
openblas.net: '*'
|
||||
|
||||
script:
|
||||
# there seems to be a loader bug with trying to dlopen libc on macos 12 and earlier.
|
||||
|
@ -52,6 +52,8 @@ build:
|
|||
git reset --hard
|
||||
git submodule foreach --recursive git reset --hard
|
||||
git submodule update --init --recursive
|
||||
git config --global user.email "hello@pkgx.dev"
|
||||
git config --global user.name "pkgx"
|
||||
working-directory: k-NN
|
||||
|
||||
# workarounds for m1 build. see: https://github.com/opensearch-project/k-NN/blob/main/DEVELOPER_GUIDE.md#extra-setup-for-mac-m1-machines
|
||||
|
@ -63,17 +65,7 @@ build:
|
|||
working-directory: k-NN/jni/external
|
||||
|
||||
- run: |
|
||||
IFS=:
|
||||
for p in ${LD_LIBRARY_PATH}; do
|
||||
if [ -e "${p}/libomp.dylib" ]; then
|
||||
libomp_path="${p}/.."
|
||||
break
|
||||
fi
|
||||
done
|
||||
unset IFS
|
||||
[ -z "${libomp_path}" ] && echo "libomp.dylib not found" && exit 1
|
||||
|
||||
sed -i -e "s|/usr/local/opt/libomp/|${libomp_path}/|g" jni/CMakeLists.txt
|
||||
sed -i -e "s|/usr/local/opt/libomp/|{{deps.openmp.llvm.org.prefix}}/|g" jni/CMakeLists.txt jni/cmake/*.cmake
|
||||
sed -i -e 's/pragma message WARN/pragma message /g' jni/external/nmslib/similarity_search/src/distcomp_scalar.cc
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
|
@ -122,8 +114,8 @@ provides:
|
|||
test:
|
||||
dependencies:
|
||||
gnu.org/coreutils: ^9
|
||||
stedolan.github.io/jq: "*"
|
||||
curl.se: "*"
|
||||
stedolan.github.io/jq: '*'
|
||||
curl.se: '*'
|
||||
script:
|
||||
- opensearch-plugin list
|
||||
|
||||
|
|
Loading…
Reference in a new issue