Introduction
This guide will attempt to give instructions on doing a fresh install from stage 1 using 2.6 headers and the nptl USE flag set. Beware that this is still considered testing/unstable, so use at your own risk. Instead of repeating basic installation steps, I will refer to the Gentoo 1.4 Installation Instructions: http://www.gentoo.org/doc/en/gentoo-x86-install.xml.
make.conf
Follow all installation instructions until you get to the section on editing make.conf. Add nptl to the USE flags along with whatever else you use. This is the only thing different you need to do with make.conf.
Editing the linux-headers ebuild
At the time of this writing, the most current 2.6 headers ebuild is linux-headers-2.6.1.
Code: Select all
# nano /usr/portage/sys-kernel/linux-headers/linux-headers-2.6.1.ebuildCode: Select all
KEYWORDS="-* x86"Starting the bootstrap process
The most annoying part of installing Gentoo, IMO (Especially the time I installed Gentoo from stage 1 on a P233). Anyways, to start the bootstrap process, type:
Code: Select all
# /usr/portage/scripts/bootstrap-2.6.shemerge system
Just a few notes on stage 2.
1. Add the following to make.conf:
Code: Select all
ACCEPT_KEYWORDS="~x86"2. The last couple of time I have done this, emerge system failed while compiling iputils. For some reason a couple dependencies weren't installed first. If it fails, try emerge flex (it complains abow -lfl not existing). I also found that it will fail because autoconf isn't installed yet, so emerge autoconf. Then continue with emerge system.
Follow the rest of the installation instructions. NOTE: don't forget to install a 2.6 kernel
First boot
Hopefully the install went smoothly. The first thing I would recommend that you do is re-emerge glibc, so that NPTL support will be compiled in. I didn't realize this at first (I thought that because I had nptl in the use flags before bootstrap, that it would built it with NPTL support). You can check by running:
Code: Select all
# /lib/libc.so.6
GNU C Library stable release version 2.3.3, by Roland McGrath et al.Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.2 20040119 (Gentoo Linux 3.3.2-r7, propolice-3.3-7).
Compiled on a Linux 2.6.1 system on 2004-02-13.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
NPTL 0.60 by Ulrich Drepper
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <bugs@gnu.org>.
Hint
If you are unable to get some package to compile successfully, make sure you look in the ebuild directory for that package, to see if there is a newer ebuild. Just because ACCEPT_KEYWORDS is set to ~x86 doesn't mean there isn't a newer version. Some ebuilds (for example, linux-headers-2.6.1) are unmasked for everything.
Any problems, feedback, corrections, etc are encrouraged.
Have fun.
--
Aaron




