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