tests/docker: use stable URLs for zlib tarballs
PATCH 1/1 tests/docker: use stable URLs for zlib tarballs
The tarballs at https://zlib.net/zlib-X.Y.Z.tar.xz become unavailable when a new release is made. This breaks the emsdk-wasm64-cross.docker file that fetches the tarball and builds zlib from source.
There is actually an archive available with a stable URL. Use that instead. This does require switching from bzip2 to gzip since bzip2 tarballs are not available in the archive.
The upshot is that the emsdk-wasm64-cross Docker image build will continue working into the future without causing CI breakage when the zlib project makes a new release.
--- tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/docker/dockerfiles/emsdk-wasm64-cross.docker +2 -2
@@ -56,8 +56,8 @@ EOF FROM build-base AS zlib-dev ARG ZLIB_VERSION RUN mkdir -p /zlib -RUN curl -Ls https://zlib.net/zlib-$ZLIB_VERSION.tar.xz | \ - tar xJC /zlib --strip-components=1 +RUN curl -Ls https://zlib.net/fossils/zlib-$ZLIB_VERSION.tar.gz | \ + tar xzC /zlib --strip-components=1 WORKDIR /zlib RUN emconfigure ./configure --prefix=$TARGET --static RUN emmake make install -j$(nproc)
Signature · 1 line
2.55.0
Quoted 7 lines · Stefan Hajnoczi
The tarballs at https://zlib.net/zlib-X.Y.Z.tar.xz become unavailable when a new release is made. This breaks the emsdk-wasm64-cross.docker file that fetches the tarball and builds zlib from source.
There is actually an archive available with a stable URL. Use that instead. This does require switching from bzip2 to gzip since bzip2 tarballs are not available in the archive.
"...from xz to gzip since xz tarballs...."
Quoted 11 lines
The upshot is that the emsdk-wasm64-cross Docker image build will continue working into the future without causing CI breakage when the zlib project makes a new release.
Reported-by Michael Tokarev <[email protected]>Suggested-by Daniel P. Berrangé <[email protected]>Signed-off-by Stefan Hajnoczi <[email protected]>--- tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com ~~ https://hachyderm.io/@berrange :| |: https://libvirt.org ~~ https://entangle-photo.org :| |: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
Quoted 11 lines · Daniel P. Berrangé
Quoted 7 lines · Stefan Hajnoczi
The tarballs at https://zlib.net/zlib-X.Y.Z.tar.xz become unavailable when a new release is made. This breaks the emsdk-wasm64-cross.docker file that fetches the tarball and builds zlib from source.
There is actually an archive available with a stable URL. Use that instead. This does require switching from bzip2 to gzip since bzip2 tarballs are not available in the archive.
"...from xz to gzip since xz tarballs...."
Thanks for spotting this. I'll send a v2.
Stefan