summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-23.0.0-py_3_11.patch18
-rw-r--r--dev-ada/gnatcoll-bindings/gnatcoll-bindings-23.0.0-r1.ebuild (renamed from dev-ada/gnatcoll-bindings/gnatcoll-bindings-23.0.0.ebuild)4
2 files changed, 21 insertions, 1 deletions
diff --git a/dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-23.0.0-py_3_11.patch b/dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-23.0.0-py_3_11.patch
new file mode 100644
index 000000000000..e4c3960c236f
--- /dev/null
+++ b/dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-23.0.0-py_3_11.patch
@@ -0,0 +1,18 @@
+--- a/python/python_support.c 2023-02-22 20:16:04.746476700 +0100
++++ b/python/python_support.c 2023-02-22 20:18:46.762891565 +0100
+@@ -814,13 +814,13 @@
+ PyCodeObject*
+ ada_pyframe_get_code (PyFrameObject* obj)
+ {
+- return obj->f_code;
++ return PyFrame_GetCode(obj);
+ }
+
+ PyFrameObject*
+ ada_pyframe_get_back (PyFrameObject* obj)
+ {
+- return obj->f_back;
++ return PyFrame_GetBack(obj);
+ }
+
+ PyObject*
diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-23.0.0.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-23.0.0-r1.ebuild
index 7c815bf5399d..763e56aeaffe 100644
--- a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-23.0.0.ebuild
+++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-23.0.0-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{9..10} )
+PYTHON_COMPAT=( python3_{9..11} )
ADA_COMPAT=( gnat_2021 gcc_12 gcc_12_2_0 )
inherit ada multiprocessing python-single-r1
@@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
QA_EXECSTACK=usr/lib/gnatcoll_readline.*/libgnatcoll_readline.*
+PATCHES=( "${FILESDIR}"/${P}-py_3_11.patch )
+
pkg_setup() {
python-single-r1_pkg_setup
ada_pkg_setup