Gentoo Archives: gentoo-commits

From: "Chris Gianelloni (wolf31o2)" <wolf31o2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] catalyst r1332 - in trunk: . targets/grp targets/livecd-stage1 targets/stage1 targets/stage3 targets/stage4 targets/support targets/tinderbox
Date: Thu, 28 Feb 2008 03:41:58
Message-Id: E1JUZec-0008LT-Td@stork.gentoo.org
1 Author: wolf31o2
2 Date: 2008-02-28 03:41:54 +0000 (Thu, 28 Feb 2008)
3 New Revision: 1332
4
5 Modified:
6 trunk/ChangeLog
7 trunk/targets/grp/grp-chroot.sh
8 trunk/targets/livecd-stage1/livecd-stage1-chroot.sh
9 trunk/targets/stage1/stage1-chroot.sh
10 trunk/targets/stage3/stage3-chroot.sh
11 trunk/targets/stage4/stage4-chroot.sh
12 trunk/targets/support/chroot-functions.sh
13 trunk/targets/tinderbox/tinderbox-chroot.sh
14 Log:
15 Rearrange some of the functions in chroot-functions.sh in preparation for some upcoming changes and rename setup_portage to setup_pkgmgr.
16
17 Modified: trunk/ChangeLog
18 ===================================================================
19 --- trunk/ChangeLog 2008-02-28 03:25:59 UTC (rev 1331)
20 +++ trunk/ChangeLog 2008-02-28 03:41:54 UTC (rev 1332)
21 @@ -2,6 +2,14 @@
22 # $Id: $
23
24 28 Feb 2008; Chris Gianelloni <wolf31o2@g.o>
25 + targets/grp/grp-chroot.sh, targets/livecd-stage1/livecd-stage1-chroot.sh,
26 + targets/stage1/stage1-chroot.sh, targets/stage3/stage3-chroot.sh,
27 + targets/stage4/stage4-chroot.sh, targets/support/chroot-functions.sh,
28 + targets/tinderbox/tinderbox-chroot.sh:
29 + Rearrange some of the functions in chroot-functions.sh in preparation for
30 + some upcoming changes and rename setup_portage to setup_pkgmgr.
31 +
32 + 28 Feb 2008; Chris Gianelloni <wolf31o2@g.o>
33 targets/stage1/stage1-controller.sh:
34 Removing an extra env-update call from stage1's preclean.
35
36
37 Modified: trunk/targets/grp/grp-chroot.sh
38 ===================================================================
39 --- trunk/targets/grp/grp-chroot.sh 2008-02-28 03:25:59 UTC (rev 1331)
40 +++ trunk/targets/grp/grp-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332)
41 @@ -3,7 +3,7 @@
42 source /tmp/chroot-functions.sh
43
44 ## START BUILD
45 -setup_portage
46 +setup_pkgmgr
47
48 unset DISTDIR
49
50
51 Modified: trunk/targets/livecd-stage1/livecd-stage1-chroot.sh
52 ===================================================================
53 --- trunk/targets/livecd-stage1/livecd-stage1-chroot.sh 2008-02-28 03:25:59 UTC (rev 1331)
54 +++ trunk/targets/livecd-stage1/livecd-stage1-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332)
55 @@ -3,6 +3,6 @@
56 source /tmp/chroot-functions.sh
57
58 ## START BUILD
59 -setup_portage
60 +setup_pkgmgr
61
62 run_emerge "${clst_packages}"
63
64 Modified: trunk/targets/stage1/stage1-chroot.sh
65 ===================================================================
66 --- trunk/targets/stage1/stage1-chroot.sh 2008-02-28 03:25:59 UTC (rev 1331)
67 +++ trunk/targets/stage1/stage1-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332)
68 @@ -20,7 +20,7 @@
69 fi
70
71 ## START BUILD
72 -clst_root_path=/ setup_portage
73 +clst_root_path=/ setup_pkgmgr
74
75 USE="-build" run_emerge "--oneshot --nodeps virtual/baselayout"
76
77
78 Modified: trunk/targets/stage3/stage3-chroot.sh
79 ===================================================================
80 --- trunk/targets/stage3/stage3-chroot.sh 2008-02-28 03:25:59 UTC (rev 1331)
81 +++ trunk/targets/stage3/stage3-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332)
82 @@ -3,6 +3,6 @@
83 source /tmp/chroot-functions.sh
84
85 ## START BUILD
86 -setup_portage
87 +setup_pkgmgr
88
89 run_emerge "-e system"
90
91 Modified: trunk/targets/stage4/stage4-chroot.sh
92 ===================================================================
93 --- trunk/targets/stage4/stage4-chroot.sh 2008-02-28 03:25:59 UTC (rev 1331)
94 +++ trunk/targets/stage4/stage4-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332)
95 @@ -3,7 +3,7 @@
96 source /tmp/chroot-functions.sh
97
98 ## START BUILD
99 -setup_portage
100 +setup_pkgmgr
101
102 echo "Bringing system up to date using profile specific use flags"
103 run_emerge -u system
104
105 Modified: trunk/targets/support/chroot-functions.sh
106 ===================================================================
107 --- trunk/targets/support/chroot-functions.sh 2008-02-28 03:25:59 UTC (rev 1331)
108 +++ trunk/targets/support/chroot-functions.sh 2008-02-28 03:41:54 UTC (rev 1332)
109 @@ -135,42 +135,42 @@
110 fi
111 }
112
113 -setup_portage(){
114 - # portage needs to be merged manually with USE="build" set to avoid frying
115 - # our make.conf. emerge system could merge it otherwise.
116 -# if [ "${clst_AUTORESUME}" = "1" -a -e /tmp/.clst_portage ]
117 -# then
118 -# echo "Portage Autoresume point found not emerging portage"
119 -# else
120 - USE="build" run_emerge --oneshot --nodeps portage
121 -# touch /tmp/.clst_portage || exit 1
122 -# fi
123 -}
124 -
125 -setup_gcc(){
126 - if [ -x /usr/bin/gcc-config ]
127 +setup_binutils(){
128 + if [ -x /usr/bin/binutils-config ]
129 then
130 - mythang=$( cd /etc/env.d/gcc; ls ${clst_CHOST}-* | head -n 1 )
131 + mythang=$( cd /etc/env.d/binutils; ls ${clst_CHOST}-* | head -n 1 )
132 if [ -z "${mythang}" ]
133 then
134 mythang=1
135 fi
136 - gcc-config ${mythang}; update_env_settings
137 + binutils-config ${mythang}; update_env_settings
138 fi
139 }
140
141 -setup_binutils(){
142 - if [ -x /usr/bin/binutils-config ]
143 +setup_gcc(){
144 + if [ -x /usr/bin/gcc-config ]
145 then
146 - mythang=$( cd /etc/env.d/binutils; ls ${clst_CHOST}-* | head -n 1 )
147 + mythang=$( cd /etc/env.d/gcc; ls ${clst_CHOST}-* | head -n 1 )
148 if [ -z "${mythang}" ]
149 then
150 mythang=1
151 fi
152 - binutils-config ${mythang}; update_env_settings
153 + gcc-config ${mythang}; update_env_settings
154 fi
155 }
156
157 +setup_pkgmgr(){
158 + # portage needs to be merged manually with USE="build" set to avoid frying
159 + # our make.conf. emerge system could merge it otherwise.
160 +# if [ "${clst_AUTORESUME}" = "1" -a -e /tmp/.clst_portage ]
161 +# then
162 +# echo "Portage Autoresume point found not emerging portage"
163 +# else
164 + USE="build" run_emerge --oneshot --nodeps virtual/portage
165 +# touch /tmp/.clst_portage || exit 1
166 +# fi
167 +}
168 +
169 cleanup_distcc() {
170 rm -rf /etc/distcc/hosts
171 for i in cc gcc c++ g++; do
172
173 Modified: trunk/targets/tinderbox/tinderbox-chroot.sh
174 ===================================================================
175 --- trunk/targets/tinderbox/tinderbox-chroot.sh 2008-02-28 03:25:59 UTC (rev 1331)
176 +++ trunk/targets/tinderbox/tinderbox-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332)
177 @@ -3,7 +3,7 @@
178 source /tmp/chroot-functions.sh
179
180 # START THE BUILD
181 -setup_portage
182 +setup_pkgmgr
183
184 # Backup pristine system
185
186
187 --
188 gentoo-commits@l.g.o mailing list