diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-01-23 14:24:52 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:08 +0200 |
| commit | b9caaf767e3e312d28274f24a6ddf0b64005f5bd (patch) | |
| tree | 5d37ae6ae0af7ebf7dc0e1c4a657e8d78799b1b7 | |
| parent | dead8b3a528872f817a5e2c3ab4f10a969d0ce51 (diff) | |
gnu: jack-2: Make compatible with Python 3.11.
* gnu/packages/audio.scm (jack-2)[arguments]: Add phase 'python-compatibility.
Change-Id: Ice859acb84f12feac2d31b231ef18c065d644c6c
| -rw-r--r-- | gnu/packages/audio.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm index 50267ee0fe..2ba2195695 100644 --- a/gnu/packages/audio.scm +++ b/gnu/packages/audio.scm @@ -2872,6 +2872,14 @@ synchronous execution of all clients, and low latency operation.") #:configure-flags '("--dbus" "--alsa") #:phases (modify-phases %standard-phases + ;; Python 3.11 has removed the 'U' (universal newline) mode. It has + ;; been the default since Python 3.3. + (add-after 'unpack 'python-compatibility + (lambda _ + (substitute* '("waflib/Context.py" + "waflib/ConfigSet.py") + (("m='rU'") "m='r'") + (("read\\('rU'") "read('r'")))) (add-before 'configure 'set-linkflags (lambda _ ;; Ensure -lstdc++ is the tail of LDFLAGS or the simdtests.cpp |
