mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
lorcon: python 3.13 patch for testing
This commit is contained in:
parent
ab9f286964
commit
3e19562b21
2 changed files with 23 additions and 8 deletions
20
net-wireless/lorcon/files/python_3.13.patch
Normal file
20
net-wireless/lorcon/files/python_3.13.patch
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
--- a/pylorcon2/PyLorcon2.c.orig 2022-02-16 23:20:32.000000000 +0800
|
||||||
|
+++ b/pylorcon2/PyLorcon2.c 2025-04-22 12:02:33.146371998 +0800
|
||||||
|
@@ -1325,7 +1325,7 @@
|
||||||
|
|
||||||
|
/* Call the error cb function */
|
||||||
|
cb_arg = Py_BuildValue("(O)", lorcon_obj);
|
||||||
|
- pyresult = PyEval_CallObject(multi->error_cb_func, cb_arg);
|
||||||
|
+ pyresult = PyObject_Call(multi->error_cb_func, cb_arg, NULL);
|
||||||
|
Py_DECREF(cb_arg);
|
||||||
|
|
||||||
|
if (pyresult == NULL) {
|
||||||
|
@@ -1425,7 +1425,7 @@
|
||||||
|
Py_DECREF(packet_tuple_arg);
|
||||||
|
|
||||||
|
cb_arg = Py_BuildValue("(O)", pypacket);
|
||||||
|
- pyresult = PyEval_CallObject(multi->cb_func, cb_arg);
|
||||||
|
+ pyresult = PyObject_Call(multi->cb_func, cb_arg, NULL);
|
||||||
|
Py_DECREF(cb_arg);
|
||||||
|
|
||||||
|
if (pyresult == NULL) {
|
||||||
|
|
@ -40,16 +40,11 @@ BDEPEND="
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
python? ( ${DISTUTILS_DEPS} )"
|
python? ( ${DISTUTILS_DEPS} )"
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${P}-C99-decls.patch )
|
PATCHES=( "${FILESDIR}"/${P}-C99-decls.patch
|
||||||
|
"${FILESDIR}"/python_3.13.patch
|
||||||
|
)
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
|
|
||||||
if use python && use python_targets_python3_13; then
|
|
||||||
eerror "Python 3.13 is not supported by this version"
|
|
||||||
eerror "Please disable python use flag"
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
|
|
||||||
default
|
default
|
||||||
use python && distutils-r1_src_prepare
|
use python && distutils-r1_src_prepare
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue