diff options
-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 |