coded support for the -d (debug) flag which makes catalyst display an emerge -vp...
authorJohn P. Davis <zhen@gentoo.org>
Mon, 12 Jul 2004 14:25:16 +0000 (14:25 +0000)
committerJohn P. Davis <zhen@gentoo.org>
Mon, 12 Jul 2004 14:25:16 +0000 (14:25 +0000)
about to be merged

git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@410 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
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

index 3dc69acae9cd112942e77af827983500e37a3550..bac4fa28600ce077d3332cc127583f26d36fbc42 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
 # 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:
index 5211427ddfacf399aefa4da40bdd7282ee1a07e1..23deb3ba1a3ec814b07a20f0201370583787596b 100755 (executable)
--- a/catalyst
+++ b/catalyst
@@ -1,7 +1,7 @@
 #!/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>
 
@@ -196,7 +196,7 @@ if __name__ == "__main__":
                        sys.exit(2)
 
                if o in ("-d", "--debug"):
-                       debug=True
+                       conf_values["DEBUG"]=1
 
                if o in ("-c", "--config"):
                        myconfig=a
@@ -211,7 +211,7 @@ if __name__ == "__main__":
                        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)
index 0f4db1726c26a0071140d50553ef515d75c5c5d3..2d79c8560b646779257f466b8c092b765cee4f40 100755 (executable)
@@ -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.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
@@ -44,4 +44,9 @@ then
 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
index 6dccf31658c67acdc4b5d226d2ea12b7a16a2a66..ff4a5be69604c46a06b4843c95daf6fae347de1f 100755 (executable)
@@ -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.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
@@ -42,6 +42,12 @@ if [ "${clst_grp_type}" = "pkgset" ]
 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
index 2f6abc1bad4be3b25a246a8c999f3feb9245eb92..bb6a5d47537e0cb0255022a468ab2c14f69609f7 100755 (executable)
@@ -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.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
@@ -44,4 +44,9 @@ USE="build" emerge portage
 #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}
index 9fbcd99b352177620d53617080b77a2b419085c9..33bc0e62545f5a0a001a93305bb46b2b30a5c5f0 100755 (executable)
@@ -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.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
@@ -29,12 +29,6 @@ then
        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}
@@ -47,4 +41,9 @@ do
        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
index f3306e684d0585d504efaa2aad778d88d01c6aaa..64b91ef0f7eafe128a3946baceaf63aac73a5d00 100755 (executable)
@@ -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.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
@@ -42,5 +42,10 @@ export CONFIG_PROTECT="-*"
 # 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
index f6655db445b0be3c164f1f35c898700ad51522de..79ee7c77005ebf55e98a962f9d42c869789d2bb0 100755 (executable)
@@ -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.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
@@ -41,7 +41,13 @@ rsync -avx --exclude "/root/" --exclude "/tmp/" --exclude "/usr/portage/" / /tmp
 
 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