From 917bb3ab08a7d20bae4be215eb35e3e0e439274d Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 10 Sep 2025 00:11:00 +0200 Subject: [PATCH] gnu: slurm-23.02: Update to slurm-23.11. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/parallel.scm (slurm-23.02, slurm-minimal-23.02): Delete variables, replace respectively by (slurm-23.11, slurm-minimal-23.11). * gnu/packages/patches/slurm-23-salloc-fallback-shell.patch: Refresh patch. Signed-off-by: Ludovic Courtès --- gnu/packages/parallel.scm | 12 +++---- .../slurm-23-salloc-fallback-shell.patch | 33 ++++++------------- 2 files changed, 16 insertions(+), 29 deletions(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 8402b5cc0bb..a2e8cb7a705 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -339,10 +339,10 @@ minimal slurm package BASE-SLURM." ;; As noted in the link, YY.MM is the release scheme, and the 'maintenance' ;; digit does not introduce incompatibilities. -(define-public slurm-minimal-23.02 +(define-public slurm-minimal-23.11 (package (inherit slurm-minimal) - (version "23.02.6") + (version "23.11.11") (source (origin (inherit (package-source slurm)) (method url-fetch) @@ -353,16 +353,16 @@ minimal slurm package BASE-SLURM." (search-patches "slurm-23-salloc-fallback-shell.patch")) (sha256 (base32 - "08rz3r1rlnb3pmfdnbh542gm44ja0fdy8rkj4vm4lclc48cvqp2a")))))) + "0pg4liysbppfgynwsj3i1lzr60rnybnvzja37x6xgyjvxgf165sa")))))) -(define-public slurm-23.02 (make-slurm slurm-minimal-23.02)) +(define-public slurm-23.11 (make-slurm slurm-minimal-23.11)) (define-public slurm-minimal-22.05 (package - (inherit slurm-minimal-23.02) + (inherit slurm-minimal-23.11) (version "22.05.1") (source (origin - (inherit (package-source slurm-minimal-23.02)) + (inherit (package-source slurm-minimal-23.11)) (method url-fetch) (uri (string-append "https://download.schedmd.com/slurm/slurm-" diff --git a/gnu/packages/patches/slurm-23-salloc-fallback-shell.patch b/gnu/packages/patches/slurm-23-salloc-fallback-shell.patch index 53605bf3aed..daaeb9358fb 100644 --- a/gnu/packages/patches/slurm-23-salloc-fallback-shell.patch +++ b/gnu/packages/patches/slurm-23-salloc-fallback-shell.patch @@ -8,32 +8,19 @@ instance because user code is linked against an incompatible libc. Similar patch submitted upstream: https://bugs.schedmd.com/show_bug.cgi?id=19896 diff --git a/src/salloc/opt.c b/src/salloc/opt.c -index ffff7c8..74563ad 100644 +index f535600..848f099 100644 --- a/src/salloc/opt.c +++ b/src/salloc/opt.c -@@ -329,6 +329,7 @@ static void _opt_args(int argc, char **argv, int het_job_offset) - * NOTE: This function is NOT reentrant (see getpwuid_r if needed) */ - static char *_get_shell(void) - { -+ char *shell; - struct passwd *pw_ent_ptr; +@@ -333,8 +333,10 @@ static char *_get_shell(void) + if (uid == SLURM_AUTH_NOBODY) + uid = getuid(); - if (opt.uid == SLURM_AUTH_NOBODY) -@@ -336,11 +337,13 @@ static char *_get_shell(void) - else - pw_ent_ptr = getpwuid(opt.uid); - -- if (!pw_ent_ptr) { -- pw_ent_ptr = getpwnam("nobody"); -- warning("no user information for user %u", opt.uid); -+ if (pw_ent_ptr) { -+ shell = pw_ent_ptr->pw_shell; -+ } else { +- if (!(shell = uid_to_shell(uid))) +- fatal("no user information for user %u", uid); ++ if (!(shell = uid_to_shell(uid))) { + shell = getenv("SHELL") ?: "/bin/sh"; + warning("no user information for user %u, using '%s' as the shell", opt.uid, shell); - } -- return pw_ent_ptr->pw_shell; -+ return shell; - } ++ } - static void _salloc_default_command(int *argcp, char **argvp[]) + return shell; + }