summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-02-10 19:56:31 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-02-10 19:58:04 +0100
commit478e4de7bd1f26bebdcdc166d5369b2b5142c3e2 (patch)
tree08737c747d297552add785beaaa78474ba881d0a /scripts
parent277eb3012eb84587df777c7d99b4e7cede47ee5c (diff)
downloadqutebrowser-478e4de7bd1f26bebdcdc166d5369b2b5142c3e2.tar.gz
qutebrowser-478e4de7bd1f26bebdcdc166d5369b2b5142c3e2.zip
ci: Add workaround for Archlinux/Docker issue
See https://github.com/actions/virtual-environments/issues/2658 Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dev/ci/docker/Dockerfile.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/dev/ci/docker/Dockerfile.j2 b/scripts/dev/ci/docker/Dockerfile.j2
index d3fc82793..03e5684ad 100644
--- a/scripts/dev/ci/docker/Dockerfile.j2
+++ b/scripts/dev/ci/docker/Dockerfile.j2
@@ -1,5 +1,12 @@
FROM archlinux:latest
+# 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
+RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
+ curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
+ bsdtar -C / -xvf "$patched_glibc"
+
{% if unstable %}
RUN sed -i '/^# after the header/a[kde-unstable]\nInclude = /etc/pacman.d/mirrorlist\n\n[testing]\nInclude = /etc/pacman.d/mirrorlist' /etc/pacman.conf
{% endif %}