Skip to content

Commit

Permalink
add libgomp into the blast package on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
DenKoren committed Oct 18, 2024
1 parent 37c8bcd commit df9955c
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 7 deletions.
Binary file added libs/aarch64/libgomp.so.1
Binary file not shown.
Binary file added libs/x64/libgomp.so.1
Binary file not shown.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platforma-open/milaboratories.software-blast",
"version": "1.1.1",
"version": "1.1.2",
"description": "Blast software package for Platforma Backend",
"scripts": {
"build": "true",
Expand All @@ -17,7 +17,7 @@
"artifacts": {
"2.16.0": {
"registry": "platforma-open",
"version": "2.16.0",
"version": "2.16.0-1",
"type": "binary",
"roots": {
"linux-x64": "./dld/blast-2.16.0-linux-x64",
Expand Down
43 changes: 43 additions & 0 deletions scripts/2.x/linux-add-libs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/usr/bin/env bash

set -o errexit
set -o nounset

#
# Script state init
#
script_dir="$(cd "$(dirname "${0}")" && pwd)"
cd "${script_dir}/../../"

if [ "$#" -ne 2 ]; then
echo ""
echo "Usage: '${0}' <version> <arch>"
echo " '${0}' 2.16.0 x64"
echo ""
echo " Arch list:"
echo " x64"
echo " aarch64"
echo ""
exit 1
fi

#
# Script parameters
#
version="${1}"
arch="${2}"

os="linux"
dst_root="dld"
dst_data_dir="${dst_root}/blast-${version}-${os}-${arch}"

# Copy libraries into the distribution
cp -R "libs/${arch}/" "${dst_data_dir}/bin/"

# Patch binaries so they find copied libraries
find "${dst_data_dir}/bin/" -type f -executable |
while read -r binary; do
patchelf \
--set-rpath '$ORIGIN' \
"${binary}"
done
4 changes: 1 addition & 3 deletions scripts/2.x/pkg-download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ arch="${3}"
dst_root="dld"
dst_data_dir="${dst_root}/blast-${version}-${os}-${arch}"

dst_archive_ext="tar.gz"
# Dirty change of the 'global' state from inside the function
dst_archive_path="${dst_root}/blast-${version}-${os}-${arch}.${dst_archive_ext}"
dst_archive_path="${dst_root}/blast-${version}-${os}-${arch}.tar.gz"

function log() {
printf "%s\n" "${*}"
Expand Down
4 changes: 4 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ pl-pkg build descriptors \

./2.x/pkg-download.sh "${version}" macosx x64
./2.x/pkg-download.sh "${version}" macosx aarch64

./2.x/pkg-download.sh "${version}" linux x64
./2.x/linux-add-libs.sh "${version}" x64
./2.x/pkg-download.sh "${version}" linux aarch64
./2.x/linux-add-libs.sh "${version}" aarch64

./2.x/pkg-download.sh "${version}" windows x64

pl-pkg build packages \
Expand Down

0 comments on commit df9955c

Please sign in to comment.