summaryrefslogtreecommitdiffstats
path: root/python/python3-twisted
diff options
context:
space:
mode:
author Arn02023-10-09 21:51:29 +0200
committer Willy Sudiarto Raharjo2023-10-10 01:25:00 +0200
commit599b23bbdb90e018c69bec90848750c213626f7b (patch)
treeb15d2b85e8a6b4374350ac7b1acb7f198460d181 /python/python3-twisted
parent4bdb31c2c061b5aa1dc1ab2f6edefc93c26fd449 (diff)
downloadslackbuilds-599b23bbdb90e018c69bec90848750c213626f7b.tar.gz
python/python3-twisted: fixed for zope.interface 6.x
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-twisted')
-rw-r--r--python/python3-twisted/python3-twisted.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/python/python3-twisted/python3-twisted.SlackBuild b/python/python3-twisted/python3-twisted.SlackBuild
index 02d4eb4ac2..b86ea6b2f5 100644
--- a/python/python3-twisted/python3-twisted.SlackBuild
+++ b/python/python3-twisted/python3-twisted.SlackBuild
@@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-twisted
SRCNAM=${PRGNAM#python3-*}
VERSION=${VERSION:-23.8.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -63,6 +63,9 @@ elif [ "$ARCH" = "i686" ]; then
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
+elif [ "$ARCH" = "aarch64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
@@ -86,6 +89,9 @@ find -L . \
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
+# Fix initialization bug with zope.interface 6+
+sed -i 's#zope-interface#zope.interface#' "$PKG/usr/lib${LIBDIRSUFFIX}/python3.9/site-packages/twisted-${VERSION}.dist-info/METADATA"
+
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