Script 'mail_helper' called by obssrc
Hello community,

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

Package is "lash"

Tue Nov 17 17:18:19 2026 rev:6 rq:1397948 version:0.5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/lash/lash.changes        2025-05-07 
19:22:02.257138197 +0200
+++ /work/SRC/openSUSE:Factory/.lash.new.1251/lash.changes      2026-11-17 
17:20:11.821102317 +0100
@@ -1,0 +2,6 @@
+Mon Nov 16 15:09:00 UTC 2026 - Dominique Leuenberger <[email protected]>
+
+- Add lash-swig-py3.patch: replace obsolete PyString_* with
+  PyUnicode_* in pylash/lash.i for Python 3.
+
+-------------------------------------------------------------------

New:
----
  lash-swig-py3.patch

----------(New B)----------
  New:
- Add lash-swig-py3.patch: replace obsolete PyString_* with
  PyUnicode_* in pylash/lash.i for Python 3.
----------(New E)----------

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

Other differences:
------------------
++++++ lash.spec ++++++
--- /var/tmp/diff_new_pack.f7NO5I/_old  2026-11-17 17:20:12.698139337 +0100
+++ /var/tmp/diff_new_pack.f7NO5I/_new  2026-11-17 17:20:12.700139422 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package lash
 #
-# 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
@@ -37,6 +37,8 @@
 Patch8:         lash-gcc14-fix.patch
 # fix build with gcc15
 Patch9:         lash-gcc15.patch
+# PATCH-FIX-UPSTREAM lash-swig-py3.patch -- replace obsolete PyString_* with 
PyUnicode_* in SWIG interface
+Patch10:        lash-swig-py3.patch
 BuildRequires:  alsa-devel
 BuildRequires:  glibc-devel
 BuildRequires:  gtk2-devel
@@ -93,6 +95,7 @@
 %patch -P 7 -p1
 %patch -P 8 -p1
 %patch -P 9 -p1
+%patch -P 10 -p1
 
 %build
 ./autogen.sh

++++++ lash-swig-py3.patch ++++++
--- a/pylash/lash.i     2026-11-16 16:09:01.458458572 +0100
+++ b/pylash/lash.i     2026-11-16 16:09:01.476075940 +0100
@@ -63,13 +63,13 @@
   for (i = 0; i < *$1; i++)
   {
     PyObject *s = PyList_GetItem($input,i);
-    if (!PyString_Check(s))
+    if (!PyUnicode_Check(s))
     {
         PyErr_SetString(PyExc_ValueError, "List items must be strings");
         goto fail;
     }
 
-    (*$2)[i] = PyString_AsString(s);
+    (*$2)[i] = (char *) PyUnicode_AsUTF8(s);
   }
 
   (*$2)[i] = 0;
@@ -81,7 +81,7 @@
 
   for (i = 0; i < *$1; i++)
   {
-    PyObject *s = PyString_FromString((*$2)[i]);
+    PyObject *s = PyUnicode_FromString((*$2)[i]);
     PyList_SetItem($input,i,s);
   }
 

Reply via email to