public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tom spot Callaway <spotaws@amazon.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pdsh] epel10: conditionalize bool enum for c17 or older
Date: Fri, 31 Jul 2026 15:22:08 GMT	[thread overview]
Message-ID: <178551132873.1.15898314387828276315.rpms-pdsh-9965a5f0af88@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/pdsh
Branch : epel10
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=epel10

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

                 reply	other threads:[~2026-07-31 15:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178551132873.1.15898314387828276315.rpms-pdsh-9965a5f0af88@fedoraproject.org \
    --to=spotaws@amazon.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox