diff --git a/sip-4.19.25-pyframe_getback.patch b/sip-4.19.25-pyframe_getback.patch new file mode 100644 index 0000000..30bab23 --- /dev/null +++ b/sip-4.19.25-pyframe_getback.patch @@ -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; + } + diff --git a/sip.spec b/sip.spec index 7675c74..b7bddb6 100644 --- a/sip.spec +++ b/sip.spec @@ -8,7 +8,7 @@ Summary: SIP - Python/C++ Bindings Generator Name: sip Version: 4.19.25 -Release: 1 +Release: 2 License: GPLv2 or GPLv3 Url: https://riverbankcomputing.com/software/sip/intro 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 Patch53: sip-4.19.18-no_hardcode_sip_so.patch Patch54: sip-4.19.25-py_ssize_t_clean.patch +Patch55: sip-4.19.25-pyframe_getback.patch BuildRequires: make BuildRequires: gcc-c++ @@ -100,6 +101,7 @@ This is the Python 3 build of wx-siplib. %patch51 -p1 -b .no_rpath %patch53 -p1 -b .no_sip_so %patch54 -p1 -b .py_ssize_t_clean +%patch55 -p1 -b .pyframe_getback %build @@ -218,6 +220,9 @@ popd %{python3_sitearch}/wx_siplib-%{version}.dist-info/ %changelog +* Wed Jul 12 2023 liyanan - 4.19.25-2 +- fix build error with python 3.11.4 + * Sat Jan 29 2022 chenchen - 4.19.25-1 - update to 4.19.25