Skip to content

Commit d272adb

Browse files
committed
slurm-spank-x11: add patch for slurm-23.11
1 parent 0998641 commit d272adb

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

pkgs/servers/computing/slurm-spank-x11/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
1010
sha256 = "1dmsr7whxcxwnlvl1x4s3bqr5cr6q5ssb28vqi67w5hj4sshisry";
1111
};
1212

13+
patches = [ ./hostlist.patch ];
14+
1315
buildPhase = ''
1416
gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \
1517
-g -o slurm-spank-x11 slurm-spank-x11.c
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/slurm-spank-x11-plug.c b/slurm-spank-x11-plug.c
2+
index bef6c14..7cb77c4 100644
3+
--- a/slurm-spank-x11-plug.c
4+
+++ b/slurm-spank-x11-plug.c
5+
@@ -608,7 +608,7 @@ int _connect_node (char* node,uint32_t jobid,uint32_t stepid)
6+
int _x11_connect_nodes (char* nodes,uint32_t jobid,uint32_t stepid)
7+
{
8+
char* host;
9+
- hostlist_t hlist;
10+
+ hostlist_t *hlist;
11+
int n=0;
12+
int i;
13+

0 commit comments

Comments
 (0)