aboutsummaryrefslogtreecommitdiffstats
path: root/python3-onnxruntime/python3-onnxruntime.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python3-onnxruntime/python3-onnxruntime.SlackBuild')
-rw-r--r--python3-onnxruntime/python3-onnxruntime.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/python3-onnxruntime/python3-onnxruntime.SlackBuild b/python3-onnxruntime/python3-onnxruntime.SlackBuild
index 8ed4fa8..5b9fb74 100644
--- a/python3-onnxruntime/python3-onnxruntime.SlackBuild
+++ b/python3-onnxruntime/python3-onnxruntime.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-onnxruntime
-VERSION=${VERSION:-1.28.0}
+VERSION=${VERSION:-1.29.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -55,7 +55,11 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
python3 -m installer --destdir "$PKG" \
- "$CWD/$SRCNAM-$VERSION-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl"
+ "$CWD/$SRCNAM-$VERSION-cp312-cp312-manylinux_2_28_x86_64.whl"
+
+# The wheel ships the CPython extension as non-executable; sbopkglint wants
+# ELF shared objects executable.
+find $PKG -type f -name '*.so' -exec chmod 755 {} \;
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true