diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-25 12:12:12 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-25 12:12:12 +0700 |
commit | c5a9e024db85fe3a5f512558043b40bada15eb2b (patch) | |
tree | f99adad2617f44e8457c7df3b7f6f4798e94e31d /misc | |
parent | 1648752ee861516a61d198f0cdd1abe52053ba6a (diff) |
misc/cwiid: Fix build with python 3.10.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/cwiid/cwiid.SlackBuild | 3 | ||||
-rw-r--r-- | misc/cwiid/python310.patch | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/misc/cwiid/cwiid.SlackBuild b/misc/cwiid/cwiid.SlackBuild index 7f79bfe7fedc..7d19cef3aefa 100644 --- a/misc/cwiid/cwiid.SlackBuild +++ b/misc/cwiid/cwiid.SlackBuild @@ -92,10 +92,11 @@ for i in $( cat debian/patches/series ); do [ -e $i ] && patch -p1 < debian/patches/$i done +patch -p1 < $CWD/python310.patch + autoreconf -if ./configure \ - --disable-ldconfig \ --prefix=/usr \ --libdir=$LIBDIR \ --sysconfdir=/etc \ diff --git a/misc/cwiid/python310.patch b/misc/cwiid/python310.patch new file mode 100644 index 000000000000..5a835aef7ea4 --- /dev/null +++ b/misc/cwiid/python310.patch @@ -0,0 +1,11 @@ +--- cwiid/configure.ac.orig 2021-10-25 12:06:48.965614546 +0700 ++++ cwiid/configure.ac 2021-10-25 12:07:01.190613822 +0700 +@@ -67,7 +67,7 @@ + fi + AC_SUBST(PYTHON) + if test $PYTHON; then +- PYTHON_VERSION=[`$PYTHON -c 'import sys; print (sys.version[:3])'`] ++ PYTHON_VERSION=[`$PYTHON -c 'import sys; print (sys.version[:4])'`] + AC_SUBST(PYTHON_VERSION) + AC_DEFINE([HAVE_PYTHON],1,[Define to 1 if python support is enabled]) + fi |