Accepting request 1096220 from home:StefanBruens:branches:science
- Enable python311, libArcus does not support SIP > 4. Add python311_frame.patch OBS-URL: https://build.opensuse.org/request/show/1096220 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:PyQt/python-sip4?expand=0&rev=7
This commit is contained in:
parent
16e9cd2db9
commit
cf657aa705
@ -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>
|
||||
|
||||
|
@ -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
15
python311_frame.patch
Normal 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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user