Skip to content

Commit 401bfa8

Browse files
bushidocodesclaude
andcommitted
fix: download zlib from zlib.net/fossils (root URL now 404s)
zlib.net only serves the current release at the root path; older versions are moved to the permanent /fossils/ archive. zlib 1.3.2 is now current, so https://zlib.net/zlib-1.3.1.tar.gz returns 404, which made wget write no file and the subsequent `tar xzf zlib-1.3.1.tar.gz` fail, breaking the gocr WASI build. Point the pinned 1.3.1 download at /fossils/, which is a permanent archive and won't move again when future zlib versions are released. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 77d1f65 commit 401bfa8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

install_libpng_wasi.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ if [ -f "$ZLIB_TARBALL" ]; then
2727
echo "Tarball $ZLIB_TARBALL already exists. Skipping re-download."
2828
else
2929
echo "Tarball $ZLIB_TARBALL does not exist. Downloading the tarball."
30-
wget https://zlib.net/$ZLIB.tar.gz
30+
# zlib.net only serves the current release at the root; older versions are
31+
# permanently archived under /fossils/. (Was https://zlib.net/$ZLIB.tar.gz, now 404.)
32+
wget https://zlib.net/fossils/$ZLIB.tar.gz
3133
fi
3234

3335
# Check if the directory already exists

0 commit comments

Comments
 (0)