1 |
Author: wolf31o2 |
2 |
Date: 2008-02-28 03:59:26 +0000 (Thu, 28 Feb 2008) |
3 |
New Revision: 1333 |
4 |
|
5 |
Modified: |
6 |
trunk/ChangeLog |
7 |
trunk/targets/embedded/embedded-chroot.sh |
8 |
trunk/targets/grp/grp-chroot.sh |
9 |
trunk/targets/livecd-stage1/livecd-stage1-chroot.sh |
10 |
trunk/targets/netboot/netboot-chroot.sh |
11 |
trunk/targets/netboot/netboot-combine.sh |
12 |
trunk/targets/netboot2/netboot2-pkg.sh |
13 |
trunk/targets/stage1/stage1-chroot.sh |
14 |
trunk/targets/stage2/stage2-preclean-chroot.sh |
15 |
trunk/targets/stage3/stage3-chroot.sh |
16 |
trunk/targets/stage3/stage3-preclean-chroot.sh |
17 |
trunk/targets/stage4/stage4-chroot.sh |
18 |
trunk/targets/support/chroot-functions.sh |
19 |
trunk/targets/support/pre-kmerge.sh |
20 |
trunk/targets/support/unmerge.sh |
21 |
trunk/targets/tinderbox/tinderbox-chroot.sh |
22 |
Log: |
23 |
Changing run_emerge to run_merge, changing both setup_portage and setup_myfeatures to add any USE changes to make.conf prior to merge, then removing the settings added, rather than (ab)using the environment. |
24 |
|
25 |
Modified: trunk/ChangeLog |
26 |
=================================================================== |
27 |
--- trunk/ChangeLog 2008-02-28 03:41:54 UTC (rev 1332) |
28 |
+++ trunk/ChangeLog 2008-02-28 03:59:26 UTC (rev 1333) |
29 |
@@ -2,6 +2,19 @@ |
30 |
# $Id: $ |
31 |
|
32 |
28 Feb 2008; Chris Gianelloni <wolf31o2@g.o> |
33 |
+ targets/embedded/embedded-chroot.sh, targets/grp/grp-chroot.sh, |
34 |
+ targets/livecd-stage1/livecd-stage1-chroot.sh, |
35 |
+ targets/netboot/netboot-chroot.sh, targets/netboot/netboot-combine.sh, |
36 |
+ targets/netboot2/netboot2-pkg.sh, targets/stage1/stage1-chroot.sh, |
37 |
+ targets/stage2/stage2-preclean-chroot.sh, targets/stage3/stage3-chroot.sh, |
38 |
+ targets/stage3/stage3-preclean-chroot.sh, targets/stage4/stage4-chroot.sh, |
39 |
+ targets/support/chroot-functions.sh, targets/support/pre-kmerge.sh, |
40 |
+ targets/support/unmerge.sh, targets/tinderbox/tinderbox-chroot.sh: |
41 |
+ Changing run_emerge to run_merge, changing both setup_portage and |
42 |
+ setup_myfeatures to add any USE changes to make.conf prior to merge, then |
43 |
+ removing the settings added, rather than (ab)using the environment. |
44 |
+ |
45 |
+ 28 Feb 2008; Chris Gianelloni <wolf31o2@g.o> |
46 |
targets/grp/grp-chroot.sh, targets/livecd-stage1/livecd-stage1-chroot.sh, |
47 |
targets/stage1/stage1-chroot.sh, targets/stage3/stage3-chroot.sh, |
48 |
targets/stage4/stage4-chroot.sh, targets/support/chroot-functions.sh, |
49 |
|
50 |
Modified: trunk/targets/embedded/embedded-chroot.sh |
51 |
=================================================================== |
52 |
--- trunk/targets/embedded/embedded-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
53 |
+++ trunk/targets/embedded/embedded-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
54 |
@@ -7,9 +7,9 @@ |
55 |
export clst_root_path="/" |
56 |
|
57 |
echo "Installing dependencies into ${DESTROOT}..." |
58 |
-run_emerge -o "${clst_embedded_packages}" |
59 |
+run_merge -o "${clst_embedded_packages}" |
60 |
|
61 |
export clst_root_path="${DESTROOT}" |
62 |
export INSTALL_MASK="${clst_install_mask}" |
63 |
|
64 |
-run_emerge -1 -O "${clst_embedded_packages}" |
65 |
+run_merge -1 -O "${clst_embedded_packages}" |
66 |
|
67 |
Modified: trunk/targets/grp/grp-chroot.sh |
68 |
=================================================================== |
69 |
--- trunk/targets/grp/grp-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
70 |
+++ trunk/targets/grp/grp-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
71 |
@@ -15,10 +15,10 @@ |
72 |
unset DISTDIR |
73 |
export PKGDIR="/tmp/grp/${clst_grp_target}" |
74 |
|
75 |
- run_emerge --usepkg --buildpkg --noreplace --newuse ${clst_myemergeopts} \ |
76 |
+ run_merge --usepkg --buildpkg --noreplace --newuse ${clst_myemergeopts} \ |
77 |
${clst_grp_packages} || exit 1 |
78 |
else |
79 |
- DISTDIR="/tmp/grp/${clst_grp_target}" run_emerge --fetchonly \ |
80 |
+ DISTDIR="/tmp/grp/${clst_grp_target}" run_merge --fetchonly \ |
81 |
${clst_grp_packages} || exit 1 |
82 |
unset PKGDIR |
83 |
fi |
84 |
|
85 |
Modified: trunk/targets/livecd-stage1/livecd-stage1-chroot.sh |
86 |
=================================================================== |
87 |
--- trunk/targets/livecd-stage1/livecd-stage1-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
88 |
+++ trunk/targets/livecd-stage1/livecd-stage1-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
89 |
@@ -5,4 +5,4 @@ |
90 |
## START BUILD |
91 |
setup_pkgmgr |
92 |
|
93 |
-run_emerge "${clst_packages}" |
94 |
+run_merge "${clst_packages}" |
95 |
|
96 |
Modified: trunk/targets/netboot/netboot-chroot.sh |
97 |
=================================================================== |
98 |
--- trunk/targets/netboot/netboot-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
99 |
+++ trunk/targets/netboot/netboot-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
100 |
@@ -3,4 +3,4 @@ |
101 |
source /tmp/chroot-functions.sh |
102 |
|
103 |
# START BUILD |
104 |
-run_emerge "${clst_packages}" |
105 |
+run_merge "${clst_packages}" |
106 |
|
107 |
Modified: trunk/targets/netboot/netboot-combine.sh |
108 |
=================================================================== |
109 |
--- trunk/targets/netboot/netboot-combine.sh 2008-02-28 03:41:54 UTC (rev 1332) |
110 |
+++ trunk/targets/netboot/netboot-combine.sh 2008-02-28 03:59:26 UTC (rev 1333) |
111 |
@@ -35,7 +35,7 @@ |
112 |
esac |
113 |
|
114 |
#if [ ! -z "${booter}" ] ; then |
115 |
-# run_emerge ${booter} || exit 1 |
116 |
+# run_merge ${booter} || exit 1 |
117 |
#fi |
118 |
|
119 |
extract_kernels ${clst_chroot_path}/tmp |
120 |
|
121 |
Modified: trunk/targets/netboot2/netboot2-pkg.sh |
122 |
=================================================================== |
123 |
--- trunk/targets/netboot2/netboot2-pkg.sh 2008-02-28 03:41:54 UTC (rev 1332) |
124 |
+++ trunk/targets/netboot2/netboot2-pkg.sh 2008-02-28 03:59:26 UTC (rev 1333) |
125 |
@@ -13,4 +13,4 @@ |
126 |
|
127 |
# START BUILD |
128 |
|
129 |
-run_emerge ${clst_myemergeopts} ${clst_packages} |
130 |
+run_merge ${clst_myemergeopts} ${clst_packages} |
131 |
|
132 |
Modified: trunk/targets/stage1/stage1-chroot.sh |
133 |
=================================================================== |
134 |
--- trunk/targets/stage1/stage1-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
135 |
+++ trunk/targets/stage1/stage1-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
136 |
@@ -22,6 +22,6 @@ |
137 |
## START BUILD |
138 |
clst_root_path=/ setup_pkgmgr |
139 |
|
140 |
-USE="-build" run_emerge "--oneshot --nodeps virtual/baselayout" |
141 |
+USE="-build" run_merge "--oneshot --nodeps virtual/baselayout" |
142 |
|
143 |
-USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}" run_emerge "--noreplace --oneshot --newuse ${clst_buildpkgs}" |
144 |
+USE="-* bindist build ${STAGE1_USE} ${HOSTUSE}" run_merge "--noreplace --oneshot --newuse ${clst_buildpkgs}" |
145 |
|
146 |
Modified: trunk/targets/stage2/stage2-preclean-chroot.sh |
147 |
=================================================================== |
148 |
--- trunk/targets/stage2/stage2-preclean-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
149 |
+++ trunk/targets/stage2/stage2-preclean-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
150 |
@@ -6,15 +6,15 @@ |
151 |
|
152 |
if [ -n "${clst_CCACHE}" ] |
153 |
then |
154 |
- run_emerge -C dev-util/ccache || exit 1 |
155 |
+ run_merge -C dev-util/ccache || exit 1 |
156 |
fi |
157 |
|
158 |
if [ -n "${clst_DISTCC}" ] |
159 |
then |
160 |
- run_emerge -C sys-devel/distcc || exit 1 |
161 |
+ run_merge -C sys-devel/distcc || exit 1 |
162 |
fi |
163 |
|
164 |
if [ -n "${clst_ICECREAM}" ] |
165 |
then |
166 |
- run_emerge -C sys-devel/icecream || exit 1 |
167 |
+ run_merge -C sys-devel/icecream || exit 1 |
168 |
fi |
169 |
|
170 |
Modified: trunk/targets/stage3/stage3-chroot.sh |
171 |
=================================================================== |
172 |
--- trunk/targets/stage3/stage3-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
173 |
+++ trunk/targets/stage3/stage3-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
174 |
@@ -5,4 +5,4 @@ |
175 |
## START BUILD |
176 |
setup_pkgmgr |
177 |
|
178 |
-run_emerge "-e system" |
179 |
+run_merge "-e system" |
180 |
|
181 |
Modified: trunk/targets/stage3/stage3-preclean-chroot.sh |
182 |
=================================================================== |
183 |
--- trunk/targets/stage3/stage3-preclean-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
184 |
+++ trunk/targets/stage3/stage3-preclean-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
185 |
@@ -6,15 +6,15 @@ |
186 |
|
187 |
if [ -n "${clst_CCACHE}" ] |
188 |
then |
189 |
- run_emerge -C dev-util/ccache || exit 1 |
190 |
+ run_merge -C dev-util/ccache || exit 1 |
191 |
fi |
192 |
|
193 |
if [ -n "${clst_DISTCC}" ] |
194 |
then |
195 |
- run_emerge -C sys-devel/distcc || exit 1 |
196 |
+ run_merge -C sys-devel/distcc || exit 1 |
197 |
fi |
198 |
|
199 |
if [ -n "${clst_ICECREAM}" ] |
200 |
then |
201 |
- run_emerge -C sys-devel/icecream || exit 1 |
202 |
+ run_merge -C sys-devel/icecream || exit 1 |
203 |
fi |
204 |
|
205 |
Modified: trunk/targets/stage4/stage4-chroot.sh |
206 |
=================================================================== |
207 |
--- trunk/targets/stage4/stage4-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
208 |
+++ trunk/targets/stage4/stage4-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
209 |
@@ -6,8 +6,8 @@ |
210 |
setup_pkgmgr |
211 |
|
212 |
echo "Bringing system up to date using profile specific use flags" |
213 |
-run_emerge -u system |
214 |
+run_merge -u system |
215 |
|
216 |
echo "Emerging packages using stage4 use flags" |
217 |
|
218 |
-run_emerge "${clst_packages}" |
219 |
+run_merge "${clst_packages}" |
220 |
|
221 |
Modified: trunk/targets/support/chroot-functions.sh |
222 |
=================================================================== |
223 |
--- trunk/targets/support/chroot-functions.sh 2008-02-28 03:41:54 UTC (rev 1332) |
224 |
+++ trunk/targets/support/chroot-functions.sh 2008-02-28 03:59:26 UTC (rev 1333) |
225 |
@@ -64,26 +64,17 @@ |
226 |
if [ -n "${clst_CCACHE}" ] |
227 |
then |
228 |
export clst_myfeatures="${clst_myfeatures} ccache" |
229 |
- #if [ "${clst_AUTORESUME}" = "1" -a -e /tmp/.clst_ccache ] |
230 |
- #then |
231 |
- # echo "CCACHE Autoresume point found not emerging ccache" |
232 |
- #else |
233 |
- clst_root_path=/ run_emerge --oneshot --nodeps ccache || exit 1 |
234 |
- # touch /tmp/.clst_ccache |
235 |
- #fi |
236 |
+ clst_root_path=/ run_merge --oneshot --nodeps dev-util/ccache || exit 1 |
237 |
fi |
238 |
|
239 |
if [ -n "${clst_DISTCC}" ] |
240 |
then |
241 |
export clst_myfeatures="${clst_myfeatures} distcc" |
242 |
export DISTCC_HOSTS="${clst_distcc_hosts}" |
243 |
- #if [ "${clst_AUTORESUME}" = "1" -a -e /tmp/.clst_distcc ] |
244 |
- #then |
245 |
- # echo "DISTCC Autoresume point found not emerging distcc" |
246 |
- #else |
247 |
- USE="-gtk -gnome" clst_root_path=/ run_emerge --oneshot --nodeps distcc || exit 1 |
248 |
- #touch /tmp/.clst_distcc |
249 |
- #fi |
250 |
+ [ -e /etc/make.conf ] && \ |
251 |
+ echo 'USE="${USE} -avahi -gtk -gnome' >> /etc/make.conf |
252 |
+ clst_root_path=/ run_merge --oneshot --nodeps sys-devel/distcc || exit 1 |
253 |
+ sed -i '/USE="${USE} -avahi -gtk -gnome/d' /etc/make.conf |
254 |
mkdir -p /etc/distcc |
255 |
echo "${clst_distcc_hosts}" > /etc/distcc/hosts |
256 |
|
257 |
@@ -100,7 +91,7 @@ |
258 |
|
259 |
if [ -n "${clst_ICECREAM}" ] |
260 |
then |
261 |
- clst_root_path=/ run_emerge --oneshot --nodeps sys-devel/icecream || exit 1 |
262 |
+ clst_root_path=/ run_merge --oneshot --nodeps sys-devel/icecream || exit 1 |
263 |
|
264 |
# This sets up automatic cross-icecc-fu according to |
265 |
# http://gentoo-wiki.com/HOWTO_Setup_An_ICECREAM_Compile_Cluster#Icecream_and_cross-compiling |
266 |
@@ -160,15 +151,12 @@ |
267 |
} |
268 |
|
269 |
setup_pkgmgr(){ |
270 |
- # portage needs to be merged manually with USE="build" set to avoid frying |
271 |
- # our make.conf. emerge system could merge it otherwise. |
272 |
-# if [ "${clst_AUTORESUME}" = "1" -a -e /tmp/.clst_portage ] |
273 |
-# then |
274 |
-# echo "Portage Autoresume point found not emerging portage" |
275 |
-# else |
276 |
- USE="build" run_emerge --oneshot --nodeps virtual/portage |
277 |
-# touch /tmp/.clst_portage || exit 1 |
278 |
-# fi |
279 |
+ # We need to merge our package manager with USE="build" set in case it is |
280 |
+ # portage to avoid frying our /etc/make.conf file. Otherwise, we could |
281 |
+ # just let emerge system could merge it. |
282 |
+ [ -e /etc/make.conf ] && echo 'USE="${USE} build' >> /etc/make.conf |
283 |
+ run_merge --oneshot --nodeps virtual/portage |
284 |
+ sed -i '/USE="${USE} build/d' /etc/make.conf |
285 |
} |
286 |
|
287 |
cleanup_distcc() { |
288 |
@@ -237,7 +225,7 @@ |
289 |
fi |
290 |
} |
291 |
|
292 |
-run_emerge() { |
293 |
+run_merge() { |
294 |
# Sets up the ROOT= parameter |
295 |
# with no options ROOT=/ |
296 |
make_destpath ${clst_root_path} |
297 |
|
298 |
Modified: trunk/targets/support/pre-kmerge.sh |
299 |
=================================================================== |
300 |
--- trunk/targets/support/pre-kmerge.sh 2008-02-28 03:41:54 UTC (rev 1332) |
301 |
+++ trunk/targets/support/pre-kmerge.sh 2008-02-28 03:59:26 UTC (rev 1333) |
302 |
@@ -2,7 +2,7 @@ |
303 |
|
304 |
source /tmp/chroot-functions.sh |
305 |
|
306 |
-run_emerge --oneshot genkernel |
307 |
+run_merge --oneshot genkernel |
308 |
install -d /tmp/kerncache |
309 |
|
310 |
case ${clst_target} in |
311 |
@@ -11,7 +11,7 @@ |
312 |
;; |
313 |
|
314 |
netboot2) |
315 |
- run_emerge --oneshot genkernel |
316 |
+ run_merge --oneshot genkernel |
317 |
install -d /tmp/kerncache |
318 |
|
319 |
# Set the netboot builddate/hostname in linuxrc and copy to proper arch |
320 |
|
321 |
Modified: trunk/targets/support/unmerge.sh |
322 |
=================================================================== |
323 |
--- trunk/targets/support/unmerge.sh 2008-02-28 03:41:54 UTC (rev 1332) |
324 |
+++ trunk/targets/support/unmerge.sh 2008-02-28 03:59:26 UTC (rev 1333) |
325 |
@@ -2,6 +2,6 @@ |
326 |
|
327 |
source /tmp/chroot-functions.sh |
328 |
|
329 |
-run_emerge -C ${clst_packages} |
330 |
+run_merge -C ${clst_packages} |
331 |
|
332 |
exit 0 |
333 |
|
334 |
Modified: trunk/targets/tinderbox/tinderbox-chroot.sh |
335 |
=================================================================== |
336 |
--- trunk/targets/tinderbox/tinderbox-chroot.sh 2008-02-28 03:41:54 UTC (rev 1332) |
337 |
+++ trunk/targets/tinderbox/tinderbox-chroot.sh 2008-02-28 03:59:26 UTC (rev 1333) |
338 |
@@ -14,7 +14,7 @@ |
339 |
do |
340 |
if [ -n "${clst_VERBOSE}" ] |
341 |
then |
342 |
- run_emerge --usepkg --buildpkg --newuse -vp $x |
343 |
+ run_merge --usepkg --buildpkg --newuse -vp $x |
344 |
echo "Press any key within 15 seconds to pause the build..." |
345 |
read -s -t 15 -n 1 |
346 |
if [ $? -eq 0 ] |
347 |
@@ -26,7 +26,7 @@ |
348 |
|
349 |
mkdir -p /tmp/packages/$x |
350 |
export PORT_LOGDIR="/tmp/packages/$x" |
351 |
- run_emerge $x |
352 |
+ run_merge $x |
353 |
|
354 |
if [ "$?" != "0" ] |
355 |
then |
356 |
|
357 |
-- |
358 |
gentoo-commits@l.g.o mailing list |