mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-wireless/lorcon: enable py3.13, py3.14, py3.15
Closes: https://bugs.gentoo.org/952642 Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1520 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
2cb86100b3
commit
bc25e68716
@@ -0,0 +1,28 @@
|
||||
https://github.com/kismetwireless/lorcon/commit/b7ea84e39d1177fabd5e290be7d8e20ee6e41c4f
|
||||
|
||||
From b7ea84e39d1177fabd5e290be7d8e20ee6e41c4f Mon Sep 17 00:00:00 2001
|
||||
From: Mike Kershaw / Dragorn <dragorn@kismetwireless.net>
|
||||
Date: Thu, 26 Feb 2026 23:20:02 -0500
|
||||
Subject: [PATCH] merge python3 patch from pentoo
|
||||
(net-wireless/lorcon/files/python_3.13.patch)
|
||||
|
||||
--- a/pylorcon2/PyLorcon2.c
|
||||
+++ b/pylorcon2/PyLorcon2.c
|
||||
@@ -1325,7 +1325,7 @@ void pylorcon2_multi_error_handler(lorcon_multi_t *ctx, lorcon_t *lorcon_interfa
|
||||
|
||||
/* 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 @@ void pylorcon2_multi_handler(lorcon_t *ctx, lorcon_packet_t *pkt, u_char *aux) {
|
||||
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) {
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_OPTIONAL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
@@ -41,7 +41,10 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
python? ( ${DISTUTILS_DEPS} )"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-C99-decls.patch )
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-C99-decls.patch
|
||||
"${FILESDIR}"/${P}-py3.13.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -6,7 +6,7 @@ EAPI=8
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_OPTIONAL=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..12} )
|
||||
PYTHON_COMPAT=( python3_{12..15} )
|
||||
|
||||
inherit distutils-r1 flag-o-matic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user