Skip to content

Commit

Permalink
publish-release: Make check for musl more reliable
Browse files Browse the repository at this point in the history
The "ldd --version" output doesn't necessarily contain the libc vendor.
  • Loading branch information
weiss committed Sep 27, 2023
1 parent b987743 commit 469f399
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/publish-release
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 469f399

Please sign in to comment.