summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2023-02-22 20:24:26 +0100
committerAlfredo Tupone <tupone@gentoo.org>2023-02-22 20:24:51 +0100
commit6aed43d4bb7560153603c6254b967ee8e3e74b71 (patch)
tree5074baac5894defde8c7db93dc490656668c9210 /dev-ada
parentdev-python/raet: PEP517, py3.11, pypi.eclass (diff)
downloadgentoo-6aed43d4bb7560153603c6254b967ee8e3e74b71.tar.gz
gentoo-6aed43d4bb7560153603c6254b967ee8e3e74b71.tar.bz2
gentoo-6aed43d4bb7560153603c6254b967ee8e3e74b71.zip
dev-ada/gnatcoll-bindings: support python 3.11
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-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