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-25 17:13:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yambar (Old)
 and      /work/SRC/openSUSE:Factory/.yambar.new.2088 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yambar"

Thu Jun 25 17:13:45 2026 rev:10 rq:1361700 version:1.11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/yambar/yambar.changes    2026-06-19 
17:23:32.242538072 +0200
+++ /work/SRC/openSUSE:Factory/.yambar.new.2088/yambar.changes  2026-06-25 
17:13:58.746725007 +0200
@@ -1,0 +2,10 @@
+Thu Jun 25 07:46:02 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Add yambar-gcc16-unused-but-set.patch: fix build with GCC 16,
+  which no longer counts a bare increment as a use and so rejects
+  the debug-only "count"/"focused" counters under
+  -Werror=unused-but-set-variable (boo#1256994); backported from
+  upstream
+- Modernize the spec with spec-cleaner
+
+-------------------------------------------------------------------

New:
----
  yambar-gcc16-unused-but-set.patch

----------(New B)----------
  New:
- Add yambar-gcc16-unused-but-set.patch: fix build with GCC 16,
  which no longer counts a bare increment as a use and so rejects
----------(New E)----------

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

Other differences:
------------------
++++++ yambar.spec ++++++
--- /var/tmp/diff_new_pack.rNuahD/_old  2026-06-25 17:13:59.490750673 +0200
+++ /var/tmp/diff_new_pack.rNuahD/_new  2026-06-25 17:13:59.490750673 +0200
@@ -21,7 +21,6 @@
 Release:        0
 Summary:        Modular statusbar for X11 and Wayland
 License:        MIT
-Group:          System/GUI/Other
 URL:            https://codeberg.org/dnkl/yambar
 Source:         %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
 Source1:        
%{url}/releases/download/%{version}/%{name}-%{version}.tar.gz.sig
@@ -29,11 +28,13 @@
 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
+# PATCH-FIX-UPSTREAM yambar-gcc16-unused-but-set.patch boo#1256994 
dnkl/yambar#5a515eae99 - GCC 16 -Werror=unused-but-set-variable on debug-only 
counters
+Patch1:         yambar-gcc16-unused-but-set.patch
 BuildRequires:  bison
 BuildRequires:  flex
 BuildRequires:  meson >= 0.59
 BuildRequires:  ninja
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  scdoc
 BuildRequires:  pkgconfig(alsa)
 BuildRequires:  pkgconfig(fcft) < 4.0.0
@@ -68,7 +69,6 @@
 
 %package devel
 Summary:        Development files for %{name}
-Group:          Development/Libraries
 Requires:       %{name}
 BuildArch:      noarch
 
@@ -77,20 +77,19 @@
 
 %package zsh-completion
 Summary:        Zsh Completion for %{name}
-Group:          System/Shells
-Supplements:    (%name and zsh)
 Requires:       zsh
+Supplements:    (%{name} and zsh)
 BuildArch:      noarch
 
 %description zsh-completion
 Zsh command-line completion support for %{name}.
 
 %build
-%{meson} -Db_lto=true -Dbackend-x11=enabled -Dbackend-wayland=enabled
-%{meson_build}
+%meson -Db_lto=true -Dbackend-x11=enabled -Dbackend-wayland=enabled
+%meson_build
 
 %install
-%{meson_install}
+%meson_install
 
 # We remove this because the docs are supplemented already
 # from the doc and license macros


++++++ yambar-gcc16-unused-but-set.patch ++++++
From: Martin Pluskal <[email protected]>
Date: Thu, 25 Jun 2026 00:00:00 +0000
Subject: [PATCH] gcc16: mark debug-only counters as unused

GCC 16 no longer treats a bare `var++` as a use, so `count` (only read
by a LOG_DBG that is compiled out under NDEBUG) and `focused` (only read
by an assert() compiled out under NDEBUG) trip
-Werror=unused-but-set-variable. Add __attribute__((unused)), matching
the upstream fix (dnkl/yambar commit 5a515eae99).

--- a/bar/wayland.c     2026-06-25 09:41:53.565875738 +0200
+++ b/bar/wayland.c     2026-06-25 09:41:53.597879318 +0200
@@ -1223,7 +1223,7 @@
             bool do_expose = false;
 
             /* Coalesce “refresh” commands */
-            size_t count = 0;
+            __attribute__((unused)) size_t count = 0;
             while (true) {
                 uint8_t command;
                 ssize_t r = read(backend->pipe_fds[0], &command, 
sizeof(command));
--- a/modules/i3.c      2026-06-25 09:41:53.573876633 +0200
+++ b/modules/i3.c      2026-06-25 09:41:53.601879766 +0200
@@ -589,7 +589,7 @@
     mtx_lock(&mod->lock);
 
     struct workspace *ws = NULL;
-    size_t focused = 0;
+    __attribute__((unused)) size_t focused = 0;
     tll_foreach(m->workspaces, it)
     {
         if (it->item.focused) {

Reply via email to