bootstrap: add 'libxcrypt-compat' to pacman install command (#1137)

This is apparently necessary to permit Python 3.8.12 to run. Namely, it
needs to link to libcrypt.so.1, and without libxcrypt-compat, that
linking step fails.
This commit is contained in:
Andrew Gallant 2024-01-26 16:56:41 -05:00 committed by GitHub
parent a2ef2010d2
commit 61e03e3655
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,12 +10,12 @@
# brew install zstd jq coreutils
#
# Ubuntu
#
#
# apt install zstd jq
#
# Arch Linux
#
# pacman -S zstd jq
#
# pacman -S zstd jq libxcrypt-compat
#
# Windows
#
@ -72,7 +72,7 @@ for version in "${versions[@]}"; do
echo "Installing $key"
url=$(jq --arg key "$key" '.[$key] | .url' -r < "$versions_metadata")
if [ "$url" == 'null' ]; then
echo "No matching download for $key"
exit 1
@ -96,7 +96,7 @@ for version in "${versions[@]}"; do
echo "Extracting to $($realpath --relative-to="$root_dir" "$install_key")"
mkdir -p "$install_key"
zstd -d "$this_dir/$filename" --stdout | tar -x -C "$install_key"
# Setup the installation
mv "$install_key/python/"* "$install_key"
# Use relative paths for links so if the bin is moved they don't break