forcing a USE flag if another is on
Amit Dor-Shifer posted on Wed, 30 Dec 2009 16:45:40 +0200 as excerpted:
> Is there some method of specifing "if USE flag X is enabled, enable USE
> flag y as-well"? Something like a "conditional" use.force file in
> profiles/. Amit
That should be doable globally using /etc/portage/bashrc or the like (
/etc/portage/profile/bashrc). For specific packages, it's doable using
/etc/portage/env/cat-egory/<pkgname> files, altho that's not so well
documented.
In any of those cases, syntax is standard bash, so you get the full range
of bash conditionals and scripting available to setup your environment as
complicated as you wish. (However, it is my understanding that the
/etc/portage/env files only get sourced for the bash/ebuild.sh side of
portage, not for the python side, so stuff like depchecks and features
that are dealt with on the python side, won't necessarily work as
expected. Test it if in doubt... or put it in one of the bashrcs, with a
conditional so it's only applied to the package in question.)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
|