mingw: Patch GLIBC due to running in an old environment

Dockerhub appears to use either an old version of docker or something,
and it is incompatible with an Arch Linux guest.
This commit is contained in:
lat9nq 2021-05-31 04:13:50 -04:00
parent ce32fc5a16
commit 87c73e5b5d

View file

@ -1,5 +1,10 @@
FROM archlinux:latest
MAINTAINER yuzu
# Workaround for Arch Linux Docker image failing to build
# From https://stackoverflow.com/questions/66154574
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"
# Add mingw-repo "ownstuff" is a AUR with an up to date mingw64
# Runs pacman -Syu twice in order to work around pacman issues where the first run only updates the current distro packages
# and the second run actually pulls the updates from the repos.