业余编程爱好者
分类: LINUX
2011-01-18 10:35:24
This branch contains a beta implementation of unified Portage paths. It works like this:
/etc/make.conf is now located at /etc/portage/make.defaults /etc/portage is now a true profile - and not only that, it is *the* profile.
/etc/portage/profile has been deprecated (put stuff in /etc/portage instead)
/etc/make.profile has been deprecated - you now set your profile by creating an /etc/portage/parent file containing something like ":default/linux/amd64/2008.0" (with latest git tree.)
Portage will parse the profiles by looking at /etc/portage and recursing through the "parent" file. Remember that an initial ":" in the parent file is relative to the portage tree's "/profiles" directory.
/etc/make.globals is deprecated (it's just a symlink now anyway, but thought you might like to know it can be removed too)
After making these changes, all your Portage config should reside in /etc/portage.
What this does is move all Portage configuration inside /etc/portage, and drastically simplifies the path structure. I have not updated man pages, this is just a BETA of the code for testing purposes. There are likely bugs to be ironed out -- however, in initial tests, I have no problems and Portage seems to be parsing things like USE variables and things correctly.
To install:
First make sure you have emerged portage-2.2.1.1 and that is running well.
Then:
install -d /root/git/
cd /root/git
git clone git://github.com/funtoo/portage-funtoo.git
cd portage-funtoo
git checkout funtoo-path
cd /usr/lib
mv /usr/lib/portage /usr/lib/portage.inst
ln -s /root/git/portage-funtoo portage
To uninstall:
cd /usr/lib
mv portage portage.git
mv portage.inst portage
原文: