Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
Subject: Re: [gentoo-portage-dev] profile.bashrc variables
Date: Wed, 20 Nov 2019 06:40:43
Message-Id: 16ac018c-3f7b-66d7-2e9b-991b36b6b9a9@gentoo.org
In Reply to: [gentoo-portage-dev] profile.bashrc variables by Joakim Tjernlund
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

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-portage-dev] profile.bashrc variables Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>