slurm: add patch to allow full path lengths in --get-user-env
Fix fallout from https://github.com/NixOS/nixpkgs/pull/90041
and 5d8f61f3bf, which fixes
the crash of slurmd but "sbatch --get-user-env" did not work
properly.
This commit is contained in:
@@ -22,6 +22,12 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
|
||||
patches = [
|
||||
# increase string length to allow for full
|
||||
# path of 'echo' in nix store
|
||||
./common-env-echo.patch
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace src/common/env.c \
|
||||
--replace "/bin/echo" "${coreutils}/bin/echo"
|
||||
|
||||
Reference in New Issue
Block a user