Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package babeltrace2 for openSUSE:Factory 
checked in at 2026-11-23 14:54:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/babeltrace2 (Old)
 and      /work/SRC/openSUSE:Factory/.babeltrace2.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "babeltrace2"

Mon Nov 23 14:54:15 2026 rev:8 rq:1399892 version:2.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/babeltrace2/babeltrace2.changes  2025-04-02 
17:12:51.828091784 +0200
+++ /work/SRC/openSUSE:Factory/.babeltrace2.new.1340718/babeltrace2.changes     
2026-11-23 14:54:30.878232837 +0100
@@ -1,0 +2,7 @@
+Mon Nov 16 15:04:00 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add babeltrace2-swig-py3.patch: replace obsolete Python 2 calls
+  (PyString_FromString, SWIG_Python_str_FromChar) with Python 3
+  C API equivalents (PyUnicode_FromString).
+
+-------------------------------------------------------------------

New:
----
  babeltrace2-swig-py3.patch

----------(New B)----------
  New:
- Add babeltrace2-swig-py3.patch: replace obsolete Python 2 calls
  (PyString_FromString, SWIG_Python_str_FromChar) with Python 3
----------(New E)----------

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

Other differences:
------------------
++++++ babeltrace2.spec ++++++
--- /var/tmp/diff_new_pack.vqVQYn/_old  2026-11-23 14:54:31.769270730 +0100
+++ /var/tmp/diff_new_pack.vqVQYn/_new  2026-11-23 14:54:31.770270772 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package babeltrace2
 #
-# 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
@@ -27,6 +27,8 @@
 Source:         
https://efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2
 Source1:        
https://efficios.com/files/babeltrace/%{name}-%{version}.tar.bz2.asc
 Source2:        %{name}.keyring
+# PATCH-FIX-UPSTREAM babeltrace2-swig-py3.patch -- replace removed SWIG/Python 
2 macros with standard Python 3 C API
+Patch0:         babeltrace2-swig-py3.patch
 BuildRequires:  bison
 BuildRequires:  flex
 BuildRequires:  gcc-c++
@@ -71,7 +73,7 @@
 Common Trace Format (CTF).
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 export PYTHON="python3"


++++++ babeltrace2-swig-py3.patch ++++++
--- a/src/bindings/python/bt2/bt2/native_bt.i   2026-11-16 16:02:59.864416378 
+0100
+++ b/src/bindings/python/bt2/bt2/native_bt.i   2026-11-16 16:02:59.879003425 
+0100
@@ -73,7 +73,7 @@
 %typemap(argout) (const char **) {
        if (*$1) {
                /* SWIG_AppendOutput() steals the created object */
-               $result = SWIG_AppendOutput($result, 
SWIG_Python_str_FromChar(*$1));
+               $result = SWIG_AppendOutput($result, PyUnicode_FromString(*$1));
        } else {
                /* SWIG_AppendOutput() steals Py_None */
                Py_INCREF(Py_None);
--- a/src/bindings/python/bt2/bt2/native_bt_error.i.hpp 2026-11-16 
16:02:59.866289738 +0100
+++ b/src/bindings/python/bt2/bt2/native_bt_error.i.hpp 2026-11-16 
16:02:59.879137758 +0100
@@ -19,7 +19,7 @@
                               BT_COMMON_COLOR_WHEN_NEVER);
     BT_ASSERT(error_cause_str);
 
-    py_error_cause_str = PyString_FromString(error_cause_str);
+    py_error_cause_str = PyUnicode_FromString(error_cause_str);
 
     g_free(error_cause_str);
 
@@ -35,7 +35,7 @@
                                 BT_COMMON_COLOR_WHEN_NEVER);
     BT_ASSERT(error_str);
 
-    py_error_str = PyString_FromString(error_str);
+    py_error_str = PyUnicode_FromString(error_str);
 
     g_free(error_str);
 

Reply via email to