# 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 <zhen@gentoo.org>
+ 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 <zhen@gentoo.org> modules/targets.py:
fix for bug 47626
#!/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"
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
#!/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
#!/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)
;;
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)
#!/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)
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)
#!/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
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
#!/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
#!/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)
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)
#!/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
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
#!/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
#!/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)
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)
#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)
#!/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
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
#!/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
if [ -n "${clst_DISTCC}" ]
then
- killall -9 distccd
emerge -C sys-devel/distcc || exit 1
userdel distcc || exit 1
fi
#!/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)
#!/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
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
#!/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)
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)
#!/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
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
#!/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
#!/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)