aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/python3-cffsubr/python3-cffsubr.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/python3-cffsubr/python3-cffsubr.SlackBuild b/python/python3-cffsubr/python3-cffsubr.SlackBuild
index 53b8cd05f38a6..c5bf532128cff 100644
--- a/python/python3-cffsubr/python3-cffsubr.SlackBuild
+++ b/python/python3-cffsubr/python3-cffsubr.SlackBuild
@@ -87,10 +87,14 @@ rm -rvf external
sed -i '/ext_modules=\[tx\]/d; /^ext_modules=/a ext_modules=[]' setup.py
CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
+# 46and2: Note that the link creation below does not work and I don't
+# know if it is necessary, but it will now build on current at least.
+
# Create a symlink to installed afdko's tx tool, this is neccessary as
# cffsubr and fontmake needs this symlink to work properly
-ln -s /usr/bin/tx $PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/cffsubr/
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+ln -s /usr/bin/tx $PKG/usr/lib${LIBDIRSUFFIX}/python$PYVER/site-packages/cffsubr/
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded --remove-section=.comment --remove-section=.note 2> /dev/null || true