Skip to content

fix: download zlib from zlib.net/fossils (root URL now 404s)#1

Merged
emil916 merged 1 commit into
wasifrom
fix/zlib-fossils-url
Jun 19, 2026
Merged

fix: download zlib from zlib.net/fossils (root URL now 404s)#1
emil916 merged 1 commit into
wasifrom
fix/zlib-fossils-url

Conversation

@bushidocodes

Copy link
Copy Markdown

Summary

The WASI build (install_libpng_wasi.sh) downloads zlib from https://zlib.net/zlib-1.3.1.tar.gz, which now returns 404.

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 the pinned 1.3.1 tarball is no longer at the root. wget got the 404 and (by default) wrote no file, so the next step's tar xzf zlib-1.3.1.tar.gz failed — breaking the gocr build.

Change

-    wget https://zlib.net/$ZLIB.tar.gz
+    wget https://zlib.net/fossils/$ZLIB.tar.gz

Keeps the pinned 1.3.1 version (no dependency change) and points at /fossils/, a permanent archive that won't move again when future zlib versions are released.

Verification

  • https://zlib.net/zlib-1.3.1.tar.gz → 404
  • https://zlib.net/fossils/zlib-1.3.1.tar.gz → 200 (1,512,791 bytes)

Built end-to-end as part of the SLEdge make install (via gwsystems/sledge-serverless-framework): the gocr .wasm.so compiles and the runtime OCR's the test image to the exact expected_result.txt.

Context / upstream chain

This is the only content change needed; once merged, the submodule pointer needs bumping up the chain: gwsystems/wasm_appsgwsystems/aWsmgwsystems/sledge-serverless-framework. Companion top-level fixes: gwsystems/sledge-serverless-framework#388.

🤖 Generated with Claude Code

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>
@bushidocodes bushidocodes requested a review from emil916 June 13, 2026 21:33
@bushidocodes bushidocodes marked this pull request as ready for review June 13, 2026 21:33

@emil916 emil916 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@emil916 emil916 merged commit 253bca0 into wasi Jun 19, 2026
@emil916 emil916 deleted the fix/zlib-fossils-url branch June 19, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants