From 4b0899478316418e77b68dc0edca54fbe76e5e3c Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 29 Oct 2026 12:40:26 +0000 Subject: [PATCH] proot build: fall back to Debian's copy of talloc when samba.org is down samba.org has been timing out and returning 504s, which fails native-proot/build.sh and with it the APK build and LinuxUiTest. Try Debian's copy of the same tarball after it; the SHA-256 check still covers whichever one is downloaded. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B82eRVHnHRzok8eDG2idnz --- native-proot/build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/native-proot/build.sh b/native-proot/build.sh index ea5a31f..bb37162 100755 --- a/native-proot/build.sh +++ b/native-proot/build.sh @@ -61,8 +61,14 @@ export PATH # talloc: its one source file, with the little of Samba's lib/replace it uses TARBALL=$WORK/talloc-$TALLOC_VERSION.tar.gz +# (samba.org first, Debian's copy of the same tarball when it is down; the checksum below checks either) if [ ! -f "$TARBALL" ]; then - curl -fsSL -o "$TARBALL.part" "https://www.samba.org/ftp/talloc/talloc-$TALLOC_VERSION.tar.gz" + for url in "https://www.samba.org/ftp/talloc/talloc-$TALLOC_VERSION.tar.gz" \ + "https://deb.debian.org/debian/pool/main/t/talloc/talloc_$TALLOC_VERSION.orig.tar.gz"; do + curl -fsSL --connect-timeout 20 --max-time 120 -o "$TARBALL.part" "$url" && break + rm -f "$TARBALL.part" + done + [ -f "$TARBALL.part" ] || { echo "talloc $TALLOC_VERSION couldn't be downloaded" >&2; exit 1; } mv "$TARBALL.part" "$TARBALL" fi echo "$TALLOC_SHA256 $TARBALL" | sha256sum -c - >/dev/null || { echo "talloc's checksum doesn't match" >&2; rm -f "$TARBALL"; exit 1; }