# 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.68 2004/07/11 21:22:07 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.69 2004/07/12 14:25:16 zhen Exp $
+
+ 12 Jul 2004; <zhen@gentoo.org> catalyst,
+ targets/embedded/embedded-chroot.sh, targets/grp/grp-chroot.sh,
+ targets/livecd-stage1/livecd-stage1-chroot.sh,
+ targets/stage1/stage1-chroot.sh, targets/stage3/stage3-chroot.sh,
+ targets/tinderbox/tinderbox-chroot.sh:
+ the -d (debug) flag now makes catalyst calculate an emerge -vp of the packages
+ it is about to merge so that deps and USE flags are more evident
11 Jul 2004; <zhen@gentoo.org> +catalyst, -catalyst.new.py,
modules/catalyst_support.py:
#!/usr/bin/python
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.42 2004/07/11 21:25:22 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/catalyst,v 1.43 2004/07/12 14:25:16 zhen Exp $
# Maintained in full by John Davis <zhen@gentoo.org>
sys.exit(2)
if o in ("-d", "--debug"):
- debug=True
+ conf_values["DEBUG"]=1
if o in ("-c", "--config"):
myconfig=a
myspecfile=a
if o in ("-V", "--verbose"):
- verbose=True
+ conf_values["VERBOSE"]=1
# import configuration file and import our main module using those settings
parse_config(myconfig)
#!/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.4 2004/06/04 14:03:46 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/embedded/embedded-chroot.sh,v 1.5 2004/07/12 14:25:16 zhen Exp $
/usr/sbin/env-update
source /etc/profile
fi
## START BUILD
+if [ "${clst_DEBUG}" ]
+then
+ ROOT=/tmp/mergeroot emerge ${clst_myemergeopts} -vp ${clst_embedded_packages} || exit 1
+fi
+
ROOT=/tmp/mergeroot emerge ${clst_myemergeopts} ${clst_embedded_packages} || exit 1
#!/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.3 2004/06/04 14:03:46 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/grp/grp-chroot.sh,v 1.4 2004/07/12 14:25:16 zhen Exp $
/usr/sbin/env-update
source /etc/profile
then
unset DISTDIR
export PKGDIR="/tmp/grp/${clst_grp_target}"
+
+ if [ -n "${clst_DEBUG}" ]
+ then
+ emerge --usepkg --buildpkg --noreplace -vp ${clst_grp_packages} || exit 1
+ fi
+
emerge --usepkg --buildpkg --noreplace ${clst_grp_packages} || exit 1
else
unset DISTDIR
#!/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.3 2004/06/04 14:03:46 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/livecd-stage1/livecd-stage1-chroot.sh,v 1.4 2004/07/12 14:25:16 zhen Exp $
/usr/sbin/env-update
source /etc/profile
#turn off auto-use:
export USE_ORDER="env:conf:defaults"
+if [ "${clst_DEBUG}" ]
+then
+ emerge ${clst_emergeopts} -vp ${clst_packages}
+fi
+
emerge ${clst_emergeopts} ${clst_packages}
#!/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.17 2004/06/18 18:06:21 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage1/stage1-chroot.sh,v 1.18 2004/07/12 14:25:16 zhen Exp $
/usr/sbin/env-update
source /etc/profile
export clst_myemergeopts="${clst_myemergeopts} --usepkg --buildpkg"
fi
-# broken, need to figure out how to avoid a portage infinite loop
-#if [ -n "${clst_AUTORESUME}" ] && [ -e /tmp/build.log ]
-#then
-# export clst_myemergeopts="${clst_myemergeopts} --resume"
-#fi
-
# setup our environment
export FEATURES="${clst_myfeatures}"
export ROOT=${1}
export clst_buildpkgs="${clst_buildpkgs} ${x}"
done
+if [ -n "${clst_DEBUG}" ]
+then
+ USE="-* build" emerge ${clst_myemergeopts} -vp --noreplace ${clst_buildpkgs} || exit 1
+fi
+
USE="-* build" emerge ${clst_myemergeopts} --noreplace ${clst_buildpkgs} || exit 1
#!/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.5 2004/06/18 18:06:21 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/stage3-chroot.sh,v 1.6 2004/07/12 14:25:16 zhen Exp $
/usr/sbin/env-update
source /etc/profile
# portage needs to be merged manually with USE="build" set to avoid frying our
# make.conf. emerge system could merge it otherwise.
USE="build" emerge portage
-
+
+if [ -n "${clst_DEBUG}" ]
+then
+ emerge ${clst_myemergeopts} -vp system || exit 1
+fi
+
emerge ${clst_myemergeopts} system || exit 1
#!/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.3 2004/06/04 14:03:46 zhen Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/tinderbox/tinderbox-chroot.sh,v 1.4 2004/07/12 14:25:16 zhen Exp $
/usr/sbin/env-update
source /etc/profile
for x in ${clst_tinderbox_packages}
do
+ if [ -n "${clst_DEBUG}" ]
+ then
+ emerge --usepkg --buildpkg -vp $x
+ fi
+
emerge --usepkg --buildpkg $x
+
if [ "$?" != "0" ]
then
echo "! $x" >> /tmp/tinderbox.log