From a2b93f39c8982ce91d10b29f8aaabebe4e68d7d7 Mon Sep 17 00:00:00 2001 From: Jesus Checa Hidalgo Date: Mon, 14 Oct 2024 10:06:13 +0200 Subject: [PATCH] ld-alternative: Update check on alternatives/ld symlink Before LLD 19 /usr/bin/ld.lld was a file, and now it's a symlink to /usr/bin/lld. Hence, /etc/alternative/ld symlink now resolves to /usr/bin/lld, breaking our check and raising false positives. Updating the expression to match "lld" only fixes the issue. --- tests/ld-alternative/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ld-alternative/test.sh b/tests/ld-alternative/test.sh index 258acdb..b244ad1 100755 --- a/tests/ld-alternative/test.sh +++ b/tests/ld-alternative/test.sh @@ -19,7 +19,7 @@ verify_ld_bfd update-alternatives --set ld /usr/bin/ld.lld # Verify that /usr/bin/ld points to lld -[[ $(readlink -f /etc/alternatives/ld) == *"ld.lld" ]] +[[ $(readlink -f /etc/alternatives/ld) == *"lld" ]] # Run ld and verify it invokes lld /usr/bin/ld --version | grep 'LLD'