From bd4c5abe4dca475965548cb8332ef9b9d2a4953c Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 20 Feb 2021 13:19:42 +0100 Subject: [PATCH] ci: add workaround for archlinux/docker issue WORKAROUND for glibc 2.33 and old Docker refs: * https://github.com/qutebrowser/qutebrowser/commit/478e4de7bd1f26bebdcdc166d5369b2b5142c3e2 * https://github.com/actions/virtual-environments/issues/2658 * https://github.com/lxqt/lxqt-panel/pull/1562 --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d469b2..7c3d1cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,8 +10,17 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.vcs-ref=$VCS_REF \ org.label-schema.license=GPL-3.0 +# WORKAROUND for glibc 2.33 and old Docker +# See https://github.com/actions/virtual-environments/issues/2658 +# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562 +ENV patched_glibc glibc-linux4-2.33-4-x86_64.pkg.tar.zst +RUN curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \ + bsdtar -C / -xvf "$patched_glibc" +RUN pacman --version + WORKDIR /tmp/ -RUN pacman -Syu --noconfirm --needed && pacman --noconfirm -R $(pacman -Qdtq) || true +RUN pacman -Syu --ignore glibc --noconfirm --needed +RUN pacman --noconfirm -Rn $(pacman -Qdtq) || true RUN pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \ rm -rv /tmp/* || true WORKDIR /