From 8b2420f74367e4973be0dd9556c021588abfe591 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 30 May 2026 09:58:45 +0200 Subject: Initial commit --- patches/newt/001-python-snack.patch | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 patches/newt/001-python-snack.patch (limited to 'patches') diff --git a/patches/newt/001-python-snack.patch b/patches/newt/001-python-snack.patch new file mode 100644 index 0000000..d1a23ba --- /dev/null +++ b/patches/newt/001-python-snack.patch @@ -0,0 +1,39 @@ +Update the deprecated functions for python + +--- newt-0.52.23/snack.c.orig 2026-05-27 12:52:32.785944840 +0200 ++++ newt-0.52.23/snack.c 2026-05-27 12:17:34.944987036 +0200 +@@ -456,7 +456,7 @@ static void helpCallbackMarshall(newtCom + PyGILState_STATE _state = PyGILState_Ensure(); + + args = Py_BuildValue("(O)", data); +- result = PyEval_CallObject(helpCallback.cb, args); ++ result = PyObject_CallObject(helpCallback.cb, args); + Py_DECREF (args); + Py_XDECREF(result); + +@@ -473,10 +473,10 @@ static void suspendCallbackMarshall(void + + if (scs->data) { + args = Py_BuildValue("(O)", scs->data); +- result = PyEval_CallObject(scs->cb, args); ++ result = PyObject_CallObject(scs->cb, args); + Py_DECREF (args); + } else +- result = PyEval_CallObject(scs->cb, NULL); ++ result = PyObject_CallObject(scs->cb, NULL); + + if (!result) { + PyErr_Print(); +@@ -498,10 +498,10 @@ static void callbackMarshall(newtCompone + + if (scs->data) { + args = Py_BuildValue("(O)", scs->data); +- result = PyEval_CallObject(scs->cb, args); ++ result = PyObject_CallObject(scs->cb, args); + Py_DECREF (args); + } else +- result = PyEval_CallObject(scs->cb, NULL); ++ result = PyObject_CallObject(scs->cb, NULL); + + if (!result) { + PyErr_Print(); -- cgit v1.2.3