distcc cleanups
authorJohn P. Davis <zhen@gentoo.org>
Wed, 14 Apr 2004 00:17:59 +0000 (00:17 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Wed, 14 Apr 2004 00:17:59 +0000 (00:17 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@351 d1e1f19c-881f-0410-ab34-b69fee027534

targets/embedded/embedded-chroot.sh
targets/grp/grp.sh
targets/livecd-stage1/livecd-stage1.sh
targets/stage1/stage1.sh
targets/stage2/stage2.sh
targets/stage3/stage3-chroot.sh
targets/stage3/stage3-preclean-chroot.sh
targets/stage3/stage3.sh
targets/tinderbox/tinderbox.sh

index 16112308db8f153228d26759fd870b588513bd4d..e39a4c692c2e0de354f9f20e93cc500d900db040 100755 (executable)
@@ -1,17 +1,11 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.1 2004/04/12 14:38:26 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.2 2004/04/14 00:17:59 zhen Exp $
 
 /usr/sbin/env-update
 source /etc/profile
 
-if [ -n "${clst_ENVSCRIPT}" ]
-then
-       source /tmp/envscript
-       rm -f /tmp/envscript
-fi
-
 if [ -n "${clst_CCACHE}" ]
 then
        export clst_myfeatures="${clst_myfeatures} ccache"
index ff506c0340fe5ce893f2daf00d60c74dc44ecae7..893636726b52f5f72f4ab711561db999cf6aa08c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/Attic/grp.sh,v 1.13 2004/04/12 14:38:26 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/Attic/grp.sh,v 1.14 2004/04/14 00:17:59 zhen Exp $
 
 case $1 in
        enter)
@@ -14,11 +14,6 @@ case $1 in
                export clst_grp_target=$1
                shift
                                
-               if [ -n "${clst_ENVSCRIPT}" ]
-               then
-                       cp ${clst_ENVSCRIPT} ${clst_chroot_path}/tmp/envscript
-               fi
                cp ${clst_sharedir}/targets/grp/grp-chroot.sh ${clst_chroot_path}/tmp
                clst_grp_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/grp-chroot.sh
                rm -f ${clst_chroot_path}/tmp/grp-chroot.sh
index feecc217779b3abbe4299d59a5def0382829fcad..3aabbfff55413a9c6369c4bcacdd127fcd1721f3 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/Attic/livecd-stage1.sh,v 1.9 2004/04/12 14:38:26 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/Attic/livecd-stage1.sh,v 1.10 2004/04/14 00:17:59 zhen Exp $
 
 case $1 in
        enter)
@@ -10,11 +10,6 @@ case $1 in
        run)
                shift
        
-               if [ -n "${clst_ENVSCRIPT}" ]
-               then
-                       cp "${clst_ENVSCRIPT}" ${clst_chroot_path}/tmp/envscript
-               fi
-
                cp ${clst_sharedir}/targets/livecd-stage1/livecd-stage1-chroot.sh ${clst_chroot_path}/tmp
                clst_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/livecd-stage1-chroot.sh
                rm -f ${clst_chroot_path}/tmp/livecd-stage1-chroot.sh
index 93058c47bc081fec8299ab663410138a331d0998..dcf4e037c8ece1105701b0d85ee291b4f548b52e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1.sh,v 1.10 2004/04/12 14:38:26 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1.sh,v 1.11 2004/04/14 00:17:59 zhen Exp $
 
 case $1 in
        enter)
@@ -9,11 +9,6 @@ case $1 in
        ;;
 
        run)
-               if [ -n "${clst_ENVSCRIPT}" ]
-               then
-                       cp "${clst_ENVSCRIPT}" ${clst_chroot_path}/tmp/envscript
-               fi      
-                       
                cp ${clst_sharedir}/targets/stage1/stage1-chroot.sh ${clst_chroot_path}/tmp
                cp ${clst_sharedir}/targets/stage1/build.sh ${clst_chroot_path}/tmp
                
index 5a0ebf86a59a5a02933efea6f79a834944df86fa..39712a28eeaf32c355c5b9cf05881f4593becc80 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.13 2004/04/13 20:06:41 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.14 2004/04/14 00:17:59 zhen Exp $
 
 case $1 in
        enter)
@@ -10,11 +10,6 @@ case $1 in
        ;;
 
        run)
-               if [ -n "${clst_ENVSCRIPT}" ]
-               then
-                       cp "${clst_ENVSCRIPT}" ${clst_chroot_path}/tmp/envscript
-               fi
-
                cp ${clst_sharedir}/targets/stage2/stage2-chroot.sh ${clst_chroot_path}/tmp
                ${clst_CHROOT} ${clst_chroot_path} /tmp/stage2-chroot.sh
                rm -f ${clst_chroot_path}/tmp/stage2-chroot.sh
index c05211535adbc7f00083f971f701fdbbd01f5443..310d1c99c57ec76fc3c4a2e426d2f759bb1baf67 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-chroot.sh,v 1.1 2004/04/12 14:39:35 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-chroot.sh,v 1.2 2004/04/14 00:17:59 zhen Exp $
 
 /usr/sbin/env-update
 source /etc/profile
@@ -24,7 +24,9 @@ then
        export DISTCC_HOSTS="${clst_distcc_hosts}"
 
        USE="-gnome -gtk" emerge --oneshot --nodeps distcc || exit 1
-       echo "distcc:x:240:2:distccd:/dev/null:/bin/false" >> /etc/passwd
+       cat /etc/passwd
+       sleep 10
+       echo "distcc:x:7980:2:distccd:/dev/null:/bin/false" >> /etc/passwd
        /usr/bin/distcc-config --install 2>&1 > /dev/null
        /usr/bin/distccd 2>&1 > /dev/null
 fi
index 21031c0e9517be9cdfbdfc4c1b113aea2b734530..220d0bd80972c022719f59136339e8e6fbacf77b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-preclean-chroot.sh,v 1.1 2004/04/12 14:39:35 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-preclean-chroot.sh,v 1.2 2004/04/14 00:17:59 zhen Exp $
 
 /usr/sbin/env-update
 source /etc/profile
@@ -15,7 +15,7 @@ fi
 
 if [ -n "${clst_DISTCC}" ]
 then
-       killall -9 distccd
+       pkill -signal 9 -U 7980
        emerge -C sys-devel/distcc || exit 1
        userdel distcc || exit 1
 fi
index c1e84c475236aa05ec9fb8cb06d88e2cef352e2a..4d6eb537410d85c69ce5cb1e051abb65c7939dda 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/Attic/stage3.sh,v 1.13 2004/04/12 14:38:26 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/Attic/stage3.sh,v 1.14 2004/04/14 00:17:59 zhen Exp $
 
 case $1 in
        enter)
@@ -9,11 +9,6 @@ case $1 in
        ;;
 
        run)
-               if [ -n "${clst_ENVSCRIPT}" ]
-               then
-                       cp "${clstr_ENVSCRIPT}" ${clst_chroot_path}/tmp/envscript
-               fi
-
                cp ${clst_sharedir}/targets/stage3/stage3-chroot.sh ${clst_chroot_path}/tmp     
                ${clst_CHROOT} ${clst_chroot_path} /tmp/stage3-chroot.sh
                rm -f ${clst_chroot_path}/tmp/stage3-chroot.sh
index 7cfda32f7becebaa7998c80d52195f2e86d9a22f..0a65965dc6838f15f5c538ac93ef3dc105b957ee 100755 (executable)
@@ -1,17 +1,12 @@
 #!/bin/bash
 # Copyright 1999-2003 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/Attic/tinderbox.sh,v 1.6 2004/04/12 14:38:26 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/Attic/tinderbox.sh,v 1.7 2004/04/14 00:17:59 zhen Exp $
 
 case $1 in
        run)
                shift
 
-               if [ -n "${clst_ENVSCRIPT}" ]
-               then
-                       cp "${clst_ENVSCRIPT}" ${clst_chroot_path}/tmp/envscript
-               fi
-
                cp ${clst_sharedir}/targets/tinderbox/tinderbox-chroot.sh ${clst_chroot_path}/tmp
                clst_tinderbox_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/tinderbox-chroot.sh
                rm -f ${clst_chroot_path}/tmp/tinderbox-chroot.sh