From 2cf7bc466b8712e0de5d9dbb538d7e4e20900ebd Mon Sep 17 00:00:00 2001 From: ledsun Date: Fri, 25 Aug 2023 22:42:19 +0900 Subject: [PATCH 1/2] Update zlib version Due to the release of zlib 1.3, zlib 1.2.13 is no longer available for download. --- lib/ruby_wasm/build_system/product/zlib.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_wasm/build_system/product/zlib.rb b/lib/ruby_wasm/build_system/product/zlib.rb index 586526fc83..61a3610b71 100644 --- a/lib/ruby_wasm/build_system/product/zlib.rb +++ b/lib/ruby_wasm/build_system/product/zlib.rb @@ -4,7 +4,7 @@ module RubyWasm class ZlibProduct < AutoconfProduct attr_reader :target - ZLIB_VERSION = "1.2.13" + ZLIB_VERSION = "1.3" def initialize(build_dir, target, toolchain) @build_dir = build_dir From 3c4930c57433eb4fb1a04268cd1495b0fa457552 Mon Sep 17 00:00:00 2001 From: ledsun Date: Fri, 25 Aug 2023 22:44:56 +0900 Subject: [PATCH 2/2] Enable the exception option This is to cause an immediate build error if the zlib download fails. --- lib/ruby_wasm/build_system/product/zlib.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ruby_wasm/build_system/product/zlib.rb b/lib/ruby_wasm/build_system/product/zlib.rb index 61a3610b71..f2f304e55c 100644 --- a/lib/ruby_wasm/build_system/product/zlib.rb +++ b/lib/ruby_wasm/build_system/product/zlib.rb @@ -35,7 +35,8 @@ def build FileUtils.rm_rf product_build_dir system "curl -L https://zlib.net/zlib-#{ZLIB_VERSION}.tar.gz | tar xz", - chdir: File.dirname(product_build_dir) + chdir: File.dirname(product_build_dir), + exception: true system "#{tools_args.join(" ")} ./configure --static", chdir: product_build_dir