git: ce7206b2c356 - main - audio/jack: unbreak build with Python 3.11 (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 11 Nov 2022 15:50:08 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ce7206b2c356180cb74518e348fc0800d2c62163

commit ce7206b2c356180cb74518e348fc0800d2c62163
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-11-11 15:47:54 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-11-11 15:49:32 +0000

    audio/jack: unbreak build with Python 3.11 (+)
    
    'U' is default and deprecated since python-3.3, becomes a failure in 3.11.
    
    See also:       https://github.com/jackaudio/jack2/issues/898
    Obtained from:  Gentoo
    Approved by:    portmgr blanket (trivial fix build)
---
 audio/jack/files/patch-python311 | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/audio/jack/files/patch-python311 b/audio/jack/files/patch-python311
new file mode 100644
index 000000000000..6900f5048660
--- /dev/null
+++ b/audio/jack/files/patch-python311
@@ -0,0 +1,19 @@
+'U' is default and deprecated since python-3.3, becomes a failure in 3.11.
+
+Just a quick fix (rather than bump waf) while waiting for upstream's
+plans to migrate to meson:
+https://github.com/jackaudio/jack2/issues/898
+--- waflib/ConfigSet.py
++++ waflib/ConfigSet.py
+@@ -314,3 +314,3 @@
+ 		tbl = self.table
+-		code = Utils.readf(filename, m='rU')
++		code = Utils.readf(filename, m='r')
+ 		for m in re_imp.finditer(code):
+--- waflib/Context.py
++++ waflib/Context.py
+@@ -664,3 +664,3 @@
+ 	try:
+-		code = Utils.readf(path, m='rU', encoding=encoding)
++		code = Utils.readf(path, m='r', encoding=encoding)
+ 	except EnvironmentError: