Skip to content

Commit

Permalink
patch glibc even earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
kopp committed Feb 27, 2021
1 parent 0fe8122 commit ac66ff3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
FROM archlinux:latest

# TEMPORARY FIX
# The glibc installed by arch linux is too new for Github Actions, see
# https://stackoverflow.com/a/66184907/2165903
# https://stackoverflow.com/a/66163228/2165903
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"

# install build dependencies
# Note: update (-u) so that the newly installed tools use up-to-date packages.
# For example, gcc (in base-devel) fails if it uses an old glibc (from
# base image).
RUN pacman -Syu --noconfirm base-devel

# TEMPORARY FIX
# The glibc installed by arch linux is too new for Github Actions, see
# https://stackoverflow.com/a/66184907/2165903
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

# patch makepkg to allow running as root; see
# https://www.reddit.com/r/archlinux/comments/6qu4jt/how_to_run_makepkg_in_docker_container_yes_as_root/
RUN sed -i 's,exit $E_ROOT,echo but you know what you do,' /usr/bin/makepkg
Expand Down

0 comments on commit ac66ff3

Please sign in to comment.