SHA256
1
0
forked from pool/python-sip4
Dominique Leuenberger 2023-07-01 21:18:30 +00:00 committed by Git OBS Bridge
commit 355f882554
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jul 1 00:12:29 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Enable python311, libArcus does not support SIP > 4.
Add python311_frame.patch
-------------------------------------------------------------------
Sun Feb 19 20:29:32 UTC 2023 - Ben Greiner <code@bnavigator.de>

View File

@ -36,7 +36,6 @@
# where X is the python flavor
# python-sip4-doc and python-sip4-common are flavorless
%define oldpython python
%define skip_python311 1
Name: python-%{pname}
Version: 4.19.25
@ -50,6 +49,8 @@ Source0: https://www.riverbankcomputing.com/static/Downloads/sip/%{versio
Patch0: disable-rpaths.diff
# PATCH-FIX-OPENSUSE disable-strip.diff -- Disable stripping
Patch1: disable-strip.diff
# PATCH-FIX-OPENSUSE -- Use accessor for python frame object
Patch2: python311_frame.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: c++_compiler

15
python311_frame.patch Normal file
View File

@ -0,0 +1,15 @@
Taken from https://bugzilla.redhat.com/show_bug.cgi?id=2062144
diff --git a/siplib/siplib.c b/siplib/siplib.c
index db52b68..8019e97 100644
--- a/siplib/siplib.c
+++ b/siplib/siplib.c
@@ -13747,7 +13747,7 @@ static struct _frame *sip_api_get_frame(int depth)
while (frame != NULL && depth > 0)
{
- frame = frame->f_back;
+ frame = PyFrame_GetBack(frame);
--depth;
}