diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2023-08-10 20:23:33 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2023-08-10 22:58:39 +0200 |
commit | 0cf6293129665a135dbd856c8919b912e9ba041c (patch) | |
tree | 2036266202f400b9b1541e3af0caed0b6f0cdb34 /source/n/nftables/nftables.SlackBuild | |
parent | 19e7ff8c7f3129e87cc2b771d47267c547bada6d (diff) | |
download | current-0cf6293129665a135dbd856c8919b912e9ba041c.tar.gz current-0cf6293129665a135dbd856c8919b912e9ba041c.tar.xz |
Thu Aug 10 20:23:33 UTC 202320230810202333
Thanks to Heinz Wiesinger for these added python packages to implement
PEP 427 and PEP 517! Python modules are phasing out setup.py in favor of
building wheels, and then using python-installer to install them. These
are the bits needed to make that happen.
l/python-build-0.10.0-x86_64-1.txz: Added.
l/python-flit-core-3.9.0-x86_64-1.txz: Added.
l/python-glad2-2.0.4-x86_64-1.txz: Added.
l/python-installer-0.7.0-x86_64-1.txz: Added.
l/python-lxml-4.9.3-x86_64-1.txz: Added.
l/python-pyproject-hooks-1.0.0-x86_64-1.txz: Added.
l/python-tomli-w-1.0.0-x86_64-1.txz: Added.
l/python-wheel-0.41.1-x86_64-1.txz: Added.
n/nftables-1.0.8-x86_64-2.txz: Rebuilt.
Correctly generate nftables Python module using PEP 427/517 method.
Thanks to marav.
n/openssh-9.4p1-x86_64-1.txz: Upgraded.
Diffstat (limited to '')
-rwxr-xr-x | source/n/nftables/nftables.SlackBuild | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/n/nftables/nftables.SlackBuild b/source/n/nftables/nftables.SlackBuild index d6bed8a4d..f7129abf8 100755 --- a/source/n/nftables/nftables.SlackBuild +++ b/source/n/nftables/nftables.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2014, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2014, 2018, 2023 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=nftables VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -78,6 +78,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ +# Upstream patch: +cat $CWD/5f1676ac9f1aeb36d7695c3c354dade013a1e4f3.patch | patch -p1 --verbose || exit 1 + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ LIBS="-lncursesw" \ @@ -88,17 +91,22 @@ LIBS="-lncursesw" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PKGNAM-$VERSION \ - --with-python-bin=python3 \ --with-xtables \ --disable-static \ + --disable-python \ --with-json \ - --enable-python \ --with-cli=readline \ --build=$ARCH-slackware-linux || exit 1 make $NUMJOBS || make || exit 1 make install DESTDIR=$PKG || exit 1 +# Build python module: +( cd py + python3 -m build --wheel --no-isolation + python3 -m installer --destdir="$PKG" dist/*.whl +) + rm -f $PKG/usr/lib${LIBDIRSUFFIX}/*.la find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ |