The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(installer): ELF interpreter decides musl in uv_bootstrap_target, as in pm/store
teknium134d52883cbd7
diff --git a/scripts/install.sh b/scripts/install.shindex 9643eccc2be..7549ac40de9 100755--- a/scripts/install.sh+++ b/scripts/install.sh@@ -218,12 +218,23 @@ uv_bootstrap_target() {esaccase "$(uname -s)" inLinux)- # Minimal musl roots may have the loader but no ldd. Trust a- # recognizable ldd result before falling back to the loader:- # a glibc host may carry musl as a secondary toolchain.- local _libc- _libc="$(ldd --version 2>&1 || true)"- _libc="${_libc,,}"+ # Same precedence as pm/store.py::_is_musl_libc: the native+ # userland's ELF interpreter decides; ldd and a musl loader on+ # disk are fallbacks only (a glibc host may carry musl as a+ # secondary toolchain, and minimal musl roots may lack ldd).+ local _libc="" _probe _head+ for _probe in /bin/sh /bin/ls; do+ _head="$(head -c 8192 "$_probe" 2>/dev/null | LC_ALL=C tr -d '\000')" || continue+ [[ "$_head" == $'\x7f'ELF* ]] || continue+ case "$_head" in+ *ld-musl-*) _libc="musl"; break ;;+ *ld-linux*) _libc="glibc"; break ;;+ esac+ done+ if [[ -z "$_libc" ]]; then+ _libc="$(ldd --version 2>&1 || true)"+ _libc="${_libc,,}"+ fiif [[ "$_libc" == *musl* ]]; thenecho "linux-$_arch-musl"elif [[ "$_libc" == *glibc* || "$_libc" == *"gnu libc"* || "$_libc" == *"gnu c library"* ]]; then