public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pdsh] epel9: conditionalize bool enum for c17 or older
@ 2026-07-31 15:59 Tom spot Callaway
0 siblings, 0 replies; only message in thread
From: Tom spot Callaway @ 2026-07-31 15:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/pdsh
Branch : epel9
Commit : 9965a5f0af88bf5889f6ddf13fb541f683ce0acd
Author : Tom spot Callaway <spotaws@amazon.com>
Date : 2025-02-20T11:13:59-05:00
Stats : +20/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/pdsh/c/9965a5f0af88bf5889f6ddf13fb541f683ce0acd?branch=epel9
Log:
conditionalize bool enum for c17 or older
---
diff --git a/pdsh-2.34-fix-c23.patch b/pdsh-2.34-fix-c23.patch
new file mode 100644
index 0000000..edc9ab1
--- /dev/null
+++ b/pdsh-2.34-fix-c23.patch
@@ -0,0 +1,17 @@
+diff -up pdsh-2.34/src/common/macros.h.fixc23 pdsh-2.34/src/common/macros.h
+--- pdsh-2.34/src/common/macros.h.fixc23 2025-02-20 11:09:58.124921282 -0500
++++ pdsh-2.34/src/common/macros.h 2025-02-20 11:11:08.287805848 -0500
+@@ -58,8 +58,12 @@
+
+ #ifndef _BOOL_DEFINED
+ # define _BOOL_DEFINED
+-# if !defined (true) && !defined (false)
++# if defined __STDC_VERSION__ && __STDC_VERSION__ > 201710L
++/* bool, true and false are keywords. */
++# else
++# if !defined (true) && !defined (false)
+ typedef enum { false, true } bool;
++# endif
+ # endif
+ #endif
+
diff --git a/pdsh.spec b/pdsh.spec
index 6d8f909..bcce7ad 100644
--- a/pdsh.spec
+++ b/pdsh.spec
@@ -6,6 +6,7 @@ Summary: Parallel remote shell program
License: GPL-2.0-or-later
Url: https://github.com/chaos/pdsh/
Source0: https://github.com/chaos/pdsh/releases/download/pdsh-2.33/pdsh-%{version}.tar.gz
+Patch0: pdsh-2.34-fix-c23.patch
Requires: pdsh-rcmd
BuildRequires: make
BuildRequires: autoconf, automake, libtool
@@ -223,6 +224,7 @@ Pdsh module providing support for running pdsh on Torque nodes.
%prep
%setup -q
+%patch -P0 -p1 -b .fixc23
chmod +x configure
%build
@@ -393,6 +395,7 @@ fi
%changelog
* Thu Feb 20 2025 Tom Callaway <spot@fedoraproject.org> - 2.34-15
- disable torque
+- conditionalize bool enum for c17 or older
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.34-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-31 15:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-31 15:59 [rpms/pdsh] epel9: conditionalize bool enum for c17 or older Tom spot Callaway
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox