From fb324910bfb9bc9e870ee8341d88bb6449b3eb27 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 7 Aug 2022 11:04:45 +0100 Subject: [PATCH] nixos/stage-1: srestore striping of bin/ and lib/ commit 05077250615fa33 ("setup-hooks/strip.sh: run RANLIB on static archives after stripping") added an extra argument to `stripDirs()` helper. I did not realize it's used outside the strip hook itself. Restore stripping by passing $RANLIB as a new argument. --- nixos/modules/system/boot/stage-1.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index ec2f3d18c68..37adcc531d3 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -219,7 +219,7 @@ let # Strip binaries further than normal. chmod -R u+w $out - stripDirs "$STRIP" "lib bin" "-s" + stripDirs "$STRIP" "$RANLIB" "lib bin" "-s" # Run patchelf to make the programs refer to the copied libraries. find $out/bin $out/lib -type f | while read i; do