This happens a lot. If you run emerge -Du world, and don't have a tediously slow machine, chances are pretty good that at some point you'll emerge a package which will "automatically" overwrite some config option. It'll tell you about it, but you probably won't be watching. The shadow package was doing this for a while, and was overwriting the PAM configuration -- screwing anyone who used any non-standard PAM options.
The last two options are ok, however this should be part of portage, not an external script. There is a bug filed against portage for this, but it's been about two years and nothing has actually happened. It's possible this will be included in the 'next version of portage', whenever that comes out.
You can set specific USE flags for a given package in the package attribute /etc/portage/package.use. Those flags will then be applied to that package as though they were specified on the CommandLine. Eg., to build BitTorrent without X11 support:
echo net-p2p/bittorrent -X >> /etc/portage/package.use
Packages can be flagged as masked for a number of reasons. Mostly they are masked because they might break something, or they WILL break something. These tend to be masked in /usr/portage/profiles/packages.mask, and you can either forcibly install the package (see later), or unmask the package by commenting out the line. Note that this file is rebuilt everytime you emerge sync. There is rumour of support for a packages.unmask file, but this doesn't seem to work (16 Jun 2003)
The other reason packages can be masked is that they are in the 'unstable' branch of the gentoo tree. This is essentially the same as unstable in debian. Sometimes things will break, othertimes they'll be fine. You're on your own.
The only recommended way to install masked packages is to add to /etc/portage/packages.keywords an entry for the package you want to build. Do NOT, whatever you do, emerge the .ebuild directly, or try to override ACCEPT_KEYWORDS on the CommandLine. Eg., if you want to emerge XFce4 from the unstable tree, do:
echo wm-x11/xfce4 ~x86 >> /etc/portage/package.keywords echo =wm-x11/xfce4-4.0.0 ~x86 >> /etc/portage/package.keywords # specific version of the package echo ~wm-x11/xfce4-4.0.0 ~x86 >> /etc/portage/package.keywords # all revisions of a specific version
2 pages link to GentooNotes:
lib/plugin/WlugLicense.php:99: Warning: Invalid argument supplied for foreach()
lib/plugin/WlugLicense.php:111: Notice: Undefined variable: ignore_authors