Skip to content

Commit 1d0358e

Browse files
authored
Merge pull request #271865 from markuskowa/upd-slurm
slurm: 23.02.6.1 -> 23.11.0.1
2 parents d333993 + 1c32f80 commit 1d0358e

File tree

6 files changed

+42
-12
lines changed

6 files changed

+42
-12
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ stdenv.mkDerivation rec {
1111
sha256 = "15cpd49ccvzsmmr3gk8svm2nz461rvs4ybczckyf4yla0xzp06gj";
1212
};
1313

14+
patches = [ ./hostlist.patch ];
15+
1416
buildPhase = ''
15-
gcc -I${slurm.dev}/include -shared -fPIC -o stunnel.so slurm-spank-stunnel.c
17+
gcc -I${lib.getDev slurm}/include -shared -fPIC -o stunnel.so slurm-spank-stunnel.c
1618
'';
1719

1820
installPhase = ''
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/slurm-spank-stunnel.c b/slurm-spank-stunnel.c
2+
index 81fb4fd..dbe69f6 100644
3+
--- a/slurm-spank-stunnel.c
4+
+++ b/slurm-spank-stunnel.c
5+
@@ -278,7 +278,7 @@ int _stunnel_connect_nodes (char* nodes)
6+
{
7+
8+
char* host;
9+
- hostlist_t hlist;
10+
+ hostlist_t *hlist;
11+
12+
// Connect to the first host in the list
13+
hlist = slurm_hostlist_create(nodes);

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ 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
16-
gcc -I${slurm.dev}/include -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" -shared -fPIC \
18+
gcc -I${lib.getDev slurm}/include -DX11_LIBEXEC_PROG="\"$out/bin/slurm-spank-x11\"" -shared -fPIC \
1719
-g -o x11.so slurm-spank-x11-plug.c
1820
'';
1921

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+
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
diff --git a/src/common/env.c b/src/common/env.c
2-
index 987846d..73d3b3b 100644
2+
index 4dad18fef1..730f28af96 100644
33
--- a/src/common/env.c
44
+++ b/src/common/env.c
5-
@@ -1941,7 +1941,7 @@ char **env_array_user_default(const char *username, int timeout, int mode,
5+
@@ -2073,7 +2073,7 @@ char **env_array_user_default(const char *username, int timeout, int mode,
66
char **env = NULL;
77
char *starttoken = "XXXXSLURMSTARTPARSINGHEREXXXX";
88
char *stoptoken = "XXXXSLURMSTOPPARSINGHEREXXXXX";
99
- char cmdstr[256], *env_loc = NULL;
10-
+ char cmdstr[MAXPATHLEN], *env_loc = NULL;
10+
+ char cmdstr[PATH_MAX], *env_loc = NULL;
1111
char *stepd_path = NULL;
12-
int fd1, fd2, fildes[2], found, fval, len, rc, timeleft;
12+
int fildes[2], found, fval, len, rc, timeleft;
1313
int buf_read, buf_rem, config_timeout;

pkgs/servers/computing/slurm/default.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
stdenv.mkDerivation rec {
1616
pname = "slurm";
17-
version = "23.02.7.1";
17+
version = "23.11.0.1";
1818

1919
# N.B. We use github release tags instead of https://www.schedmd.com/downloads.php
2020
# because the latter does not keep older releases.
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
2323
repo = "slurm";
2424
# The release tags use - instead of .
2525
rev = "${pname}-${builtins.replaceStrings ["."] ["-"] version}";
26-
sha256 = "sha256-0u96KnEahx7noA8vQEkC1f+hv4d3NGPmnof9G7bA7Oc=";
26+
hash = "sha256-+8oDNfNg9WGET1iWarhZbQEOdjHjSshIB/otdYvl18c=";
2727
};
2828

2929
outputs = [ "out" "dev" ];
@@ -60,12 +60,12 @@ stdenv.mkDerivation rec {
6060
configureFlags = with lib;
6161
[ "--with-freeipmi=${freeipmi}"
6262
"--with-http-parser=${http-parser}"
63-
"--with-hwloc=${hwloc.dev}"
64-
"--with-json=${json_c.dev}"
63+
"--with-hwloc=${lib.getDev hwloc}"
64+
"--with-json=${lib.getDev json_c}"
6565
"--with-jwt=${libjwt}"
66-
"--with-lz4=${lz4.dev}"
66+
"--with-lz4=${lib.getDev lz4}"
6767
"--with-munge=${munge}"
68-
"--with-yaml=${libyaml.dev}"
68+
"--with-yaml=${lib.getDev libyaml}"
6969
"--with-ofed=${lib.getDev rdma-core}"
7070
"--sysconfdir=/etc/slurm"
7171
"--with-pmix=${pmix}"

0 commit comments

Comments
 (0)