From 599b23bbdb90e018c69bec90848750c213626f7b Mon Sep 17 00:00:00 2001 From: Arn0 Date: Mon, 9 Oct 2023 21:51:29 +0200 Subject: python/python3-twisted: fixed for zope.interface 6.x Signed-off-by: Willy Sudiarto Raharjo --- python/python3-twisted/python3-twisted.SlackBuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'python/python3-twisted') 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 -- cgit v1.2.3