[commit: ghc] master: circleci: Remove systemd from Fedora nsswitch configuration (dbe5370)

git at git.haskell.org git at git.haskell.org
Fri Jun 15 16:09:15 UTC 2018

Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/dbe5370ee4d582a45c7e94500f2acc6bf9e2b7cb/ghc


commit dbe5370ee4d582a45c7e94500f2acc6bf9e2b7cb
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Fri Jun 15 10:02:06 2018 -0400

    circleci: Remove systemd from Fedora nsswitch configuration
    Lest we end up with a non-functional user/group lookup, resulting in #15230.


 .circleci/images/x86_64-linux-fedora/Dockerfile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.circleci/images/x86_64-linux-fedora/Dockerfile b/.circleci/images/x86_64-linux-fedora/Dockerfile
index 761d8ca..d976950 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

More information about the ghc-commits mailing list