diff --git a/devel/ice/files/patch-python_modules_IcePy_Slice.cpp b/devel/ice/files/patch-python_modules_IcePy_Slice.cpp new file mode 100644 index 000000000000..d82f370c2ef0 --- /dev/null +++ b/devel/ice/files/patch-python_modules_IcePy_Slice.cpp @@ -0,0 +1,15 @@ +--- python/modules/IcePy/Slice.cpp.orig 2024-06-05 08:43:42 UTC ++++ python/modules/IcePy/Slice.cpp +@@ -20,8 +20,12 @@ + // + // Python headers needed for PyEval_EvalCode. + // ++#if PY_VERSION_HEX >= 0x02050000 && PY_VERSION_HEX < 0x030B0000 + #include + #include ++#else ++#include ++#endif + + using namespace std; + using namespace IcePy; diff --git a/devel/ice/files/patch-python_modules_IcePy_Util.cpp b/devel/ice/files/patch-python_modules_IcePy_Util.cpp new file mode 100644 index 000000000000..9a97a1d06742 --- /dev/null +++ b/devel/ice/files/patch-python_modules_IcePy_Util.cpp @@ -0,0 +1,14 @@ +--- python/modules/IcePy/Util.cpp.orig 2024-06-05 08:44:17 UTC ++++ python/modules/IcePy/Util.cpp +@@ -214,7 +214,11 @@ IcePy::getFunction() + // + // Get name of current function. + // ++#if PY_VERSION_HEX >= 0x02050000 && PY_VERSION_HEX < 0x030B0000 + PyFrameObject *f = PyThreadState_GET()->frame; ++#else ++ PyFrameObject *f = PyThreadState_GetFrame(PyThreadState_GET()); ++#endif + PyObjectHandle code = PyObject_GetAttrString(reinterpret_cast(f), STRCAST("f_code")); + assert(code.get()); + PyObjectHandle func = PyObject_GetAttrString(code.get(), STRCAST("co_name"));