Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package yambar for openSUSE:Factory checked 
in at 2026-06-19 16:31:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yambar (Old)
 and      /work/SRC/openSUSE:Factory/.yambar.new.1956 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yambar"

Fri Jun 19 16:31:53 2026 rev:9 rq:1360305 version:1.11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/yambar/yambar.changes    2024-04-23 
18:57:03.388590932 +0200
+++ /work/SRC/openSUSE:Factory/.yambar.new.1956/yambar.changes  2026-06-19 
17:23:32.242538072 +0200
@@ -1,0 +2,9 @@
+Thu Jun 18 17:13:49 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Add yambar-gcc15-const.patch: fix the GCC 15 build failure
+  (-Werror=discarded-qualifiers) in tag.c and modules/script.c, where
+  strchr()/memchr() on a const string now preserve const; cast where
+  the buffer is written in place, use const where it is only read
+  (submitted upstream). Package was flagged for removal by botdel.
+- Apply patches with %%autosetup -p1 so the modules/ subdir patch lands
+-------------------------------------------------------------------

New:
----
  yambar-gcc15-const.patch

----------(New B)----------
  New:
- Add yambar-gcc15-const.patch: fix the GCC 15 build failure
  (-Werror=discarded-qualifiers) in tag.c and modules/script.c, where
----------(New E)----------

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

Other differences:
------------------
++++++ yambar.spec ++++++
--- /var/tmp/diff_new_pack.pvUuBY/_old  2026-06-19 17:23:33.494581139 +0200
+++ /var/tmp/diff_new_pack.pvUuBY/_new  2026-06-19 17:23:33.494581139 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package yambar
 #
-# Copyright (c) 2024 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 @@
 Source1:        
%{url}/releases/download/%{version}/%{name}-%{version}.tar.gz.sig
 # 
https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xb19964fbba09664cc81027ed5bbd4992c116573f
 Source2:        %{name}.keyring
+# PATCH-FIX-UPSTREAM yambar-gcc15-const.patch dnkl/yambar#497 - GCC 15 rejects 
discarding const from strchr()/memchr() on a const string
+Patch0:         yambar-gcc15-const.patch
 BuildRequires:  bison
 BuildRequires:  flex
 BuildRequires:  meson >= 0.59
@@ -62,7 +64,7 @@
 Simplistic and highly configurable status panel for X and Wayland.
 
 %prep
-%autosetup
+%autosetup -p1
 
 %package devel
 Summary:        Development files for %{name}


++++++ yambar-gcc15-const.patch ++++++
--- a/tag.c
+++ b/tag.c
@@ -561,7 +561,7 @@
                 kind = VALUE_UNIT;
             else if (is_number(tag_args[i], &digits)) // i.e.: "{tag:3}"
                 zero_pad = tag_args[i][0] == '0';
-            else if ((point = strchr(tag_args[i], '.')) != NULL) {
+            else if ((point = (char *)strchr(tag_args[i], '.')) != NULL) {
                 *point = '\0';
 
                 const char *digits_str = tag_args[i];
--- a/modules/script.c
+++ b/modules/script.c
@@ -265,7 +265,7 @@
     size_t idx = 0;
 
     while (left > 0) {
-        char *line_end = memchr(line, '\n', left);
+        const char *line_end = memchr(line, '\n', left);
         assert(line_end != NULL);
 
         size_t line_len = line_end - line;

Reply via email to