Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gnucash for openSUSE:Factory checked 
in at 2026-11-17 17:18:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gnucash (Old)
 and      /work/SRC/openSUSE:Factory/.gnucash.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gnucash"

Tue Nov 17 17:18:29 2026 rev:120 rq:1397986 version:5.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/gnucash/gnucash.changes  2026-07-21 
23:09:47.813059419 +0200
+++ /work/SRC/openSUSE:Factory/.gnucash.new.1251/gnucash.changes        
2026-11-17 17:20:20.470467407 +0100
@@ -1,0 +2,6 @@
+Mon Nov 16 14:47:00 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add gnucash-swig-py3.patch: replace obsolete Python 2 PyInt_*
+  calls with PyLong_* in bindings/python/ to fix Python 3 build.
+
+-------------------------------------------------------------------

New:
----
  gnucash-swig-py3.patch

----------(New B)----------
  New:
- Add gnucash-swig-py3.patch: replace obsolete Python 2 PyInt_*
  calls with PyLong_* in bindings/python/ to fix Python 3 build.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gnucash.spec ++++++
--- /var/tmp/diff_new_pack.gDzTrL/_old  2026-11-17 17:20:21.358504891 +0100
+++ /var/tmp/diff_new_pack.gDzTrL/_new  2026-11-17 17:20:21.360504976 +0100
@@ -45,6 +45,8 @@
 Patch0:         gnucash-boost-1.89.patch
 # PATCH-FIX-UPSTREAM gh#Gnucash/gnucash/pull/2271 - Missing s for builds on 
s390x
 Patch1:         fix-BigEndian-s390x.patch
+# PATCH-FIX-UPSTREAM gnucash-swig-py3.patch -- replace obsolete PyInt_* with 
PyLong_* in Python SWIG interface
+Patch2:         gnucash-swig-py3.patch
 
 BuildRequires:  cmake >= 3.14
 BuildRequires:  doxygen

++++++ gnucash-swig-py3.patch ++++++
--- a/bindings/python/gnucash_core.i    2026-11-16 15:46:22.962478729 +0100
+++ b/bindings/python/gnucash_core.i    2026-11-16 15:46:22.980400101 +0100
@@ -198,7 +198,7 @@
 %typemap(out) GncOwner * {
     GncOwnerType owner_type = gncOwnerGetType($1);
     PyObject * owner_tuple = PyTuple_New(2);
-    PyTuple_SetItem(owner_tuple, 0, PyInt_FromLong( (long) owner_type ) );
+    PyTuple_SetItem(owner_tuple, 0, PyLong_FromLong( (long) owner_type ) );
     PyObject * swig_wrapper_object;
     if (owner_type == GNC_OWNER_CUSTOMER ){
         swig_wrapper_object = SWIG_NewPointerObj(
--- a/bindings/python/time64.i  2026-11-16 15:46:22.965148932 +0100
+++ b/bindings/python/time64.i  2026-11-16 15:46:22.980584218 +0100
@@ -35,7 +35,7 @@
 %typemap(in) time64 {
     PyDateTime_IMPORT;
 
-    if (!PyDate_Check($input) && !PyInt_Check($input)) {
+    if (!PyDate_Check($input) && !PyLong_Check($input)) {
         PyErr_SetString(PyExc_ValueError,"date, datetime or integer expected");
         return NULL;
     }
@@ -49,7 +49,7 @@
                           PyDateTime_GET_YEAR($input) - 1900};
         $1 = gnc_mktime(&time);
     } else {
-        $1 = PyInt_AsLong($input);
+        $1 = PyLong_AsLong($input);
     }
 }
 
@@ -79,7 +79,7 @@
 %typemap(in) time64 * (time64 secs) {
     PyDateTime_IMPORT;
 
-    if (!PyDate_Check($input) && !PyInt_Check($input)) {
+    if (!PyDate_Check($input) && !PyLong_Check($input)) {
         PyErr_SetString(PyExc_ValueError,"date, datetime or integer expected");
         return NULL;
     }
@@ -94,7 +94,7 @@
         time64 secs = gnc_mktime(&time);
         $1 = &secs;
     } else {
-        time64 secs = PyInt_AsLong($input);
+        time64 secs = PyLong_AsLong($input);
         $1 = &secs;
     }
 }

Reply via email to