From e078bbb383dbd10828e3b49a7504c23e16a7553f Mon Sep 17 00:00:00 2001 From: Noratrieb <48135649+Noratrieb@users.noreply.github.com> Date: Sun, 16 Mar 2025 20:56:24 +0100 Subject: [PATCH] rustup: fix rust-lld wrapper argument quoting The wrapper script uses raw `$@`, which does not work when any of the argument contains spaces. Use `"$@"` instead, which handles this correctly. --- .../tools/rust/rustup/0001-dynamically-patchelf-binaries.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/tools/rust/rustup/0001-dynamically-patchelf-binaries.patch b/pkgs/development/tools/rust/rustup/0001-dynamically-patchelf-binaries.patch index 1eb93930d0a5..59fcf039795c 100644 --- a/pkgs/development/tools/rust/rustup/0001-dynamically-patchelf-binaries.patch +++ b/pkgs/development/tools/rust/rustup/0001-dynamically-patchelf-binaries.patch @@ -39,7 +39,7 @@ index dfccc661..85233f3b 100644 +set -eu -o pipefail +o posix +shopt -s nullglob +export PROG=\"{}\" -+\"{}\" $@", ++\"{}\" \"$@\"", + unwrapped_lld.to_string_lossy().to_string(), + ld_wrapper_path.to_string_lossy().to_string(), + );