summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-06-15 10:02:06 -0400
committerBen Gamari <ben@smart-cactus.org>2018-06-15 12:08:43 -0400
commitdbe5370ee4d582a45c7e94500f2acc6bf9e2b7cb (patch)
tree1971815d1da22055c566eb83badd4a49c000eae5 /.circleci
parent2f6069ccf21d7be0e09016896238f417d2492ffa (diff)
downloadhaskell-dbe5370ee4d582a45c7e94500f2acc6bf9e2b7cb.tar.gz
circleci: Remove systemd from Fedora nsswitch configuration
Lest we end up with a non-functional user/group lookup, resulting in #15230.
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/images/x86_64-linux-fedora/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/.circleci/images/x86_64-linux-fedora/Dockerfile b/.circleci/images/x86_64-linux-fedora/Dockerfile
index 761d8ca791..d976950e86 100644
--- a/.circleci/images/x86_64-linux-fedora/Dockerfile
+++ b/.circleci/images/x86_64-linux-fedora/Dockerfile
@@ -4,6 +4,11 @@ ENV LANG C.UTF-8
RUN dnf -y install coreutils binutils which git make automake autoconf gcc perl python3 texinfo xz lbzip2 patch openssh-clients sudo curl zlib-devel sqlite ncurses-compat-libs gmp-devel ncurses-devel gcc-c++ findutils
+# systemd isn't running so remove it from nsswitch.conf
+# Failing to do this will result in testsuite failures due to
+# non-functional user lookup (#15230).
+RUN sed -i -e 's/systemd//g' /etc/nsswitch.conf
+
# Install GHC and cabal
RUN cd /tmp && curl https://downloads.haskell.org/~ghc/8.4.2/ghc-8.4.2-x86_64-deb8-linux.tar.xz | tar -Jx
RUN cd /tmp/ghc-8.4.2 && ./configure --prefix=/opt/ghc/8.4.2