pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/jack jack: fix build with Python 3.11



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c94b22a5fc61
branches:  trunk
changeset: 390087:c94b22a5fc61
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Fri Dec 16 07:36:41 2022 +0000

description:
jack: fix build with Python 3.11

diffstat:

 audio/jack/distinfo                          |   4 +++-
 audio/jack/patches/patch-waflib_ConfigSet.py |  16 ++++++++++++++++
 audio/jack/patches/patch-waflib_Context.py   |  25 +++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 1 deletions(-)

diffs (65 lines):

diff -r c5641bbfdd3e -r c94b22a5fc61 audio/jack/distinfo
--- a/audio/jack/distinfo       Fri Dec 16 01:10:11 2022 +0000
+++ b/audio/jack/distinfo       Fri Dec 16 07:36:41 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.32 2022/03/26 22:36:19 tnn Exp $
+$NetBSD: distinfo,v 1.33 2022/12/16 07:36:41 wiz Exp $
 
 BLAKE2s (jack2-1.9.19.tar.gz) = aa43a3ae606c00e7c8e047e89250e068717f44fa0443b8531a6d83ca2a9dff71
 SHA512 (jack2-1.9.19.tar.gz) = d8d5fe17e2984959546af3c53f044aa4648860e19ff8ffd54452e87fa6cdfd111f825c57e3df17cb8ed95de8392b6f354b12ded41e3e021a37f07b99a89ba18d
@@ -22,4 +22,6 @@
 SHA1 (patch-posix_JackSocket.cpp) = 88ae18c3d2cc31a43355ff9b0c78ab13b83bd314
 SHA1 (patch-tests_wscript) = e0bf616175a116df489808cda8cb8c70890d4da0
 SHA1 (patch-tools_wscript) = fab7472b29fc6e46ba1e8ca94c12aa8808b075da
+SHA1 (patch-waflib_ConfigSet.py) = 8f4cf15e16dae9f64ee7d5f65fe8c633cea7d1c0
+SHA1 (patch-waflib_Context.py) = b68ec440239d877680e1425907a42f8412f7e7da
 SHA1 (patch-wscript) = a49c6e7ebd84bb5156576351308676b0b3486492
diff -r c5641bbfdd3e -r c94b22a5fc61 audio/jack/patches/patch-waflib_ConfigSet.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack/patches/patch-waflib_ConfigSet.py      Fri Dec 16 07:36:41 2022 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-waflib_ConfigSet.py,v 1.1 2022/12/16 07:36:41 wiz Exp $
+
+Fix build with Python 3.11.
+https://github.com/jackaudio/jack2/issues/898
+
+--- waflib/ConfigSet.py.orig   2021-07-15 06:18:26.000000000 +0000
++++ waflib/ConfigSet.py
+@@ -312,7 +312,7 @@ class ConfigSet(object):
+               :type filename: string
+               """
+               tbl = self.table
+-              code = Utils.readf(filename, m='rU')
++              code = Utils.readf(filename, m='r')
+               for m in re_imp.finditer(code):
+                       g = m.group
+                       tbl[g(2)] = eval(g(3))
diff -r c5641bbfdd3e -r c94b22a5fc61 audio/jack/patches/patch-waflib_Context.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/jack/patches/patch-waflib_Context.py        Fri Dec 16 07:36:41 2022 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-waflib_Context.py,v 1.1 2022/12/16 07:36:41 wiz Exp $
+
+Fix build with Python 3.11.
+https://github.com/jackaudio/jack2/issues/898
+
+--- waflib/Context.py.orig     2021-07-15 06:18:26.000000000 +0000
++++ waflib/Context.py
+@@ -266,7 +266,7 @@ class Context(ctx):
+                               cache[node] = True
+                               self.pre_recurse(node)
+                               try:
+-                                      function_code = node.read('rU', encoding)
++                                      function_code = node.read('r', encoding)
+                                       exec(compile(function_code, node.abspath(), 'exec'), self.exec_dict)
+                               finally:
+                                       self.post_recurse(node)
+@@ -662,7 +662,7 @@ def load_module(path, encoding=None):
+ 
+       module = imp.new_module(WSCRIPT_FILE)
+       try:
+-              code = Utils.readf(path, m='rU', encoding=encoding)
++              code = Utils.readf(path, m='r', encoding=encoding)
+       except EnvironmentError:
+               raise Errors.WafError('Could not read the file %r' % path)
+ 



Home | Main Index | Thread Index | Old Index