3
0
Fork 0
forked from mirrors/nixpkgs

linuxPackages_5_10_hardened: fix patching conflict with patchShebang

This commit is contained in:
Jonathan Ringer 2021-10-14 16:27:54 -07:00 committed by Jonathan Ringer
parent 9a002bac35
commit e9a1ba099f

View file

@ -126,7 +126,11 @@ let
# See also https://kernelnewbies.org/BuildId
sed -i Makefile -e 's|--build-id=[^ ]*|--build-id=none|'
patchShebangs scripts
# Some linux-hardened patches now remove certain files in the scripts directory, so we cannot
# patch all scripts until after patches are applied.
# However, scripts/ld-version.sh is still ran when generating a configfile for a kernel, so it needs
# to be patched prior to patchPhase
patchShebangs scripts/ld-version.sh
'';
postPatch = ''
@ -140,6 +144,8 @@ let
--replace NIXOS_RANDSTRUCT_SEED \
$(echo ${randstructSeed}${src} ${configfile} | sha256sum | cut -d ' ' -f 1 | tr -d '\n')
fi
patchShebangs scripts
'';
configurePhase = ''