diff options
author | Markus Kowalewski <markus.kowalewski@gmail.com> | 2023-12-24 15:09:37 +0100 |
---|---|---|
committer | Markus Kowalewski <markus.kowalewski@gmail.com> | 2023-12-24 15:17:20 +0100 |
commit | 0998641159f86503713812d847d42e7300908990 (patch) | |
tree | 3408558ed0b60af3a47214416362781eb10963bc /pkgs/servers/computing | |
parent | 2fc02c0831e07ad464f9a304dfc147be3f0f21eb (diff) |
slurm-spank-stunnel: add patch for slurm-23.11
Diffstat (limited to 'pkgs/servers/computing')
-rw-r--r-- | pkgs/servers/computing/slurm-spank-stunnel/default.nix | 2 | ||||
-rw-r--r-- | pkgs/servers/computing/slurm-spank-stunnel/hostlist.patch | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/servers/computing/slurm-spank-stunnel/default.nix b/pkgs/servers/computing/slurm-spank-stunnel/default.nix index 9fdd5625f78ff..3d87055d53bf8 100644 --- a/pkgs/servers/computing/slurm-spank-stunnel/default.nix +++ b/pkgs/servers/computing/slurm-spank-stunnel/default.nix @@ -11,6 +11,8 @@ stdenv.mkDerivation rec { sha256 = "15cpd49ccvzsmmr3gk8svm2nz461rvs4ybczckyf4yla0xzp06gj"; }; + patches = [ ./hostlist.patch ]; + buildPhase = '' gcc -I${slurm.dev}/include -shared -fPIC -o stunnel.so slurm-spank-stunnel.c ''; diff --git a/pkgs/servers/computing/slurm-spank-stunnel/hostlist.patch b/pkgs/servers/computing/slurm-spank-stunnel/hostlist.patch new file mode 100644 index 0000000000000..0fc1d0626aab0 --- /dev/null +++ b/pkgs/servers/computing/slurm-spank-stunnel/hostlist.patch @@ -0,0 +1,13 @@ +diff --git a/slurm-spank-stunnel.c b/slurm-spank-stunnel.c +index 81fb4fd..dbe69f6 100644 +--- a/slurm-spank-stunnel.c ++++ b/slurm-spank-stunnel.c +@@ -278,7 +278,7 @@ int _stunnel_connect_nodes (char* nodes) + { + + char* host; +- hostlist_t hlist; ++ hostlist_t *hlist; + + // Connect to the first host in the list + hlist = slurm_hostlist_create(nodes); |