From 03e5afe3132ab74b0c8ca380ad14a26785c686ed Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Tue, 23 Jan 2024 15:30:07 +0000 Subject: [PATCH 1/2] Use GitHub release tarball instead of zlib.net Because zlib.net only provides the latest version of zlib and the old versions are not available after the new version is released. --- lib/ruby_wasm/build/product/zlib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_wasm/build/product/zlib.rb b/lib/ruby_wasm/build/product/zlib.rb index 457843f89f..e692035c3c 100644 --- a/lib/ruby_wasm/build/product/zlib.rb +++ b/lib/ruby_wasm/build/product/zlib.rb @@ -46,7 +46,7 @@ def build(executor) "-o", tarball_path, "-L", - "https://zlib.net/zlib-#{ZLIB_VERSION}.tar.gz" + "https://github.com/madler/zlib/releases/download/v#{ZLIB_VERSION}/zlib-#{ZLIB_VERSION}.tar.gz" executor.system "tar", "xzf", tarball_path, From a0ba82f86d8e00478960bb06cfc60a4b893ec939 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Tue, 23 Jan 2024 15:32:05 +0000 Subject: [PATCH 2/2] Update zlib to 1.3.1 --- lib/ruby_wasm/build/product/zlib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_wasm/build/product/zlib.rb b/lib/ruby_wasm/build/product/zlib.rb index e692035c3c..e536427e79 100644 --- a/lib/ruby_wasm/build/product/zlib.rb +++ b/lib/ruby_wasm/build/product/zlib.rb @@ -4,7 +4,7 @@ module RubyWasm class ZlibProduct < AutoconfProduct attr_reader :target - ZLIB_VERSION = "1.3" + ZLIB_VERSION = "1.3.1" def initialize(build_dir, target, toolchain) @build_dir = build_dir