Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pivy for openSUSE:Factory checked in at 2026-11-20 14:49:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pivy (Old) and /work/SRC/openSUSE:Factory/.python-pivy.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pivy" Fri Nov 20 14:49:35 2026 rev:16 rq:1398932 version:0.6.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pivy/python-pivy.changes 2025-01-19 21:50:00.299974411 +0100 +++ /work/SRC/openSUSE:Factory/.python-pivy.new.1251/python-pivy.changes 2026-11-20 14:52:49.752877474 +0100 @@ -1,0 +2,6 @@ +Mon Nov 16 15:40:00 UTC 2026 - Dominique Leuenberger <[email protected]> + +- Add python-pivy-swig-py3.patch: modernize PyInt_* to PyLong_* + in SWIG interface files for Python 3.14+ compatibility. + +------------------------------------------------------------------- New: ---- python-pivy-swig-py3.patch ----------(New B)---------- New: - Add python-pivy-swig-py3.patch: modernize PyInt_* to PyLong_* in SWIG interface files for Python 3.14+ compatibility. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pivy.spec ++++++ --- /var/tmp/diff_new_pack.P8mrc6/_old 2026-11-20 14:52:50.525910189 +0100 +++ /var/tmp/diff_new_pack.P8mrc6/_new 2026-11-20 14:52:50.526910231 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pivy # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,8 @@ Group: Development/Libraries/Python URL: https://github.com/coin3d/pivy Source0: https://github.com/coin3d/pivy/archive/%{version}.tar.gz#/pivy-%{version}.tar.gz +# PATCH-FIX-UPSTREAM python-pivy-swig-py3.patch -- modernize PyInt_* to PyLong_* for Python 3.14+ +Patch0: python-pivy-swig-py3.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: cmake ++++++ python-pivy-swig-py3.patch ++++++ diff -u -r a/interfaces/coin.i b/interfaces/coin.i --- a/interfaces/coin.i 2026-11-17 13:04:38.637390083 +0100 +++ b/interfaces/coin.i 2026-11-17 13:04:38.723556205 +0100 @@ -33,6 +33,27 @@ %} %{ +#if PY_MAJOR_VERSION >= 3 +# ifndef PyInt_AsLong +# define PyInt_AsLong PyLong_AsLong +# endif +# ifndef PyInt_FromLong +# define PyInt_FromLong PyLong_FromLong +# endif +# ifndef PyInt_Check +# define PyInt_Check PyLong_Check +# endif +# ifndef PyString_Check +# define PyString_Check PyBytes_Check +# endif +# ifndef PyString_FromString +# define PyString_FromString PyUnicode_FromString +# endif +# ifndef PyString_AsStringAndSize +# define PyString_AsStringAndSize PyBytes_AsStringAndSize +# endif +#endif + #if defined(_WIN32) || defined(__WIN32__) #include <windows.h> #undef max diff -u -r a/interfaces/soqt.i b/interfaces/soqt.i --- a/interfaces/soqt.i 2026-11-17 13:04:38.638041675 +0100 +++ b/interfaces/soqt.i 2026-11-17 13:04:38.723703673 +0100 @@ -34,6 +34,26 @@ Copied from: https://github.com/Kagami/pygraphviz/commit/fe442dc16accb629c3feaf157af75f67ccabbd6e */ #if PY_MAJOR_VERSION >= 3 +#if PY_MAJOR_VERSION >= 3 +# ifndef PyInt_AsLong +# define PyInt_AsLong PyLong_AsLong +# endif +# ifndef PyInt_FromLong +# define PyInt_FromLong PyLong_FromLong +# endif +# ifndef PyInt_Check +# define PyInt_Check PyLong_Check +# endif +# ifndef PyString_Check +# define PyString_Check PyBytes_Check +# endif +# ifndef PyString_FromString +# define PyString_FromString PyUnicode_FromString +# endif +# ifndef PyString_AsStringAndSize +# define PyString_AsStringAndSize PyBytes_AsStringAndSize +# endif +#endif static PyObject *PyIOBase_TypeObj = NULL; static int init_file_emulator(void) diff -u -r a/Inventor/SbImage.i b/Inventor/SbImage.i --- a/Inventor/SbImage.i 2026-11-17 13:04:38.585137188 +0100 +++ b/Inventor/SbImage.i 2026-11-17 13:04:38.723414108 +0100 @@ -8,7 +8,7 @@ if ($2 == NULL) { PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - $3 = PyInt_AsLong(nc); + $3 = PyLong_AsLong(nc); #ifdef PY_2 if (PyString_Check(buf)) #else @@ -37,8 +37,13 @@ if ($2 == NULL) { PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - $3 = PyInt_AsLong(nc); - if (PyString_Check(buf)) { + $3 = PyLong_AsLong(nc); +#ifdef PY_2 + if (PyString_Check(buf)) +#else + if (PyBytes_Check(buf)) +#endif + { Py_ssize_t len = (*$2)[0] * (*$2)[1] * (*$2)[2] * $3; #ifdef PY_2 PyString_AsStringAndSize(buf, (char **)&image, &len); @@ -61,7 +66,7 @@ if ($1 == NULL) { PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - $2 = PyInt_AsLong(nc); + $2 = PyLong_AsLong(nc); #ifdef PY_2 if (PyString_Check(buf)) #else @@ -90,7 +95,7 @@ if ($1 == NULL) { PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; } - $2 = PyInt_AsLong(nc); + $2 = PyLong_AsLong(nc); #ifdef PY_2 if (PyString_Check(buf)) #else diff -u -r a/Inventor/SbVec2s.i b/Inventor/SbVec2s.i --- a/Inventor/SbVec2s.i 2026-11-17 13:04:38.586041305 +0100 +++ b/Inventor/SbVec2s.i 2026-11-17 13:04:38.723169597 +0100 @@ -5,8 +5,8 @@ if (PySequence_Check(input) && (PySequence_Size(input) == 2) && PyNumber_Check(PySequence_GetItem(input, 0)) && PyNumber_Check(PySequence_GetItem(input, 1))) { - temp[0] = PyInt_AsLong(PySequence_GetItem(input, 0)); - temp[1] = PyInt_AsLong(PySequence_GetItem(input, 1)); + temp[0] = PyLong_AsLong(PySequence_GetItem(input, 0)); + temp[1] = PyLong_AsLong(PySequence_GetItem(input, 1)); } else { PyErr_SetString(PyExc_TypeError, "expected a sequence with 2 shorts"); PyErr_Print(); diff -u -r a/Inventor/SbVec3s.i b/Inventor/SbVec3s.i --- a/Inventor/SbVec3s.i 2026-11-17 13:04:38.587041312 +0100 +++ b/Inventor/SbVec3s.i 2026-11-17 13:04:38.723290345 +0100 @@ -6,9 +6,9 @@ PyNumber_Check(PySequence_GetItem(input, 0)) && PyNumber_Check(PySequence_GetItem(input, 1)) && PyNumber_Check(PySequence_GetItem(input, 2))) { - temp[0] = PyInt_AsLong(PySequence_GetItem(input, 0)); - temp[1] = PyInt_AsLong(PySequence_GetItem(input, 1)); - temp[2] = PyInt_AsLong(PySequence_GetItem(input, 2)); + temp[0] = PyLong_AsLong(PySequence_GetItem(input, 0)); + temp[1] = PyLong_AsLong(PySequence_GetItem(input, 1)); + temp[2] = PyLong_AsLong(PySequence_GetItem(input, 2)); } else { PyErr_SetString(PyExc_TypeError, "expected a sequence with 3 shorts"); PyErr_Print();
