# 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.34 2004/04/02 21:09:10 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.35 2004/04/04 16:58:15 zhen Exp $
+
+ 04 Apr 2004; John Davis <zhen@gentoo.org> targets/embedded/embedded.sh,
+ targets/grp/grp.sh, targets/stage1/stage1-chroot.sh,
+ targets/stage2/stage2.sh, targets/stage3/stage3.sh,
+ targets/tinderbox/tinderbox.sh:
+ fix to address missing /dev in stages, fixed path for env-update in all of the
+ targets
02 Apr 2004; John Davis <zhen@gentoo.org> modules/targets.py:
use broken for grp, livecd-stage1, tinderbox, etc. fixed
# 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.1 2004/03/22 15:25:52 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/Attic/embedded.sh,v 1.2 2004/04/04 16:58:15 zhen Exp $
case $1 in
enter)
;;
run)
$clst_CHROOT $clst_chroot_path /bin/bash << EOF
- env-update
+ /usr/sbin/env-update
source /etc/profile
export USE="\${clst_embedded_use}"
rm -f /tmp/stage23
# 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.11 2004/03/26 17:03:29 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/Attic/grp.sh,v 1.12 2004/04/04 16:58:15 zhen Exp $
case $1 in
enter)
shift
export clst_grp_packages="$*"
$clst_CHROOT $clst_chroot_path /bin/bash << EOF
- env-update
+ /usr/sbin/env-update
source /etc/profile
if [ -n "${clst_ENVSCRIPT}" ]
then
#!/bin/bash
-env-update
+/usr/sbin/env-update
source /etc/profile
+
if [ -n "${clst_ENVSCRIPT}" ]
then
source /tmp/envscript
rm -f /tmp/envscript
fi
+
case $1 in
build)
+
#emerge and enable ccache before we set ROOT
if [ -n "${clst_CCACHE}" ]
then
export FEATURES="ccache"
emerge --oneshot --nodeps ccache || exit 1
fi
+
if [ -n "${clst_DISTCC}" ]
then
export FEATURES="distcc"
/usr/bin/distcc-config --install 2>&1 > /dev/null
/usr/bin/distccd 2>&1 > /dev/null
fi
+
export ROOT=${2}
install -d $ROOT
+
if [ -n "${clst_PKGCACHE}" ]
then
export EMERGE_OPTS="--usepkg --buildpkg"
fi
+
for x in $(/tmp/build.sh)
do
echo $x >> /tmp/build.log
USE="-* build" emerge ${EMERGE_OPTS} --noreplace $x || exit 1
done
+
+ if [ ! -d /dev ]
+ then
+ mkdir -p /dev
+ cd /dev
+ MAKEDEV generic-i386
+ fi
;;
preclean)
# 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.10 2004/03/31 21:56:23 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage2/Attic/stage2.sh,v 1.11 2004/04/04 16:58:15 zhen Exp $
case $1 in
enter)
;;
run)
$clst_CHROOT $clst_chroot_path /bin/bash << EOF
- env-update
+ /usr/sbin/env-update
source /etc/profile
if [ -n "${clst_ENVSCRIPT}" ]
then
# 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.11 2004/03/26 17:03:29 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/Attic/stage3.sh,v 1.12 2004/04/04 16:58:15 zhen Exp $
case $1 in
enter)
;;
run)
$clst_CHROOT $clst_chroot_path /bin/bash << EOF
- env-update
+ /usr/sbin/env-update
source /etc/profile
if [ -n ${ENVSCRIPT} ]
then
# 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.4 2004/03/26 17:03:29 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/Attic/tinderbox.sh,v 1.5 2004/04/04 16:58:15 zhen Exp $
case $1 in
run)
shift
export clst_tinderbox_packages="$*"
$clst_CHROOT $clst_chroot_path /bin/bash << EOF
- env-update
+ /usr/sbin/env-update
source /etc/profile
if [ -n "${clst_ENVSCRIPT}" ]
then