Gentoo Archives: gentoo-portage-dev

From: Jason Stubbs <jstubbs@g.o>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] [Bug 44796] Per package environment variables
Date: Thu, 03 Nov 2005 16:19:01
Message-Id: 200511040119.35736.jstubbs@gentoo.org
1 pclouds came up with an interesting patch to support per package environment
2 variables. I've updated it a little but it still needs some more work.
3 Essentially package.env would be a list of "<atom> <file> [<file> ...]" where
4 file is then read using getconfig() from /etc/portage/env/<file>.
5
6 Using such an approach would also allow us to knock off bug #55708
7 (debug.eclass). Having a file similar to the one attached
8 in /etc/portage/env/ by default would allow a user to switch a package to
9 debugging quite easily.
10
11 With a couple of small modifications to emerge to check FEATURES for
12 "buildpkg" after the call to setcpv() is done rather than doing it once
13 globally, this would also cover TGL's BUILD_PKGS addition too. Most package.*
14 type things should be able to be killed off this way.
15
16 Thoughts?
17
18 --
19 Jason Stubbs

Attachments

File name MIME type
package-env.patch text/x-diff
debug text/plain

Replies

Subject Author
Re: [gentoo-portage-dev] [Bug 44796] Per package environment variables Thomas de Grenier de Latour <degrenier@×××××××××××.fr>