diff --git a/srcpkgs/libffado/patches/python3.12.patch b/srcpkgs/libffado/patches/python3.12.patch new file mode 100644 index 00000000000..6cce16153f9 --- /dev/null +++ b/srcpkgs/libffado/patches/python3.12.patch @@ -0,0 +1,57 @@ +--- ./admin/pyuic.py.orig 2023-09-29 14:33:38.623993612 -0400 ++++ ./admin/pyuic.py 2023-09-29 14:33:53.283081474 -0400 +@@ -21,8 +21,6 @@ + # along with this program. If not, see . + # + +-import imp +- + def pyuic_action( target, source, env ): + env.Execute( "pyuic " + str( source[0] ) + " > " + str( target[0] ) ) + return 0 +@@ -34,6 +32,7 @@ + context.Message( "Checking for pyuic (by checking for the python module pyqtconfig) " ) + ret = True + try: ++ import imp + imp.find_module( "pyqtconfig" ) + except ImportError: + ret = False +--- ./admin/pyuic4.py.orig 2023-09-29 14:33:53.292081527 -0400 ++++ ./admin/pyuic4.py 2023-09-29 14:34:01.776132375 -0400 +@@ -21,8 +21,6 @@ + # along with this program. If not, see . + # + +-import imp +- + def pyuic4_action( target, source, env ): + env.Execute( "pyuic4 " + str( source[0] ) + " > " + str( target[0] ) ) + return 0 +@@ -34,6 +32,7 @@ + context.Message( "Checking for pyuic4 (by checking for the python module pyqtconfig) " ) + ret = True + try: ++ import imp + imp.find_module( "pyqtconfig" ) + except ImportError: + ret = False +--- ./admin/pyuic5.py.orig 2023-09-29 14:34:01.796132496 -0400 ++++ ./admin/pyuic5.py 2023-09-29 14:34:09.431178259 -0400 +@@ -22,8 +22,6 @@ + # along with this program. If not, see . + # + +-import imp +- + def pyuic5_action( target, source, env ): + env.Execute( "pyuic5 " + str( source[0] ) + " > " + str( target[0] ) ) + return 0 +@@ -35,6 +33,7 @@ + context.Message( "Checking for pyuic5 (by checking for the python module pyqtconfig) " ) + ret = True + try: ++ import imp + imp.find_module( "pyqtconfig" ) + except ImportError: + ret = False diff --git a/srcpkgs/libffado/template b/srcpkgs/libffado/template index 3445b489f1a..8f3648ed7c5 100644 --- a/srcpkgs/libffado/template +++ b/srcpkgs/libffado/template @@ -1,7 +1,7 @@ # Template file for 'libffado' pkgname=libffado version=2.4.7 -revision=1 +revision=2 build_style=scons scons_use_destdir=yes make_build_args="PREFIX=/usr MANDIR=/usr/share/man @@ -10,7 +10,7 @@ make_build_args="PREFIX=/usr MANDIR=/usr/share/man DETECT_USERSPACE_ENV=0 PYPKGDIR=/${py3_sitelib} DIST_TARGET=none DETECT_USERSPACE_ENV=0" make_install_args="$make_build_args WILL_DEAL_WITH_XDG_MYSELF=1" -hostmakedepends="pkg-config xdg-utils python3-PyQt5-devel-tools which" +hostmakedepends="pkg-config xdg-utils python3-setuptools python3-PyQt5-devel-tools which" makedepends="libxml++-devel libdbus-c++-devel libsigc++-devel libconfig++-devel jack-devel libavc1394-devel libiec61883-devel libraw1394-devel alsa-lib-devel python3-PyQt5-dbus"