slurm-spank-x11: add patch for slurm-23.11

This commit is contained in:
Markus Kowalewski 2023-12-24 15:10:06 +01:00
parent 0998641159
commit d272adb1b8
2 changed files with 15 additions and 0 deletions

View file

@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
sha256 = "1dmsr7whxcxwnlvl1x4s3bqr5cr6q5ssb28vqi67w5hj4sshisry"; sha256 = "1dmsr7whxcxwnlvl1x4s3bqr5cr6q5ssb28vqi67w5hj4sshisry";
}; };
patches = [ ./hostlist.patch ];
buildPhase = '' buildPhase = ''
gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \ gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \
-g -o slurm-spank-x11 slurm-spank-x11.c -g -o slurm-spank-x11 slurm-spank-x11.c

View file

@ -0,0 +1,13 @@
diff --git a/slurm-spank-x11-plug.c b/slurm-spank-x11-plug.c
index bef6c14..7cb77c4 100644
--- a/slurm-spank-x11-plug.c
+++ b/slurm-spank-x11-plug.c
@@ -608,7 +608,7 @@ int _connect_node (char* node,uint32_t jobid,uint32_t stepid)
int _x11_connect_nodes (char* nodes,uint32_t jobid,uint32_t stepid)
{
char* host;
- hostlist_t hlist;
+ hostlist_t *hlist;
int n=0;
int i;