chroot-functions.sh: emerge sys-apps/shadow before distcc
authorMatt Turner <mattst88@gentoo.org>
Sun, 26 Jun 2011 17:02:22 +0000 (13:02 -0400)
committerMatt Turner <mattst88@gmail.com>
Sun, 26 Jun 2011 17:05:40 +0000 (13:05 -0400)
distcc uses 'useradd' and will fail in stage2 without shadow.

ChangeLog
targets/support/chroot-functions.sh

index b6df4d53fd3f8a0104131204988f09ef8be9f0cd..0e1b89fa45b50731eff58b24901e6801be7df110 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  26 Jun 2011; Matt Turner <mattst88@gentoo.org>
+  targets/support/chroot-functions.sh:
+  Emerge sys-apps/shadow before distcc
+
   26 Jun 2011; Matt Turner <mattst88@gentoo.org>
   targets/support/chroot-functions.sh:
   Don't run 'distcc-config --install'
index e739f0aa3dde61bbbc86d306812418127b6d5ddd..0b81e657e7b5694ed87cec4667f397d57fcb3d18 100644 (file)
@@ -72,18 +72,19 @@ setup_myfeatures(){
                export clst_myfeatures="${clst_myfeatures} distcc"
                export DISTCC_HOSTS="${clst_distcc_hosts}"
                [ -e /etc/make.conf ] && \
-                       echo 'USE="${USE} -avahi -gtk -gnome"' >> /etc/make.conf
+                       echo 'USE="${USE} -avahi -gtk -gnome -cracklib -pam"' >> /etc/make.conf
                # We install distcc to / on stage1, then use --noreplace, so we need to
                # have some way to check if we need to reinstall distcc without being
                # able to rely on USE, so we check for the distcc user and force a
                # reinstall if it isn't found.
                if [ "$(getent passwd distcc | cut -d: -f1)" != "distcc" ]
                then
+                       clst_root_path=/ run_merge --oneshot --nodeps sys-apps/shadow || exit 1
                        clst_root_path=/ run_merge --oneshot --nodeps sys-devel/distcc || exit 1
                else
                        clst_root_path=/ run_merge --oneshot --nodeps --noreplace sys-devel/distcc || exit 1
                fi
-               sed -i '/USE="${USE} -avahi -gtk -gnome"/d' /etc/make.conf
+               sed -i '/USE="${USE} -avahi -gtk -gnome -cracklib -pam"/d' /etc/make.conf
                mkdir -p /etc/distcc
                echo "${clst_distcc_hosts}" > /etc/distcc/hosts