From 469f39997212a8f24b26157a19d1ba9201c3aafb Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 27 Sep 2023 18:09:00 +0200 Subject: [PATCH] publish-release: Make check for musl more reliable The "ldd --version" output doesn't necessarily contain the libc vendor. --- tools/publish-release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/publish-release b/tools/publish-release index fc1a5f55b..4ca76e495 100755 --- a/tools/publish-release +++ b/tools/publish-release @@ -103,10 +103,10 @@ cat >"$web_root_dir/install" <<-EOF Linux/x86_64) arch='x64' ;; *) unsupported "\$platform" ;; esac - ldd_output=\$(ldd --version 2>&1 || :) + ldd_output=\$(ldd '/bin/ls' | grep 'libc') case \$ldd_output in - *GNU\ libc*|*[Gg][Ll][Ii][Bb][Cc]*) libc='glibc' ;; *musl*) libc='musl' ;; + *gnu*) libc='glibc' ;; *) unsupported 'non-glibc/musl' ;; esac installer="\$rel_name-\$rel_vsn-\$os-\$libc-\$arch.run"