1 |
Hi gentoo-user, |
2 |
|
3 |
is there a way to set environment variables on package/ebuild granularity? I'm |
4 |
aware, that plenty of portage related environment variables are configurable by |
5 |
means of the package.env feature |
6 |
(https://wiki.gentoo.org/wiki//etc/portage/package.env). However, I didn't find |
7 |
a way to set additional environment variables. |
8 |
|
9 |
The actual reason, why I'm asking is the following: When compiling |
10 |
app-emulation/qemu, package installation fails when calling the preprocessor. |
11 |
Though, I'm able to manually solve the issue when setting the CPP environment |
12 |
variable: |
13 |
|
14 |
# export CPP="gcc -E" |
15 |
|
16 |
before running emerge. Instead of running the command again and again i.e. |
17 |
before every reinstallation of app-emulation/qemu, I'd like to set this |
18 |
environment variable for the package once (in e.g. a configuration file) and |
19 |
it's done for every future reinstallation. |
20 |
|
21 |
Regards, |
22 |
Daniel |