1 |
On Fri, 2004-12-03 at 19:58 +0900, Jason Stubbs wrote: |
2 |
> On Friday 03 December 2004 04:53, Sven Vermeulen wrote: |
3 |
> > Rac pointed me to the following thread: |
4 |
> > http://forums.gentoo.org/viewtopic.php?t=254119 |
5 |
> > |
6 |
> > In short, he advises to use stage3 even if you want to perform a stage1 or |
7 |
> > stage2 so that you won't have issues with things like circular dependencies |
8 |
> > (foo depends on bar which depends on foo) and files on your system that |
9 |
> > aren't registered in Portage' DB. |
10 |
> |
11 |
> For what it's worth, I fully agree with this. After every release, a few bugs |
12 |
> come in about broken bootstraps - especially with regards to the perl USE |
13 |
> flag. Circular dependency handling should be done properly by about the time |
14 |
> of 2005.1 though. |
15 |
> |
16 |
> Possibly more important is the fact that the portage db is stripped for a |
17 |
> stage1 (and stage2?) tarball. This means that there are many files left |
18 |
> behind that are never removed. This also has the ability cause bugs, which |
19 |
> are unfortunately much harder to track down. |
20 |
|
21 |
Then why don't we quit stripping it? I'm sure whomever's idea it was to |
22 |
strip /var/db/pkg in these tarballs isn't around anymore, anyway. Who's |
23 |
to say we cannot reverse that decision? |
24 |
|
25 |
> Robert's solution is much better, but thus far I've been doing: |
26 |
> tar jxfvp stage3; chroot; ... ; nano -w /etc/make.conf ; |
27 |
> emerge -e system; emerge -e system; emerge depclean |
28 |
|
29 |
...or we could fix it, so it would be more like: |
30 |
tar vxjpf stage1; chroot; ... ; nano -w /etc/make.conf; |
31 |
scripts/bootstrap.sh; emerge -e system |
32 |
|
33 |
We could have the bootstrap script force re-installation of packages, |
34 |
even if they were "up to date". We also could add a depclean to the end |
35 |
of the script, to automatically remove the unwanted pieces, rather than |
36 |
forcing the user to do it. |
37 |
|
38 |
> Changing that first "emerge -e system" into bootstrap.sh would save a lot of |
39 |
> time though. ;) |
40 |
|
41 |
-- |
42 |
Chris Gianelloni |
43 |
Release Engineering - Operational/QA Manager |
44 |
Games - Developer |
45 |
Gentoo Linux |