From 0fd3015624742ae0c2afdab536129d1ed2e07fc4 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 5 Mar 2024 11:26:57 -0800 Subject: [PATCH] Stop `latest` aliases on riscv64 from pointing to anything but uclibc (for now) --- generate-stackbrew-library.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generate-stackbrew-library.sh b/generate-stackbrew-library.sh index 9b8801da..e93aa2fc 100755 --- a/generate-stackbrew-library.sh +++ b/generate-stackbrew-library.sh @@ -112,7 +112,9 @@ for version; do archCommit="${archCommits[$arch]}" if wget --quiet --spider -O /dev/null -o /dev/null "$rawGitUrl/$archCommit/$dir/$arch/rootfs.tar.gz"; then variantArches+=( "$arch" ) - if [ -z "${archLatestDir[$arch]:-}" ]; then + if [ "$arch" = 'riscv64' ] && [[ "$variant" != *uclibc* ]]; then + : # do not let "glibc" or "musl" be "latest" on riscv64 until they are no longer based on Debian Unstable / Alpine Edge + elif [ -z "${archLatestDir[$arch]:-}" ]; then # record the first supported directory per architecture for "latest" and friends archLatestDir["$arch"]="$dir/$arch" actualArches+=( "$arch" )