freebsd-ports/audio/jack/files/patch-python311
Dima Panov ce7206b2c3 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)
2022-11-11 18:49:32 +03:00

20 lines
627 B
Plaintext

'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: