!13 fix build error with python 3.11.4

From: @cherry530 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-07-20 01:10:40 +00:00 committed by Gitee
commit 182a76daa1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,13 @@
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;
}

View File

@ -8,7 +8,7 @@
Summary: SIP - Python/C++ Bindings Generator Summary: SIP - Python/C++ Bindings Generator
Name: sip Name: sip
Version: 4.19.25 Version: 4.19.25
Release: 1 Release: 2
License: GPLv2 or GPLv3 License: GPLv2 or GPLv3
Url: https://riverbankcomputing.com/software/sip/intro Url: https://riverbankcomputing.com/software/sip/intro
Source0: https://riverbankcomputing.com/static/Downloads/sip/%{version}/sip-%{version}.tar.gz Source0: https://riverbankcomputing.com/static/Downloads/sip/%{version}/sip-%{version}.tar.gz
@ -19,6 +19,7 @@ Patch50: sip-4.18-no_strip.patch
Patch51: sip-4.18-no_rpath.patch Patch51: sip-4.18-no_rpath.patch
Patch53: sip-4.19.18-no_hardcode_sip_so.patch Patch53: sip-4.19.18-no_hardcode_sip_so.patch
Patch54: sip-4.19.25-py_ssize_t_clean.patch Patch54: sip-4.19.25-py_ssize_t_clean.patch
Patch55: sip-4.19.25-pyframe_getback.patch
BuildRequires: make BuildRequires: make
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -100,6 +101,7 @@ This is the Python 3 build of wx-siplib.
%patch51 -p1 -b .no_rpath %patch51 -p1 -b .no_rpath
%patch53 -p1 -b .no_sip_so %patch53 -p1 -b .no_sip_so
%patch54 -p1 -b .py_ssize_t_clean %patch54 -p1 -b .py_ssize_t_clean
%patch55 -p1 -b .pyframe_getback
%build %build
@ -218,6 +220,9 @@ popd
%{python3_sitearch}/wx_siplib-%{version}.dist-info/ %{python3_sitearch}/wx_siplib-%{version}.dist-info/
%changelog %changelog
* Wed Jul 12 2023 liyanan <thistleslyn@163.com> - 4.19.25-2
- fix build error with python 3.11.4
* Sat Jan 29 2022 chenchen <chen_aka_jan@163.com> - 4.19.25-1 * Sat Jan 29 2022 chenchen <chen_aka_jan@163.com> - 4.19.25-1
- update to 4.19.25 - update to 4.19.25