Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: How is /etc/portage/env supposed to work?
Date: Tue, 20 Oct 2015 16:40:20
Message-Id: n05qgo$j7j$1@ger.gmane.org
In Reply to: Re: [gentoo-user] How is /etc/portage/env supposed to work? by Michael Orlitzky
1 On 20/10/15 17:26, Michael Orlitzky wrote:
2 > On 10/20/2015 10:04 AM, Nikos Chantziaras wrote:
3 >> I'm following the documentation here:
4 >>
5 >> https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/Advanced#Using_.2Fetc.2Fportage.2Fenv
6 >>
7 >> to hook into the postinst phase of an ebuild.
8 >
9 > Deja vu:
10 >
11 > http://comments.gmane.org/gmane.linux.gentoo.devhelp/151
12 >
13 > https://bugs.gentoo.org/show_bug.cgi?id=388781
14 >
15 > There's two separate uses for /etc/portage/env -- one of them will get
16 > you the make.conf parser (when you list the file in
17 > /etc/portage/package.env) and the other that will get you the bash
18 > parser (when you put the file at /etc/portage/env/${CATEGORY}/${PN}).
19 >
20 > The whole thing is confusing. If you ever get it working please put a
21 > decent example on the wiki because I remember spending hours trying to
22 > do the same thing.
23
24 As suggested by Neil, putting the code in /etc/portage/env/app-misc/mc
25 worked.
26
27 Will later write an example in the Wiki.