summaryrefslogtreecommitdiffstats
path: root/source/l/libxml2
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/libxml2')
-rwxr-xr-xsource/l/libxml2/libxml2.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/l/libxml2/libxml2.SlackBuild b/source/l/libxml2/libxml2.SlackBuild
index 007bfa4ae..85006e47c 100755
--- a/source/l/libxml2/libxml2.SlackBuild
+++ b/source/l/libxml2/libxml2.SlackBuild
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=libxml2
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -81,6 +81,11 @@ find . \
zcat $CWD/libxml2.do-not-check-crc.diff.gz | patch -p1 --verbose || exit 1
+# Fixes for python-3.9.x:
+sed -i '/if Py/{s/Py/(Py/;s/)/))/}' python/{types.c,libxml.c}
+sed -i '/_PyVerify_fd/,+1d' python/types.c
+sed -i 's/test.test/#&/' python/tests/tstLastError.py
+
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \