|
发表于 2005-1-28 21:45:22
|
显示全部楼层
Yes, its possible. Yes, it works fine. I risked my perfectly stable Linux install to do this. And I'm still using it. Only its Gentoo-ified.
requires:
Python 2.2.x
Development Packages (gcc, binutils, automake, autoconf, libtool, etc)
Patience
Go to any Gentoo mirror, and download the portage tarball. Uncompress it, and go down.
[code:1]
cd bin/
cp * /usr/bin
cd ../pym
cp * /usr/lib/python2.2/site-packages
cd ../man
cp *.1 /usr/man/man1
cp *.5 /usr/man/man5
cd ../src/missingos
./setup.py install
cd ../sandbox-1.1
make && make install
cd ../../cnf
cp * /etc
cd ..
cp make.profile/ /etc
[/code:1]
You now have a basic working Portage installation. As root, emerge sync. This will install the Portage tree. Now, this is where you customise stuff. Go to /usr/portage/profiles, and copy in the proper profile for your install. If you're using gcc-3.2, use one of the 1.4 profiles (the one for your arch). If not, use default.
Now, edit your /etc/make.conf and add any USE variables you want. Read /usr/portage/use.desc for more information. If you use gcc-3.2, add COMPILER="gcc3" to your make.conf.
Now, if you try to emerge anything, it will really complain about dependencies. Simply do the following to get rid of glibc complaints:
[code:1]
emerge inject sys-libs/glibc-version.
emerge inject sys-devel/gcc-version
[/code:1]
emerge anything, and it may or may not complain about tar. If it does, go to the requested line in ebuild.sh, and change all instances of --no-same-owner to --same-owner. Then emerge tar
[code:1]
emerge tar
emerge sed
emerge bash
emerge pmake
emerge sys-apps/baselayout
emerge portage
[/code:1]
baselayout installs init. Read the Gentoo docs for more.
You should be good to go now. I emerged a new gcc and many of my system tools (if you emerge awk, emerge man and less, too)
I'll add more in a bit
还可以把lfs变成debian的 ![](static/image/smiley/default/icon_mrgreen.gif) |
|