Skip to content

Commit

Permalink
jack: use Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamschula committed Jun 23, 2024
1 parent f9345a3 commit dbca000
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
8 changes: 6 additions & 2 deletions audio/jack/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PortGroup waf 1.0

name jack
github.setup jackaudio jack2 1.9.22 v
revision 0
revision 1
checksums rmd160 1f13a7ac5020d95b5b51f1c43d7cfe3507e7b8b0 \
sha256 1e42b9fc4ad7db7befd414d45ab2f8a159c0b30fcd6eee452be662298766a849 \
size 933448
Expand Down Expand Up @@ -45,7 +45,11 @@ compiler.blacklist-append \
compiler.cxx_standard \
2011

waf.python_branch 3.11
# This won't be needed after the next update
# see: https://github.com/jackaudio/jack2/issues/898#issuecomment-2185323342
patchfiles-append patch-waflib-Context.py.diff

waf.python_branch 3.12

depends_build-append \
port:pkgconfig
Expand Down
20 changes: 20 additions & 0 deletions audio/jack/files/patch-waflib-Context.py.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- waflib/Context.py.orig 2023-02-02 05:04:10
+++ waflib/Context.py 2024-06-23 15:42:02
@@ -6,7 +6,7 @@
Classes and functions enabling the command system
"""

-import os, re, imp, sys
+import os, re, sys, types
from waflib import Utils, Errors, Logs
import waflib.Node

@@ -660,7 +660,7 @@
except KeyError:
pass

- module = imp.new_module(WSCRIPT_FILE)
+ module = types.ModuleType(WSCRIPT_FILE)
try:
code = Utils.readf(path, m='r', encoding=encoding)
except EnvironmentError:

0 comments on commit dbca000

Please sign in to comment.