Compare commits
3 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 369ced799b | |||
| ff68e48e52 | |||
| 22e4419f62 |
30
Add-support-for-C23-gcc-15.patch
Normal file
30
Add-support-for-C23-gcc-15.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From: Egbert Eich <eich@suse.com>
|
||||
Date: Sun Mar 9 10:14:41 2025 +0100
|
||||
Subject: Add support for C23 (gcc >= 15)
|
||||
Patch-mainline: Not yet
|
||||
Git-commit: ce57044b7b79758f1710e6f57df52cffe1f1425a
|
||||
References:
|
||||
|
||||
'true' and 'false' are proper keywords in C23.
|
||||
|
||||
Signed-off-by: Egbert Eich <eich@suse.com>
|
||||
Signed-off-by: Egbert Eich <eich@suse.de>
|
||||
---
|
||||
src/common/macros.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
diff --git a/src/common/macros.h b/src/common/macros.h
|
||||
index 3cab336..ea227ab 100644
|
||||
--- a/src/common/macros.h
|
||||
+++ b/src/common/macros.h
|
||||
@@ -58,9 +58,11 @@
|
||||
|
||||
#ifndef _BOOL_DEFINED
|
||||
# define _BOOL_DEFINED
|
||||
+# if __STDC_VERSION__ < 202311L
|
||||
# if !defined (true) && !defined (false)
|
||||
typedef enum { false, true } bool;
|
||||
# endif
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
#endif /* !_MACROS_INCLUDED */
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 9 09:35:55 UTC 2025 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Fix build for C23 - gcc-15.
|
||||
This fixes https://github.com/chaos/pdsh/issues/165.
|
||||
Add-support-for-C23-gcc-15.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 21 09:59:34 UTC 2025 - Egbert Eich <eich@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package pdsh
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 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
|
||||
@@ -72,6 +72,7 @@ Summary: Parallel remote shell program
|
||||
License: GPL-2.0-or-later
|
||||
Group: Productivity/Clustering/Computing
|
||||
Source: https://github.com/chaos/%{pname}/releases/download/%{pname}-%{version}/%{pname}-%{version}.tar.gz
|
||||
Patch: Add-support-for-C23-gcc-15.patch
|
||||
|
||||
%description
|
||||
Pdsh is a multithreaded remote shell client which executes commands on
|
||||
@@ -133,7 +134,7 @@ Conflicts: pdsh-genders
|
||||
Plugin for pdsh to determine nodes to run on from netgroups.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pname}-%{version}
|
||||
%autosetup -p1 -n %{pname}-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
|
||||
Reference in New Issue
Block a user