From: John P. Davis Date: Fri, 4 Jun 2004 14:03:46 +0000 (+0000) Subject: distcc fixups X-Git-Tag: CATALYST_2_0_6_916~987 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be78502dd2fb70978e36076ec5225456cd626ecf;p=catalyst.git distcc fixups git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@386 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index ad712b67..4a0d906f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,21 @@ # ChangeLog for gentoo/src/catalyst # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.57 2004/06/02 06:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.58 2004/06/04 14:03:46 zhen Exp $ + + 04 Jun 2004; John Davis modules/generic_stage_target.py, + targets/embedded/embedded-chroot.sh, + targets/embedded/embedded-preclean-chroot.sh, targets/grp/grp-chroot.sh, + targets/grp/grp-preclean-chroot.sh, targets/grp/grp.sh, + targets/livecd-stage1/livecd-stage1-chroot.sh, + targets/livecd-stage1/livecd-stage1-preclean-chroot.sh, + targets/livecd-stage1/livecd-stage1.sh, targets/stage1/stage1-chroot.sh, + targets/stage1/stage1-preclean1-chroot.sh, targets/stage1/stage1.sh, + targets/stage2/stage2-chroot.sh, targets/stage2/stage2-preclean-chroot.sh, + targets/stage3/stage3-chroot.sh, targets/stage3/stage3-preclean-chroot.sh, + targets/tinderbox/tinderbox-chroot.sh, + targets/tinderbox/tinderbox-preclean-chroot.sh, + targets/tinderbox/tinderbox.sh: + Fixes bug 51603, a lot of distcc fixups (has to do w/ bind mounts and such) 02 Jun 2004; John Davis modules/snapshot_target.py: Fixes to address bugs #51072 and #52045. The snapshot logic was tweaked to be diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py index af5c2126..4502941c 100644 --- a/modules/generic_stage_target.py +++ b/modules/generic_stage_target.py @@ -1,6 +1,6 @@ # Distributed under the GNU General Public License version 2 # Copyright 2003-2004 Gentoo Technologies, Inc. -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.1 2004/05/17 01:21:17 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/generic_stage_target.py,v 1.2 2004/06/04 14:03:46 zhen Exp $ """ This class does all of the chroot setup, copying of files, etc. It is @@ -231,6 +231,12 @@ class generic_stage_target(generic_target): else: myf.write('CXXFLAGS="${CFLAGS}"\n') myf.close() + + #create entry in /etc/passwd for distcc user + if self.settings.has_key("DISTCC"): + myf=open(self.settings["chroot_path"]+"/etc/passwd","a") + myf.write("distcc:x:7980:2:distccd:/dev/null:/bin/false\n") + myf.close() def clean(self): destpath=self.settings["chroot_path"] @@ -246,6 +252,7 @@ class generic_stage_target(generic_target): for x in cleanables: print "Cleaning chroot: "+x+"..." cmd("rm -rf "+destpath+x,"Couldn't clean "+x) + if self.settings["target"]=="livecd-stage2": if self.settings.has_key("livecd/empty"): if type(self.settings["livecd/empty"])==types.StringType: @@ -273,6 +280,17 @@ class generic_stage_target(generic_target): cmd("/bin/bash "+self.settings["sharedir"]+"/targets/"+self.settings["target"]+"/"+self.settings["target"]+".sh clean","clean script failed.") def preclean(self): + #cleanup after distcc + if self.settings.has_key("DISTCC"): + myf=open(self.settings["chroot_path"]+"/etc/passwd","r") + outf=open(self.settings["chroot_path"]+"/tmp/out.txt","w") + for line in myf: + if not line.startswith("distcc:"): + outf.write(line) + myf.close() + outf.close() + os.rename(self.settings["chroot_path"]+"/tmp/out.txt",self.settings["chroot_path"]+"/etc/passwd") + cmd("/usr/bin/pkill -U 7980","could not kill distcc process(es)") try: cmd("/bin/bash "+self.settings["sharedir"]+"/targets/"+self.settings["target"]+"/"+self.settings["target"]+".sh preclean","preclean script failed.") except: diff --git a/targets/embedded/embedded-chroot.sh b/targets/embedded/embedded-chroot.sh index 3347505d..0f4db172 100755 --- a/targets/embedded/embedded-chroot.sh +++ b/targets/embedded/embedded-chroot.sh @@ -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/embedded/embedded-chroot.sh,v 1.3 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.4 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -23,7 +23,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gtk -gnome" emerge --oneshot --nodeps distcc || exit 1 - 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 diff --git a/targets/embedded/embedded-preclean-chroot.sh b/targets/embedded/embedded-preclean-chroot.sh index f1d99e98..c2905e55 100755 --- a/targets/embedded/embedded-preclean-chroot.sh +++ b/targets/embedded/embedded-preclean-chroot.sh @@ -1,13 +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/embedded/embedded-preclean-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-preclean-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile - -if [ -n "${clst_DISTCC}" ] -then - pkill -signal 9 -U 7980 - userdel distcc || exit 1 -fi diff --git a/targets/grp/grp-chroot.sh b/targets/grp/grp-chroot.sh index b6e51d79..6dccf316 100755 --- a/targets/grp/grp-chroot.sh +++ b/targets/grp/grp-chroot.sh @@ -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/grp-chroot.sh,v 1.2 2004/04/14 14:27:38 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/grp-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -24,7 +24,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gnome -gtk" emerge --oneshot --nodeps distcc || exit 1 - 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 @@ -48,16 +47,7 @@ else unset DISTDIR #don't grab MS core fonts, etc. export USE="${USE} bindist" - #first grab to the normal distdir - ## why don't we just set distdir first and fetch once??? DISTDIR="/tmp/grp/${clst_grp_target}" emerge --fetchonly ${clst_grp_packages} || exit 1 - #export DISTDIR="/tmp/grp/${clst_grp_target}" - #export OLD_MIRRORS="${GENTOO_MIRRORS}" - #export GENTOO_MIRRORS="/usr/portage/distfiles" - #now grab them again, but with /usr/portage/distfiles as the primary mirror (local grab) - #emerge --fetchonly ${clst_grp_packages} || exit 1 - #restore original GENTOO_MIRRORS setting, if any - #export GENTOO_MIRRORS="${OLD_MIRRORS}" unset PKGDIR fi diff --git a/targets/grp/grp-preclean-chroot.sh b/targets/grp/grp-preclean-chroot.sh index 48943530..e14982d1 100755 --- a/targets/grp/grp-preclean-chroot.sh +++ b/targets/grp/grp-preclean-chroot.sh @@ -1,13 +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/grp-preclean-chroot.sh,v 1.2 2004/04/14 14:27:38 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/grp-preclean-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile - -if [ -n "${clst_DISTCC}" ] -then - pkill -signal 9 -U 7980 - userdel distcc || exit 1 -fi diff --git a/targets/grp/grp.sh b/targets/grp/grp.sh index 521dcd9f..16da68f2 100755 --- a/targets/grp/grp.sh +++ b/targets/grp/grp.sh @@ -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.16 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/Attic/grp.sh,v 1.17 2004/06/04 14:03:46 zhen Exp $ case $1 in enter) @@ -20,9 +20,10 @@ case $1 in ;; preclean) - cp ${clst_sharedir}/targets/grp/grp-preclean-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/grp-preclean-chroot.sh || exit 1 - rm -f ${clst_chroot_path}/tmp/grp-preclean-chroot.sh + #cp ${clst_sharedir}/targets/grp/grp-preclean-chroot.sh ${clst_chroot_path}/tmp + #${clst_CHROOT} ${clst_chroot_path} /tmp/grp-preclean-chroot.sh || exit 1 + #rm -f ${clst_chroot_path}/tmp/grp-preclean-chroot.sh + exit 0 ;; clean) diff --git a/targets/livecd-stage1/livecd-stage1-chroot.sh b/targets/livecd-stage1/livecd-stage1-chroot.sh index 5e77e0b8..2f6abc1b 100755 --- a/targets/livecd-stage1/livecd-stage1-chroot.sh +++ b/targets/livecd-stage1/livecd-stage1-chroot.sh @@ -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/livecd-stage1-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/livecd-stage1-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -24,7 +24,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gnome -gtk" emerge --oneshot --nodeps distcc || exit 1 - 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 diff --git a/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh b/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh index 04799089..2c356406 100755 --- a/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh +++ b/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh @@ -1,13 +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/livecd-stage1-preclean-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile - -if [ -n "${clst_DISTCC}" ] -then - pkill -signal 9 -U 7980 - userdel distcc || exit 1 -fi diff --git a/targets/livecd-stage1/livecd-stage1.sh b/targets/livecd-stage1/livecd-stage1.sh index 03f3e7dd..c3b1bba4 100755 --- a/targets/livecd-stage1/livecd-stage1.sh +++ b/targets/livecd-stage1/livecd-stage1.sh @@ -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.11 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/Attic/livecd-stage1.sh,v 1.12 2004/06/04 14:03:46 zhen Exp $ case $1 in enter) @@ -16,9 +16,10 @@ case $1 in ;; preclean) - cp ${clst_sharedir}/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/livecd-stage1-preclean-chroot.sh || exit 1 - rm -f ${clst_chroot_path}/tmp/livecd-stage1-preclean-chroot.sh + #cp ${clst_sharedir}/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh ${clst_chroot_path}/tmp + #${clst_CHROOT} ${clst_chroot_path} /tmp/livecd-stage1-preclean-chroot.sh || exit 1 + #rm -f ${clst_chroot_path}/tmp/livecd-stage1-preclean-chroot.sh + exit 0 ;; clean) diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh index 6bb56a2a..931b7db4 100755 --- a/targets/stage1/stage1-chroot.sh +++ b/targets/stage1/stage1-chroot.sh @@ -1,7 +1,7 @@ #!/bin/bash # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.15 2004/05/11 20:03:49 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.16 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -24,7 +24,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gtk -gnome" emerge --oneshot --nodeps distcc || exit 1 - 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 diff --git a/targets/stage1/stage1-preclean1-chroot.sh b/targets/stage1/stage1-preclean1-chroot.sh index 02f6f24d..1b9d0296 100755 --- a/targets/stage1/stage1-preclean1-chroot.sh +++ b/targets/stage1/stage1-preclean1-chroot.sh @@ -1,13 +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-preclean1-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1-preclean1-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile - -if [ -n "${clst_DISTCC}" ] -then - pkill -signal 9 -U 7980 - userdel distcc || exit 1 -fi diff --git a/targets/stage1/stage1.sh b/targets/stage1/stage1.sh index db34b91b..b002a6e4 100755 --- a/targets/stage1/stage1.sh +++ b/targets/stage1/stage1.sh @@ -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.12 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1.sh,v 1.13 2004/06/04 14:03:46 zhen Exp $ case $1 in enter) @@ -27,9 +27,9 @@ case $1 in #preclean runs with bind mounts active -- for running any commands inside chroot #first we cleanup after ourselves - cp ${clst_sharedir}/targets/stage1/stage1-preclean1-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/stage1-preclean1-chroot.sh || exit 1 - rm -f ${clst_chroot_path}/tmp/stage1-preclean1-chroot.sh + #cp ${clst_sharedir}/targets/stage1/stage1-preclean1-chroot.sh ${clst_chroot_path}/tmp + #${clst_CHROOT} ${clst_chroot_path} /tmp/stage1-preclean1-chroot.sh || exit 1 + #rm -f ${clst_chroot_path}/tmp/stage1-preclean1-chroot.sh #second we do the gcc magic cp ${clst_sharedir}/targets/stage1/stage1-preclean2-chroot.sh ${clst_chroot_path}/tmp/stage1root/tmp diff --git a/targets/stage2/stage2-chroot.sh b/targets/stage2/stage2-chroot.sh index cac3fab8..931404bf 100755 --- a/targets/stage2/stage2-chroot.sh +++ b/targets/stage2/stage2-chroot.sh @@ -1,7 +1,7 @@ #!/bin/sh # 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/stage2-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -24,7 +24,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gnome -gtk" emerge --oneshot --nodeps distcc || exit 1 - 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 diff --git a/targets/stage2/stage2-preclean-chroot.sh b/targets/stage2/stage2-preclean-chroot.sh index ec45d9d3..29216bee 100755 --- a/targets/stage2/stage2-preclean-chroot.sh +++ b/targets/stage2/stage2-preclean-chroot.sh @@ -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/stage2-preclean-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-preclean-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -16,5 +16,4 @@ fi if [ -n "${clst_DISTCC}" ] then emerge -C sys-devel/distcc || exit 1 - userdel distcc || exit 1 fi diff --git a/targets/stage3/stage3-chroot.sh b/targets/stage3/stage3-chroot.sh index fa223cbc..68f9b7ba 100755 --- a/targets/stage3/stage3-chroot.sh +++ b/targets/stage3/stage3-chroot.sh @@ -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.3 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-chroot.sh,v 1.4 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -24,7 +24,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gnome -gtk" emerge --oneshot --nodeps distcc || exit 1 - 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 diff --git a/targets/stage3/stage3-preclean-chroot.sh b/targets/stage3/stage3-preclean-chroot.sh index 220d0bd8..fd5dfab2 100755 --- a/targets/stage3/stage3-preclean-chroot.sh +++ b/targets/stage3/stage3-preclean-chroot.sh @@ -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.2 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-preclean-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -15,7 +15,5 @@ fi if [ -n "${clst_DISTCC}" ] then - pkill -signal 9 -U 7980 emerge -C sys-devel/distcc || exit 1 - userdel distcc || exit 1 fi diff --git a/targets/tinderbox/tinderbox-chroot.sh b/targets/tinderbox/tinderbox-chroot.sh index 0b91d40f..f6655db4 100755 --- a/targets/tinderbox/tinderbox-chroot.sh +++ b/targets/tinderbox/tinderbox-chroot.sh @@ -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/tinderbox/tinderbox-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/tinderbox-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -24,7 +24,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gnome -gtk" emerge --oneshot --nodeps distcc || exit 1 - 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 diff --git a/targets/tinderbox/tinderbox-preclean-chroot.sh b/targets/tinderbox/tinderbox-preclean-chroot.sh index b60b9b26..182101b8 100755 --- a/targets/tinderbox/tinderbox-preclean-chroot.sh +++ b/targets/tinderbox/tinderbox-preclean-chroot.sh @@ -1,13 +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/tinderbox/tinderbox-preclean-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/tinderbox-preclean-chroot.sh,v 1.3 2004/06/04 14:03:46 zhen Exp $ /usr/sbin/env-update source /etc/profile - -if [ -n "${clst_DISTCC}" ] -then - pkill -signal 9 -U 7980 - userdel distcc || exit 1 -fi diff --git a/targets/tinderbox/tinderbox.sh b/targets/tinderbox/tinderbox.sh index 14484502..9bdc88c4 100755 --- a/targets/tinderbox/tinderbox.sh +++ b/targets/tinderbox/tinderbox.sh @@ -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/tinderbox/Attic/tinderbox.sh,v 1.8 2004/04/14 22:35:29 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/Attic/tinderbox.sh,v 1.9 2004/06/04 14:03:46 zhen Exp $ case $1 in run) @@ -13,9 +13,10 @@ case $1 in ;; preclean) - cp ${clst_sharedir}/targets/grp/tinderbox-preclean-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/tinderbox-preclean-chroot.sh || exit 1 - rm -f ${clst_chroot_path}/tmp/tinderbox-preclean-chroot.sh + #cp ${clst_sharedir}/targets/grp/tinderbox-preclean-chroot.sh ${clst_chroot_path}/tmp + #${clst_CHROOT} ${clst_chroot_path} /tmp/tinderbox-preclean-chroot.sh || exit 1 + #rm -f ${clst_chroot_path}/tmp/tinderbox-preclean-chroot.sh + exit 0 ;; clean)