public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/the_foundation] epel10: Remove obsolete patch
@ 2026-10-07 10:14 Yaakov Selkowitz
  0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-10-07 10:14 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/the_foundation
Branch : epel10
Commit : aa01afcac40eeb688547c7ddd8d83c438b1635aa
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date   : 2026-09-15T15:43:22-04:00
Stats  : +0/-62 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/the_foundation/c/aa01afcac40eeb688547c7ddd8d83c438b1635aa?branch=epel10

Log:
Remove obsolete patch

---
diff --git a/the_foundation-glibc-2.43-once_init-compat.diff b/the_foundation-glibc-2.43-once_init-compat.diff
deleted file mode 100644
index 408993e..0000000
--- a/the_foundation-glibc-2.43-once_init-compat.diff
+++ /dev/null
@@ -1,60 +0,0 @@
-From bfee4848f3dfa183a3fce849dfe77a7f12ab1d24 Mon Sep 17 00:00:00 2001
-From: Michel Lind <salimma@fedoraproject.org>
-Date: Fri, 7 Nov 2025 12:13:54 +0000
-Subject: [PATCH] Only define `once_flag`/`call_once` if `glibc` has not
- defined them
-
-`glibc` will define `once_flag` in the forthcoming 2.43 release, see:
-
-https://sourceware.org/git/?p=glibc.git;a=commit;h=a7ddbf456d97ac8d1aa7afd735e196a1488bd874
-
-Do not redefine it and related definitions if they already exist.
-
-Fixes: #33
-
-Signed-off-by: Michel Lind <salimma@fedoraproject.org>
----
- include/the_Foundation/c11threads.h | 2 ++
- src/c11threads.c                    | 4 ++++
- 2 files changed, 6 insertions(+)
-
-diff --git a/include/the_Foundation/c11threads.h b/include/the_Foundation/c11threads.h
-index 8c762f6..70cbec3 100644
---- a/include/the_Foundation/c11threads.h
-+++ b/include/the_Foundation/c11threads.h
-@@ -31,7 +31,9 @@ typedef pthread_t thrd_t;
- typedef pthread_mutex_t mtx_t;
- typedef pthread_cond_t cnd_t;
- typedef pthread_key_t tss_t;
-+#ifndef ONCE_FLAG_INIT
- typedef pthread_once_t once_flag;
-+#endif
- 
- typedef int (*thrd_start_t)(void*);
- typedef void (*tss_dtor_t)(void*);
-diff --git a/src/c11threads.c b/src/c11threads.c
-index 14abb05..0ab9759 100644
---- a/src/c11threads.c
-+++ b/src/c11threads.c
-@@ -33,7 +33,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</small>
- #include <sys/time.h>
- #include <time.h>
- 
-+#ifndef ONCE_FLAG_INIT
- #define ONCE_FLAG_INIT PTHREAD_ONCE_INIT
-+#endif
- 
- #ifdef C11THREADS_NO_TIMED_MUTEX
- #  define PTHREAD_MUTEX_TIMED_NP PTHREAD_MUTEX_NORMAL
-@@ -182,6 +184,8 @@ int tss_set(tss_t key, void *val) {
- 
- void *tss_get(tss_t key) { return pthread_getspecific(key); }
- 
-+#ifndef ONCE_FLAG_INIT
- void call_once(once_flag *flag, void (*func)(void)) {
-     pthread_once(flag, func);
- }
-+#endif
--- 
-2.47.3
-

diff --git a/the_foundation.spec b/the_foundation.spec
index 566e831..34990ea 100644
--- a/the_foundation.spec
+++ b/the_foundation.spec
@@ -15,8 +15,6 @@ Summary:        Opinionated C11 library for low-level functionality
 License:        BSD-2-Clause
 URL:            https://codeberg.org/skyjake/the_Foundation
 Source:         %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-# Compatibility with glibc 2.43 defining `once_init`
-Patch:          %{url}/pulls/34.patch#/%{name}-glibc-2.43-once_init-compat.diff
 
 BuildRequires:  cmake
 BuildRequires:  gcc

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-07 10:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 10:14 [rpms/the_foundation] epel10: Remove obsolete patch Yaakov Selkowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox