* [PATCH] tests/docker: use stable URLs for zlib tarballs
@ 2026-08-03 17:47 Stefan Hajnoczi
2026-08-03 17:53 ` Daniel P. Berrangé
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Hajnoczi @ 2026-08-03 17:47 UTC (permalink / raw)
To: qemu-devel
Cc: Pierrick Bouvier, Alex Bennée, Kohei Tokunaga,
Stefan Hajnoczi, Michael Tokarev, Daniel P. Berrangé
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.
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
index c04a741b0e5..4f26ce7a269 100644
--- a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
+++ b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
@@ -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)
--
2.55.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] tests/docker: use stable URLs for zlib tarballs
2026-08-03 17:47 [PATCH] tests/docker: use stable URLs for zlib tarballs Stefan Hajnoczi
@ 2026-08-03 17:53 ` Daniel P. Berrangé
2026-08-03 18:03 ` Stefan Hajnoczi
0 siblings, 1 reply; 8+ messages in thread
From: Daniel P. Berrangé @ 2026-08-03 17:53 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: qemu-devel, Pierrick Bouvier, Alex Bennée, Kohei Tokunaga,
Michael Tokarev
On Mon, Aug 03, 2026 at 01:47:35PM -0400, Stefan Hajnoczi wrote:
> 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...."
>
> 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 <mjt@tls.msk.ru>
> Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
With regards,
Daniel
--
|: https://berrange.com ~~ https://hachyderm.io/@berrange :|
|: https://libvirt.org ~~ https://entangle-photo.org :|
|: https://pixelfed.art/berrange ~~ https://fstop138.berrange.com :|
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] tests/docker: use stable URLs for zlib tarballs
2026-08-03 17:53 ` Daniel P. Berrangé
@ 2026-08-03 18:03 ` Stefan Hajnoczi
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2026-08-03 18:03 UTC (permalink / raw)
To: Daniel P. Berrangé
Cc: Stefan Hajnoczi, qemu-devel, Pierrick Bouvier, Alex Bennée,
Kohei Tokunaga, Michael Tokarev
On Mon, Aug 3, 2026 at 1:54 PM Daniel P. Berrangé <berrange@redhat.com> wrote:
>
> On Mon, Aug 03, 2026 at 01:47:35PM -0400, Stefan Hajnoczi wrote:
> > 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH] tests/docker: use stable URLs for zlib tarballs
@ 2026-08-03 18:07 Stefan Hajnoczi
2026-08-03 18:08 ` Stefan Hajnoczi
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2026-08-03 18:07 UTC (permalink / raw)
To: qemu-devel
Cc: Alex Bennée, Kohei Tokunaga, Pierrick Bouvier,
Stefan Hajnoczi, Michael Tokarev, Daniel P. Berrangé
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 xz to gzip since xz 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.
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
v2:
- Fix "bzip2 to gzip since bzip2" typo. It should have been xz instead
of bzip2. [danpb]
tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
index c04a741b0e5..4f26ce7a269 100644
--- a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
+++ b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
@@ -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)
--
2.55.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] tests/docker: use stable URLs for zlib tarballs
2026-08-03 18:07 Stefan Hajnoczi
@ 2026-08-03 18:08 ` Stefan Hajnoczi
2026-08-04 1:02 ` Kohei Tokunaga
2026-08-04 11:11 ` Philippe Mathieu-Daudé
2026-08-04 21:51 ` Pierrick Bouvier
2 siblings, 1 reply; 8+ messages in thread
From: Stefan Hajnoczi @ 2026-08-03 18:08 UTC (permalink / raw)
To: Stefan Hajnoczi
Cc: qemu-devel, Alex Bennée, Kohei Tokunaga, Pierrick Bouvier,
Michael Tokarev, Daniel P. Berrangé
This is v2 of the patch.
Stefan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] tests/docker: use stable URLs for zlib tarballs
2026-08-03 18:08 ` Stefan Hajnoczi
@ 2026-08-04 1:02 ` Kohei Tokunaga
0 siblings, 0 replies; 8+ messages in thread
From: Kohei Tokunaga @ 2026-08-04 1:02 UTC (permalink / raw)
To: qemu-devel, Stefan Hajnoczi
Cc: Stefan Hajnoczi, Alex Bennée, Pierrick Bouvier,
Michael Tokarev, Daniel P. Berrangé
[-- Attachment #1: Type: text/plain, Size: 1878 bytes --]
Hi Stefan,
> 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 xz to gzip since xz 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.
>
> Reported-by: Michael Tokarev <mjt@tls.msk.ru>
> Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> v2:
> - Fix "bzip2 to gzip since bzip2" typo. It should have been xz instead
> of bzip2. [danpb]
>
> tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> index c04a741b0e5..4f26ce7a269 100644
> --- a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> +++ b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> @@ -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)
Thank you for the fix.
Reviewed-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Regards,
Kohei Tokunaga
[-- Attachment #2: Type: text/html, Size: 2572 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] tests/docker: use stable URLs for zlib tarballs
2026-08-03 18:07 Stefan Hajnoczi
2026-08-03 18:08 ` Stefan Hajnoczi
@ 2026-08-04 11:11 ` Philippe Mathieu-Daudé
2026-08-04 21:51 ` Pierrick Bouvier
2 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-08-04 11:11 UTC (permalink / raw)
To: Stefan Hajnoczi, qemu-devel
Cc: Alex Bennée, Kohei Tokunaga, Pierrick Bouvier,
Michael Tokarev, Daniel P. Berrangé
On 3/8/26 20:07, Stefan Hajnoczi wrote:
> 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 xz to gzip since xz 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.
>
> Reported-by: Michael Tokarev <mjt@tls.msk.ru>
> Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> v2:
> - Fix "bzip2 to gzip since bzip2" typo. It should have been xz instead
> of bzip2. [danpb]
>
> tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> index c04a741b0e5..4f26ce7a269 100644
> --- a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> +++ b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> @@ -56,8 +56,8 @@ EOF
> FROM build-base AS zlib-dev
> ARG ZLIB_VERSION
Even safer would be to have a ZLIB_SHA and assert it is correct.
Tested-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
> 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)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] tests/docker: use stable URLs for zlib tarballs
2026-08-03 18:07 Stefan Hajnoczi
2026-08-03 18:08 ` Stefan Hajnoczi
2026-08-04 11:11 ` Philippe Mathieu-Daudé
@ 2026-08-04 21:51 ` Pierrick Bouvier
2 siblings, 0 replies; 8+ messages in thread
From: Pierrick Bouvier @ 2026-08-04 21:51 UTC (permalink / raw)
To: Stefan Hajnoczi, qemu-devel
Cc: Alex Bennée, Kohei Tokunaga, Michael Tokarev,
Daniel P. Berrangé
On 8/3/2026 11:07 AM, Stefan Hajnoczi wrote:
> 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 xz to gzip since xz 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.
>
> Reported-by: Michael Tokarev <mjt@tls.msk.ru>
> Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
> v2:
> - Fix "bzip2 to gzip since bzip2" typo. It should have been xz instead
> of bzip2. [danpb]
>
> tests/docker/dockerfiles/emsdk-wasm64-cross.docker | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> index c04a741b0e5..4f26ce7a269 100644
> --- a/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> +++ b/tests/docker/dockerfiles/emsdk-wasm64-cross.docker
> @@ -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)
We could also switch to git clone with -single-branch -depth 1, but
current patch works fine.
Feel free to apply it directly to staging/your tree.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Regards,
Pierrick
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-08-04 21:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-03 17:47 [PATCH] tests/docker: use stable URLs for zlib tarballs Stefan Hajnoczi
2026-08-03 17:53 ` Daniel P. Berrangé
2026-08-03 18:03 ` Stefan Hajnoczi
-- strict thread matches above, loose matches on Subject: below --
2026-08-03 18:07 Stefan Hajnoczi
2026-08-03 18:08 ` Stefan Hajnoczi
2026-08-04 1:02 ` Kohei Tokunaga
2026-08-04 11:11 ` Philippe Mathieu-Daudé
2026-08-04 21:51 ` Pierrick Bouvier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.