void-packages/srcpkgs/libffado/patches/python3.12.patch

58 lines
1.7 KiB
Diff

--- ./libffado/admin/pyuic.py.orig 2023-09-29 14:33:38.623993612 -0400
+++ ./libffado/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
--- ./libffado/admin/pyuic4.py.orig 2023-09-29 14:33:53.292081527 -0400
+++ ./libffado/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
--- ./libffado/admin/pyuic5.py.orig 2023-09-29 14:34:01.796132496 -0400
+++ ./libffado/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