1 |
On 11/19/19 2:17 PM, Joakim Tjernlund wrote: |
2 |
> cat profile.bashrc |
3 |
> if [ "${HOSTNAME}" == "gentoo64.infinera.com" ]; then |
4 |
> # This does not work, why? |
5 |
> [ -z "$_once" ] && EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} -k n" && _once=1 |
6 |
> [ -z "$_fonce" ] && FEATURES="${FEATURES} buildpkg" && _fonce=1 |
7 |
> export EMERGE_DEFAULT_OPTS |
8 |
> export FEATURES |
9 |
> fi |
10 |
> |
11 |
> If I add logging inside I see that these are set but emerge |
12 |
> does not build binpkgs, what am I missing ? |
13 |
> |
14 |
> sys-apps/portage-2.3.79 |
15 |
> |
16 |
> Jocke |
17 |
> |
18 |
|
19 |
You can use /etc/portage/package.env to modify FEATURES. The bashrc is |
20 |
evaluated only when executing ebuilds, so it's not appropriate for |
21 |
FEATURES modifications. |
22 |
-- |
23 |
Thanks, |
24 |
Zac |