Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71349 - Bootstrap emerges Glibc multiple times
Summary: Bootstrap emerges Glibc multiple times
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 19:28 UTC by Kaiting Chen
Modified: 2006-03-24 13:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Revised bootstrap.sh (bootstrap.sh,10.00 KB, application/x-sh)
2004-11-16 12:28 UTC, Kaiting Chen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kaiting Chen 2004-11-15 19:28:43 UTC
I am installing Gentoo 2004.3 from Stage 1. There are a number of problems with the boostrap though.
The biggest problem is that Glibc is emerged multiple times. If I run /usr/portage/scripts/bootstrap.sh --pretend --verbose, every "chunk" of emerges will list Glibc. The problem is that if Glibc is compiled with the "userlocales" use flag, it should only install the locales listed in locales.build. However, during bootstrap, Glibc will replace /etc/locales.build with a default version, causing more locales than desired to be installed. I think the solution might be to run "emerge --nodeps --oneshot glibc" before bootstraping. However, I am very reluctant to do this, and the reason should be obvious.
This also happened with linux26-headers. When I bootstraped, linux26-headers would be emerged. Immediately following, linux-headers would try to emerge. However, since they were mutually exclusive, linux-headers would be blocked, and the bootstrap would fail. I fixed this by running "emerge --nodeps --oneshot linux26-headers" before the bootstrap.
I think these problems lie in the fact that at various times during bootstrap, packages need to be installed without their dependencies. Somewhere in the bootstrap process, the "bootstrap" and/or "build" use flags need to be set, so that packages will have no dependencies. However, somewhere, this is broken.

I'm listing this as a blocker as it renders me incapable of having a system.

Reproducible: Always
Steps to Reproduce:
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-15 19:34:59 UTC
The GLI component is for bugs with the unreleased Gentoo Installer.
Comment 2 Kaiting Chen 2004-11-16 12:27:06 UTC
I seem to have found a temporary solution, a hack, to this problem. The problem is that the stage1 2004.3 archive has the headers (not sure which version) and glibc already installed. However, it is not present in /var/db/pkg. The problem is that in the first line that installs things, some package will try to emerge glibc. However, later in the bootstrap process, glibc will by emerged again, thus leading to two emerges. I have a revised bootstrap.sh file. Can someone please create a patch, as I do not currently have the provisions necessary to make one myself. To fix the glibc problem, you will also have to do:
echo "sys-libs/glibc-2.3.4.20041102" >> /etc/portage/profiles/package.provided
You can remove it after the bootstrap.

These are really just hacks. Someone should fix this officially.
Comment 3 Kaiting Chen 2004-11-16 12:28:29 UTC
Created attachment 44095 [details]
Revised bootstrap.sh
Comment 4 SpanKY gentoo-dev 2004-11-21 17:49:34 UTC
if glibc is listed multiple times it isnt a bug in bootstrap.sh
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2004-11-22 03:15:21 UTC
glibc is *meant* to be merged multiple times. First the complete toolchain is built with the toolchain provided in the stage1. After that the toolchain is rebuilt with the newly built toolchain to ensure that your system is the "best" it can be. The non-adherance of USE flags is for QA-purposes to ensure that the system is built.

The linux-headers/linux26-headers is a different bug, which is known and fixed. It will be out with the next release of portage.
Comment 6 Jeffrey Forman (RETIRED) gentoo-dev 2006-03-24 13:46:25 UTC
Moving to Release Media/Installer.