Skip to content

Commit

Permalink
audio/jack: unbreak build with Python 3.11 (+)
Browse files Browse the repository at this point in the history
'U' is default and deprecated since python-3.3, becomes a failure in 3.11.

See also:	jackaudio/jack2#898
Obtained from:	Gentoo
Approved by:	portmgr blanket (trivial fix build)
  • Loading branch information
fluffykhv committed Nov 11, 2022
1 parent 283bd6f commit ce7206b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions audio/jack/files/patch-python311
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit ce7206b

Please sign in to comment.