libffado: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:03:49 -04:00
parent d044687815
commit c64acff1fe
2 changed files with 59 additions and 2 deletions

View file

@ -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 <http://www.gnu.org/licenses/>.
#
-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 <http://www.gnu.org/licenses/>.
#
-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 <http://www.gnu.org/licenses/>.
#
-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

View file

@ -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"