From 829c5d9e10000548e07639d022ba6f0a5e5f61dc Mon Sep 17 00:00:00 2001 From: "John P. Davis" Date: Wed, 14 Apr 2004 22:35:29 +0000 Subject: [PATCH] bugfixes for error handling, envscript, and distcc git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@357 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 16 +++++++++++++++- targets/embedded/embedded-chroot.sh | 9 +++++++-- targets/embedded/embedded-preclean-chroot.sh | 4 ++-- targets/embedded/embedded.sh | 11 ++--------- targets/grp/grp.sh | 17 ++++------------- targets/livecd-stage1/livecd-stage1-chroot.sh | 6 +++--- .../livecd-stage1-preclean-chroot.sh | 4 ++-- targets/livecd-stage1/livecd-stage1.sh | 11 ++++------- targets/stage1/stage1-chroot.sh | 6 +++--- targets/stage1/stage1-preclean1-chroot.sh | 4 ++-- targets/stage1/stage1.sh | 11 ++++------- targets/stage2/stage2-chroot.sh | 6 +++--- targets/stage2/stage2-preclean-chroot.sh | 3 +-- targets/stage2/stage2.sh | 10 +++------- targets/stage3/stage3-chroot.sh | 6 ++---- targets/stage3/stage3.sh | 8 +++----- targets/tinderbox/tinderbox-chroot.sh | 6 +++--- targets/tinderbox/tinderbox-preclean-chroot.sh | 4 ++-- targets/tinderbox/tinderbox.sh | 10 +++------- 19 files changed, 68 insertions(+), 84 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0e7179b5..da4114e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,20 @@ # 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.41 2004/04/13 20:04:32 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.42 2004/04/14 22:35:29 zhen Exp $ + + 14 Apr 2004; John Davis + targets/embedded/embedded-chroot.sh, + targets/embedded/embedded-preclean-chroot.sh, targets/embedded/embedded.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/stage2/stage2.sh, targets/stage3/stage3-chroot.sh, + targets/stage3/stage3.sh, targets/tinderbox/tinderbox-chroot.sh, + targets/tinderbox/tinderbox-preclean-chroot.sh, + targets/tinderbox/tinderbox.sh: + fix for bug #47733 - fixes for distcc and an envscript bugfix 13 Apr 2004; John Davis modules/targets.py: fix for bug 47626 diff --git a/targets/embedded/embedded-chroot.sh b/targets/embedded/embedded-chroot.sh index e39a4c69..3347505d 100755 --- a/targets/embedded/embedded-chroot.sh +++ b/targets/embedded/embedded-chroot.sh @@ -1,11 +1,16 @@ #!/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.2 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.3 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile +if [ -f /tmp/envscript ] +then + source /tmp/envscript +fi + if [ -n "${clst_CCACHE}" ] then export clst_myfeatures="${clst_myfeatures} ccache" @@ -18,7 +23,7 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gtk -gnome" emerge --oneshot --nodeps distcc || exit 1 - echo "distcc:x:240:2:distccd:/dev/null:/bin/false" >> /etc/passwd + 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 cd1e6c3b..f1d99e98 100755 --- a/targets/embedded/embedded-preclean-chroot.sh +++ b/targets/embedded/embedded-preclean-chroot.sh @@ -1,13 +1,13 @@ #!/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.1 2004/04/12 14:38:26 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-preclean-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile if [ -n "${clst_DISTCC}" ] then - killall -9 distccd + pkill -signal 9 -U 7980 userdel distcc || exit 1 fi diff --git a/targets/embedded/embedded.sh b/targets/embedded/embedded.sh index 61bc0291..22ff2eab 100644 --- a/targets/embedded/embedded.sh +++ b/targets/embedded/embedded.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/Attic/embedded.sh,v 1.3 2004/04/12 14:38:26 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/Attic/embedded.sh,v 1.4 2004/04/14 22:35:29 zhen Exp $ case $1 in enter) @@ -9,16 +9,9 @@ case $1 in ;; run) - if [ -n "${clst_ENVSCRIPT}" ] - then - cp "${clst_ENVSCRIPT}" ${clst_chroot_path}/tmp/envscript - fi - cp ${clst_sharedir}/targets/embedded/embedded-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/embedded-chroot.sh + ${clst_CHROOT} ${clst_chroot_path} /tmp/embedded-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/embedded-chroot.sh - - [ $? -ne 0 ] && exit 1 ;; preclean) diff --git a/targets/grp/grp.sh b/targets/grp/grp.sh index be0d7659..521dcd9f 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.15 2004/04/14 14:27:38 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/Attic/grp.sh,v 1.16 2004/04/14 22:35:29 zhen Exp $ case $1 in enter) @@ -15,23 +15,14 @@ case $1 in shift cp ${clst_sharedir}/targets/grp/grp-chroot.sh ${clst_chroot_path}/tmp - - clst_grp_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/grp-chroot.sh - [ $? -ne 0 ] && exit 1 - + clst_grp_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/grp-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/grp-chroot.sh - - ;; + ;; preclean) cp ${clst_sharedir}/targets/grp/grp-preclean-chroot.sh ${clst_chroot_path}/tmp - - ${clst_CHROOT} ${clst_chroot_path} /tmp/grp-preclean-chroot.sh - [ $? -ne 0 ] && exit 1 - + ${clst_CHROOT} ${clst_chroot_path} /tmp/grp-preclean-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/grp-preclean-chroot.sh - - ;; clean) diff --git a/targets/livecd-stage1/livecd-stage1-chroot.sh b/targets/livecd-stage1/livecd-stage1-chroot.sh index bc164d10..5e77e0b8 100755 --- a/targets/livecd-stage1/livecd-stage1-chroot.sh +++ b/targets/livecd-stage1/livecd-stage1-chroot.sh @@ -1,12 +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/livecd-stage1/livecd-stage1-chroot.sh,v 1.1 2004/04/12 14:38:26 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/livecd-stage1-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile -if [ -n "${clst_ENVSCRIPT}" ] +if [ -f /tmp/envscript ] then source /tmp/envscript rm -f /tmp/envscript @@ -24,7 +24,7 @@ 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 + 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 656c6c60..04799089 100755 --- a/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh +++ b/targets/livecd-stage1/livecd-stage1-preclean-chroot.sh @@ -1,13 +1,13 @@ #!/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.1 2004/04/12 14:38:26 zhen Exp $ +# $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 $ /usr/sbin/env-update source /etc/profile if [ -n "${clst_DISTCC}" ] then - killall -9 distccd + 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 3aabbfff..03f3e7dd 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.10 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/Attic/livecd-stage1.sh,v 1.11 2004/04/14 22:35:29 zhen Exp $ case $1 in enter) @@ -11,17 +11,14 @@ case $1 in shift 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 + clst_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/livecd-stage1-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/livecd-stage1-chroot.sh - [ $? -ne 0 ] && exit 1 ;; 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 - rm -f ${clst_chroot_path}/tmp/livecd-stage1-preclean-chroot.sh - - [ $? -ne 0 ] && exit 1 + ${clst_CHROOT} ${clst_chroot_path} /tmp/livecd-stage1-preclean-chroot.sh || exit 1 + rm -f ${clst_chroot_path}/tmp/livecd-stage1-preclean-chroot.sh ;; clean) diff --git a/targets/stage1/stage1-chroot.sh b/targets/stage1/stage1-chroot.sh index 367054d4..197534c8 100755 --- a/targets/stage1/stage1-chroot.sh +++ b/targets/stage1/stage1-chroot.sh @@ -1,12 +1,12 @@ #!/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.12 2004/04/12 14:38:26 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.13 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile -if [ -n "${clst_ENVSCRIPT}" ] +if [ -f /tmp/envscript ] then source /tmp/envscript rm -f /tmp/envscript @@ -24,7 +24,7 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gtk -gnome" emerge --oneshot --nodeps distcc || exit 1 - echo "distcc:x:240:2:distccd:/dev/null:/bin/false" >> /etc/passwd + 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 2c67bcb7..02f6f24d 100755 --- a/targets/stage1/stage1-preclean1-chroot.sh +++ b/targets/stage1/stage1-preclean1-chroot.sh @@ -1,13 +1,13 @@ #!/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.1 2004/04/12 14:38:26 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1-preclean1-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile if [ -n "${clst_DISTCC}" ] then - /bin/killall -9 distccd + pkill -signal 9 -U 7980 userdel distcc || exit 1 fi diff --git a/targets/stage1/stage1.sh b/targets/stage1/stage1.sh index dcf4e037..db34b91b 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.11 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/Attic/stage1.sh,v 1.12 2004/04/14 22:35:29 zhen Exp $ case $1 in enter) @@ -20,8 +20,7 @@ case $1 in cp -a ${clst_chroot_path}/etc/make.profile ${clst_chroot_path}/tmp/stage1root/etc # enter chroot, execute our build script - ${clst_CHROOT} ${clst_chroot_path} /tmp/stage1-chroot.sh /tmp/stage1root - [ $? -ne 0 ] && exit 1 + ${clst_CHROOT} ${clst_chroot_path} /tmp/stage1-chroot.sh /tmp/stage1root || exit 1 ;; preclean) @@ -29,15 +28,13 @@ case $1 in #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 + ${clst_CHROOT} ${clst_chroot_path} /tmp/stage1-preclean1-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/stage1-preclean1-chroot.sh - [ $? -ne 0 ] && exit 1 #second we do the gcc magic cp ${clst_sharedir}/targets/stage1/stage1-preclean2-chroot.sh ${clst_chroot_path}/tmp/stage1root/tmp - ${clst_CHROOT} ${clst_chroot_path}/tmp/stage1root /tmp/stage1-preclean2-chroot.sh + ${clst_CHROOT} ${clst_chroot_path}/tmp/stage1root /tmp/stage1-preclean2-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/stage1root/tmp/stage1-preclean2-chroot.sh - [ $? -ne 0 ] && exit 1 ;; clean) diff --git a/targets/stage2/stage2-chroot.sh b/targets/stage2/stage2-chroot.sh index 4be1f192..cac3fab8 100755 --- a/targets/stage2/stage2-chroot.sh +++ b/targets/stage2/stage2-chroot.sh @@ -1,12 +1,12 @@ #!/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.1 2004/04/12 14:38:26 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile -if [ -n ${clst_ENVSCRIPT} ] +if [ -f /tmp/envscript ] then source /tmp/envscript rm -f /tmp/envscript @@ -24,7 +24,7 @@ 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 + 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 f92d3dd8..ec45d9d3 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.1 2004/04/12 14:38:26 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/stage2-preclean-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile @@ -15,7 +15,6 @@ fi if [ -n "${clst_DISTCC}" ] then - killall -9 distccd emerge -C sys-devel/distcc || exit 1 userdel distcc || exit 1 fi diff --git a/targets/stage2/stage2.sh b/targets/stage2/stage2.sh index 39712a28..6b721037 100755 --- a/targets/stage2/stage2.sh +++ b/targets/stage2/stage2.sh @@ -1,27 +1,23 @@ #!/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.14 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.15 2004/04/14 22:35:29 zhen Exp $ case $1 in enter) - ${clst_CHROOT} ${clst_chroot_path} ;; run) cp ${clst_sharedir}/targets/stage2/stage2-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/stage2-chroot.sh + ${clst_CHROOT} ${clst_chroot_path} /tmp/stage2-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/stage2-chroot.sh - [ $? -ne 0 ] && exit 1 ;; preclean) cp ${clst_sharedir}/targets/stage2/stage2-preclean-chroot.sh ${clst_chroot_path}/tmp - #preclean runs with bind-mounts active - $clst_CHROOT $clst_chroot_path /tmp/stage2-preclean-chroot.sh + ${clst_CHROOT} ${clst_chroot_path} /tmp/stage2-preclean-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/stage2-preclean-chroot.sh - [ $? -ne 0 ] && exit 1 ;; clean) diff --git a/targets/stage3/stage3-chroot.sh b/targets/stage3/stage3-chroot.sh index 310d1c99..fa223cbc 100755 --- a/targets/stage3/stage3-chroot.sh +++ b/targets/stage3/stage3-chroot.sh @@ -1,12 +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/stage3/stage3-chroot.sh,v 1.2 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-chroot.sh,v 1.3 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile -if [ -n ${clst_ENVSCRIPT} ] +if [ -f /tmp/envscript ] then source /tmp/envscript rm -f /tmp/envscript @@ -24,8 +24,6 @@ then export DISTCC_HOSTS="${clst_distcc_hosts}" USE="-gnome -gtk" emerge --oneshot --nodeps distcc || exit 1 - 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 diff --git a/targets/stage3/stage3.sh b/targets/stage3/stage3.sh index 4d6eb537..164d1643 100755 --- a/targets/stage3/stage3.sh +++ b/targets/stage3/stage3.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/Attic/stage3.sh,v 1.14 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/Attic/stage3.sh,v 1.15 2004/04/14 22:35:29 zhen Exp $ case $1 in enter) @@ -10,16 +10,14 @@ case $1 in run) cp ${clst_sharedir}/targets/stage3/stage3-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/stage3-chroot.sh + ${clst_CHROOT} ${clst_chroot_path} /tmp/stage3-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/stage3-chroot.sh - [ $? -ne 0 ] && exit 1 ;; preclean) cp ${clst_sharedir}/targets/stage3/stage3-preclean-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/stage3-preclean-chroot.sh + ${clst_CHROOT} ${clst_chroot_path} /tmp/stage3-preclean-chroot.sh || exit 1 rm -rf ${clst_chroot_path}/tmp/stage3-preclean-chroot.sh - [ $? -ne 0 ] && exit 1 ;; clean) diff --git a/targets/tinderbox/tinderbox-chroot.sh b/targets/tinderbox/tinderbox-chroot.sh index a9d2dba5..0b91d40f 100755 --- a/targets/tinderbox/tinderbox-chroot.sh +++ b/targets/tinderbox/tinderbox-chroot.sh @@ -1,12 +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/tinderbox-chroot.sh,v 1.1 2004/04/12 14:39:35 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/tinderbox-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile -if [ -n "${clst_ENVSCRIPT}" ] +if [ -f /tmp/envscript ] then source /tmp/envscript rm -f /tmp/envscript @@ -24,7 +24,7 @@ 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 + 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 8269588c..b60b9b26 100755 --- a/targets/tinderbox/tinderbox-preclean-chroot.sh +++ b/targets/tinderbox/tinderbox-preclean-chroot.sh @@ -1,13 +1,13 @@ #!/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.1 2004/04/12 14:39:35 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/tinderbox-preclean-chroot.sh,v 1.2 2004/04/14 22:35:29 zhen Exp $ /usr/sbin/env-update source /etc/profile if [ -n "${clst_DISTCC}" ] then - killall -9 distccd + pkill -signal 9 -U 7980 userdel distcc || exit 1 fi diff --git a/targets/tinderbox/tinderbox.sh b/targets/tinderbox/tinderbox.sh index 0a65965d..14484502 100755 --- a/targets/tinderbox/tinderbox.sh +++ b/targets/tinderbox/tinderbox.sh @@ -1,25 +1,21 @@ #!/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.7 2004/04/14 00:17:59 zhen Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/Attic/tinderbox.sh,v 1.8 2004/04/14 22:35:29 zhen Exp $ case $1 in run) shift cp ${clst_sharedir}/targets/tinderbox/tinderbox-chroot.sh ${clst_chroot_path}/tmp - clst_tinderbox_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/tinderbox-chroot.sh + clst_tinderbox_packages="$*" ${clst_CHROOT} ${clst_chroot_path} /tmp/tinderbox-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/tinderbox-chroot.sh - - [ $? -ne 0 ] && exit 1 ;; preclean) cp ${clst_sharedir}/targets/grp/tinderbox-preclean-chroot.sh ${clst_chroot_path}/tmp - ${clst_CHROOT} ${clst_chroot_path} /tmp/tinderbox-preclean-chroot.sh + ${clst_CHROOT} ${clst_chroot_path} /tmp/tinderbox-preclean-chroot.sh || exit 1 rm -f ${clst_chroot_path}/tmp/tinderbox-preclean-chroot.sh - - [ $? -ne 0 ] && exit 1 ;; clean) -- 2.26.2