-
Notifications
You must be signed in to change notification settings - Fork 710
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20795 from boegel/20240610194037_new_pr_pdsh234
add patch to fix build of pdsh 2.34 with Slurm 23.x
- Loading branch information
Showing
4 changed files
with
37 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
easybuild/easyconfigs/p/pdsh/pdsh-2.34_fix-slurm-23.x.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
see https://github.com/chaos/pdsh/issues/152 + https://github.com/chaos/pdsh/pull/153 | ||
diff --git a/src/modules/slurm.c b/src/modules/slurm.c | ||
index 5594c4f..c227337 100644 | ||
--- a/src/modules/slurm.c | ||
+++ b/src/modules/slurm.c | ||
@@ -50,6 +50,16 @@ | ||
* with our internal List datatype. | ||
*/ | ||
#define __list_datatypes_defined 1 | ||
+/* | ||
+ * Also, Slurm>=23.x requires that `struct xlist` be typedef'd to list_t: | ||
+ */ | ||
+typedef struct xlist list_t; | ||
+typedef struct listIterator list_itr_t; | ||
+/* | ||
+ * Also, Slurm exports the hostlist_t interface as well: | ||
+ */ | ||
+#define __hostlist_t_defined 1 | ||
+ | ||
#include <slurm/slurm.h> | ||
#include <slurm/slurm_errno.h> | ||
|