Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package tint2 for openSUSE:Factory checked 
in at 2024-04-02 16:40:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tint2 (Old)
 and      /work/SRC/openSUSE:Factory/.tint2.new.1905 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tint2"

Tue Apr  2 16:40:55 2024 rev:3 rq:1163615 version:17.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/tint2/tint2.changes      2024-02-23 
16:48:07.461417637 +0100
+++ /work/SRC/openSUSE:Factory/.tint2.new.1905/tint2.changes    2024-04-02 
16:42:28.513288688 +0200
@@ -1,0 +2,7 @@
+Fri Mar 29 17:09:32 UTC 2024 - Christian Ludwig <[email protected]>
+
+- Added glib.patch:
+  Fix segfault of tint2 with new version of glib2.
+  See https://gitlab.com/nick87720z/tint2/-/issues/4
+  
+-------------------------------------------------------------------

New:
----
  glib.patch

BETA DEBUG BEGIN:
  New:
- Added glib.patch:
  Fix segfault of tint2 with new version of glib2.
BETA DEBUG END:

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

Other differences:
------------------
++++++ tint2.spec ++++++
--- /var/tmp/diff_new_pack.BbRsgX/_old  2024-04-02 16:42:28.937303823 +0200
+++ /var/tmp/diff_new_pack.BbRsgX/_new  2024-04-02 16:42:28.937303823 +0200
@@ -25,6 +25,7 @@
 URL:            https://gitlab.com/nick87720z/tint2
 Source0:        
https://gitlab.com/nick87720z/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
 Source1:        tint2conf.1
+Patch0:         glib.patch
 BuildRequires:  cmake
 BuildRequires:  desktop-file-utils
 BuildRequires:  gcc-c++
@@ -52,7 +53,7 @@
 %lang_package
 
 %prep
-%autosetup -n %{name}-v%{version}
+%autosetup -p1 -n %{name}-v%{version}
 
 %build
 %cmake -DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{name}

++++++ glib.patch ++++++
--- a/src/main.c        2022-03-24 10:49:12.000000000 +0100
+++ b/src/main.c        2024-03-25 23:45:33.026055654 +0100
@@ -534,11 +534,14 @@
         }
         if (e->xany.window == g_tooltip.window || !systray_enabled)
             break;
-        for (GSList *it = systray.list_icons; it; it = it->next)
+        GSList *copy_list = g_slist_copy(systray.list_icons);
+        for (GSList *it = copy_list; it; it = it->next)
         {
-            if (((TrayWindow *)it->data)->win == e->xany.window)
+            void *data = it->data;
+            if (data != NULL && ((TrayWindow *)data)->win == e->xany.window)
                 systray_destroy_event(it->data);
         }
+        g_slist_free(copy_list);
         break;
 
     case ClientMessage: {
--- a/src/util/uevent.c 2024-03-25 23:37:18.415070100 +0100
+++ b/src/util/uevent.c 2024-03-25 23:47:40.832150481 +0100
@@ -146,7 +146,8 @@
     struct uevent ev;
 
     if (uevent_new(&ev, buf, len)) {
-        for (GSList *l = notifiers; l; l = l->next)
+        GSList *copy_list = g_slist_copy(notifiers);
+        for (GSList *l = copy_list; l; l = l->next)
         {
             struct uevent_notify *nb = l->data;
 
@@ -157,6 +158,7 @@
 
             nb->cb(&ev, nb->userdata);
         }
+        g_slist_free(copy_list);
         uevent_destroy (&ev);
     }
 }

Reply via email to