Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package waffle for openSUSE:Factory checked 
in at 2026-05-08 16:48:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/waffle (Old)
 and      /work/SRC/openSUSE:Factory/.waffle.new.1966 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "waffle"

Fri May  8 16:48:14 2026 rev:14 rq:1352005 version:1.8.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/waffle/waffle.changes    2024-08-25 
12:11:00.077537313 +0200
+++ /work/SRC/openSUSE:Factory/.waffle.new.1966/waffle.changes  2026-05-08 
16:48:34.737165243 +0200
@@ -1,0 +2,10 @@
+Fri May  8 11:05:36 UTC 2026 - Stefan Dirsch <[email protected]>
+
+- Fix build with C23 (glibc 2.41+)
+- Added c11-threads-c23.patch to avoid conflicts with once_flag,
+  call_once and ONCE_FLAG_INIT now provided by glibc in C23 mode.
+- Enable unit tests in %check section (core suite only).
+- Added BuildRequires on pkgconfig(cmocka) for tests.
+- Use %fdupes to remove duplicate files.
+
+-------------------------------------------------------------------

New:
----
  c11-threads-c23.patch

----------(New B)----------
  New:- Fix build with C23 (glibc 2.41+)
- Added c11-threads-c23.patch to avoid conflicts with once_flag,
  call_once and ONCE_FLAG_INIT now provided by glibc in C23 mode.
----------(New E)----------

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

Other differences:
------------------
++++++ waffle.spec ++++++
--- /var/tmp/diff_new_pack.XVGWwI/_old  2026-05-08 16:48:35.217185134 +0200
+++ /var/tmp/diff_new_pack.XVGWwI/_new  2026-05-08 16:48:35.221185301 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package waffle
 #
-# 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,10 +27,13 @@
 Group:          Development/Libraries/X11
 URL:            https://people.freedesktop.org/~chadversary/waffle/index.html
 Source0:        
https://gitlab.freedesktop.org/mesa/waffle/-/raw/website/files/release/%{name}-%{version}/%{name}-%{version}.tar.xz
+Patch0:         c11-threads-c23.patch
 BuildRequires:  cmake
+BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  meson
 BuildRequires:  pkgconfig
+BuildRequires:  pkgconfig(cmocka)
 BuildRequires:  pkgconfig(egl)
 BuildRequires:  pkgconfig(gbm)
 BuildRequires:  pkgconfig(gl)
@@ -78,13 +81,16 @@
 %autosetup -p1
 
 %build
-%meson
+%meson -Dbuild-tests=true
 %meson_build
 
+%check
+%meson_test --suite core
+
 %install
 %meson_install
-mv examples examples.orig
 mv $RPM_BUILD_ROOT/%{_datadir}/doc/waffle1 .
+%fdupes waffle1/
 
 %post -n %{libname} -p /sbin/ldconfig
 %postun -n %{libname} -p /sbin/ldconfig

++++++ c11-threads-c23.patch ++++++
--- waffle-1.8.1/third_party/threads/threads.h.orig     2026-05-08 
12:59:32.093919000 +0200
+++ waffle-1.8.1/third_party/threads/threads.h  2026-05-08 13:00:15.682044000 
+0200
@@ -90,7 +90,9 @@
 #include <pthread.h>
 
 /*---------------------------- macros ----------------------------*/
+#ifndef ONCE_FLAG_INIT
 #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
+#endif
 #ifdef INIT_ONCE_STATIC_INIT
 #define TSS_DTOR_ITERATIONS PTHREAD_DESTRUCTOR_ITERATIONS
 #else
@@ -102,7 +104,9 @@
 typedef pthread_t       thrd_t;
 typedef pthread_key_t   tss_t;
 typedef pthread_mutex_t mtx_t;
+#ifndef __once_flag_defined
 typedef pthread_once_t  once_flag;
+#endif
 
 #else
 #error Not supported on this platform.
@@ -138,7 +142,9 @@
 
 
 /*-------------------------- functions --------------------------*/
+#ifndef __once_flag_defined
 void call_once(once_flag *flag, void (*func)(void));
+#endif
 
 int cnd_broadcast(cnd_t *cond);
 void cnd_destroy(cnd_t *cond);
--- waffle-1.8.1/third_party/threads/threads_posix.c.orig       2026-05-08 
12:59:32.123957000 +0200
+++ waffle-1.8.1/third_party/threads/threads_posix.c    2026-05-08 
13:00:32.118981000 +0200
@@ -75,10 +75,12 @@
 
 /*--------------- 7.25.2 Initialization functions ---------------*/
 // 7.25.2.1
+#ifndef __once_flag_defined
 void call_once(once_flag *flag, void (*func)(void))
 {
     pthread_once(flag, func);
 }
+#endif
 
 
 /*------------- 7.25.3 Condition variable functions -------------*/

Reply via email to