Skip to content

Commit

Permalink
fix(main/jack2): Add patch to make jack2 buildable with host python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
termux-pacman-bot committed Jan 4, 2025
1 parent 9d27d0e commit 66e2e80
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/jack2/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="The JACK low-latency audio server"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=1.9.22
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/jackaudio/jack2/archive/refs/tags/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=1e42b9fc4ad7db7befd414d45ab2f8a159c0b30fcd6eee452be662298766a849
TERMUX_PKG_DEPENDS="alsa-lib, dbus, libandroid-posix-semaphore, libdb, libexpat, libsamplerate, libopus"
Expand Down
23 changes: 23 additions & 0 deletions packages/jack2/waflib-Context.py.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Allow building with python 3.12.

diff -u -r ../jack2-1.9.22/waflib/Context.py ./waflib/Context.py
--- ../jack2-1.9.22/waflib/Context.py 2023-02-02 11:04:10.000000000 +0000
+++ ./waflib/Context.py 2025-01-04 14:41:17.461095402 +0000
@@ -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 66e2e80

Please sign in to comment.