Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o, "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] per package environment: generalize the mechanism to be profile specific
Date: Mon, 22 Sep 2014 18:17:01
Message-Id: 54206795.90800@gentoo.org
In Reply to: Re: [gentoo-portage-dev] [PATCH] per package environment: generalize the mechanism to be profile specific by Bertrand Simonnet
1 On 09/22/2014 09:16 AM, Bertrand Simonnet wrote:
2 > Zac, Michal,
3 >
4 > Would you be willing to merge this ?
5 > If env/ instead of package.env is a deal breaker, I can change that.
6 > A bashrc like mechanism is more practical for us but package.env will do
7 > the trick too
8 > and we really want to have this in mainline portage.
9 >
10 > Thanks,
11 > Bertrand
12
13 In order to solve Michał's concern about the "hardcoded list of atoms",
14 we might choose this slightly different approach:
15
16 In python, parse package.env atom/file associations from the profile,
17 and pass the associated file names to bash as array, so that those files
18 can be sourced by bash.
19
20 Thoughts?
21 --
22 Thanks,
23 Zac

Replies