slurm-spank-x11: add patch for slurm-23.11
This commit is contained in:
parent
0998641159
commit
d272adb1b8
2 changed files with 15 additions and 0 deletions
|
@ -10,6 +10,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1dmsr7whxcxwnlvl1x4s3bqr5cr6q5ssb28vqi67w5hj4sshisry";
|
||||
};
|
||||
|
||||
patches = [ ./hostlist.patch ];
|
||||
|
||||
buildPhase = ''
|
||||
gcc -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" \
|
||||
-g -o slurm-spank-x11 slurm-spank-x11.c
|
||||
|
|
13
pkgs/servers/computing/slurm-spank-x11/hostlist.patch
Normal file
13
pkgs/servers/computing/slurm-spank-x11/hostlist.patch
Normal 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;
|
||||
|
Loading…
Reference in a new issue