Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package virt-viewer for openSUSE:Factory 
checked in at 2026-05-12 19:27:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/virt-viewer (Old)
 and      /work/SRC/openSUSE:Factory/.virt-viewer.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "virt-viewer"

Tue May 12 19:27:21 2026 rev:78 rq:1352545 version:11.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/virt-viewer/virt-viewer.changes  2025-05-26 
18:36:32.105943090 +0200
+++ /work/SRC/openSUSE:Factory/.virt-viewer.new.1966/virt-viewer.changes        
2026-05-12 19:28:02.802514829 +0200
@@ -1,0 +2,7 @@
+Mon May 11 11:15:13 MDT 2026 - [email protected]
+
+- Fix build failure in Factory because of glibc 2.43 new const
+  preserving macros.
+  fix-discards-const-qualifier-error.patch
+
+-------------------------------------------------------------------
@@ -651 +658 @@
-Mon Jan 27 11:24:06 MDT 2014 - [email protected]
+Mon Jan 27 11:24:06 MST 2014 - [email protected]

New:
----
  fix-discards-const-qualifier-error.patch

----------(New B)----------
  New:  preserving macros.
  fix-discards-const-qualifier-error.patch
----------(New E)----------

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

Other differences:
------------------
++++++ virt-viewer.spec ++++++
--- /var/tmp/diff_new_pack.8IjEFV/_old  2026-05-12 19:28:03.638549478 +0200
+++ /var/tmp/diff_new_pack.8IjEFV/_new  2026-05-12 19:28:03.638549478 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package virt-viewer
 #
-# 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
@@ -42,6 +42,7 @@
 Patch52:        virtview-dont-show-Domain-0.patch
 Patch53:        virtview-fix-build-with-meson-0.61.patch
 Patch100:       gcc-warnings-as-errors.patch
+Patch101:       fix-discards-const-qualifier-error.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 BuildRequires:  bash-completion-devel

++++++ fix-discards-const-qualifier-error.patch ++++++
Glibc 2.43 has introduced const-preserving macros that return a const char * if 
the input is const.
This introduces the following error calling strstr.

../src/virt-viewer-app.c: In function ‘virt_viewer_app_set_window_subtitle’:
../src/virt-viewer-app.c:964:20: error: initialization discards ‘const’ 
qualifier from pointer target type [-Werror=discarded-qualifiers]
  964 |         gchar *d = strstr(title, "%d");
      |                    ^~~~~~
cc1: all warnings being treated as errors


--- virt-viewer-11.0/src/virt-viewer-app.c.orig 2026-05-11 10:59:35.879279065 
-0600
+++ virt-viewer-11.0/src/virt-viewer-app.c      2026-05-11 11:06:19.747288689 
-0600
@@ -961,7 +961,7 @@ virt_viewer_app_set_window_subtitle(Virt
 
     if (title != NULL) {
         VirtViewerDisplay *display = virt_viewer_window_get_display(window);
-        gchar *d = strstr(title, "%d");
+        gchar *d = (gchar *)strstr(title, "%d");
         gchar *desc = NULL;
 
         if (display && VIRT_VIEWER_IS_DISPLAY_VTE(display)) {

Reply via email to