Gentoo Archives: gentoo-dev

From: Anton Starikov <antst@×××××××.se>
To:
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] per-package environment variables.
Date: Wed, 01 Sep 2004 00:00:40
Message-Id: 41351121.8030304@ifm.liu.se
In Reply to: Re: [gentoo-dev] per-package environment variables. by Mike Frysinger
1 I didn't get it :)
2 I'm one person, Anton Starikov and Antst :) antst - just my mailbox :))
3
4 So, /etc/portage/packages.env/ seems to be good. That sound cleaner,
5 right. But, can you imaging, I'm going to edit 10 files next time, when
6 to ICC, for example, will be added some nice optimization flag which I'm
7 going to use.
8 So, the basic point is that they are really "per-package" sollution. If
9 we want to keep it. I guess it can be extended, to have directories like
10 /etc/portage/packages.env/bash/
11 Where you can put multiple files similar to /etc/env.d/
12 So, you can make one env file, and make just symbolic links to it for
13 different packages.
14 So, idea to include some kind of sollution which not strictly
15 "per-package". So, you can define something, and easy include/exclude it
16 for different packages.
17
18
19 Mike Frysinger wrote:
20 > On Tuesday 31 August 2004 06:26 pm, Antst GD wrote:
21 >
22 >>For the moment both solutions looks ugly for me. At least I can't
23 >>imaging simple and easy-to-understand syntax for package.env, which will
24 >>look nice and will parce without problems.
25 >>
26 >>What do you think about?
27 >
28 >
29 > most of what you proposed seems excessive and confusing (and like you say,
30 > ugly) ... a cleaner/simpler solution can be taken from your work though i
31 > think ...
32 >
33 > we have a directory:
34 > /etc/profile/packages.env/
35 >
36 > in this directory we have simple bash (bash because we can just source it and
37 > be done with it) files which line up in a similar fashion to the portage
38 > tree ... for example, if i want an env file for bash, i would have:
39 > /etc/profile/packages.env/app-shells/bash
40 >
41 > i think this is about all we need ... and like Antst pointed out, this looks
42 > like it'd be real simple to implement ...
43 > -mike
44
45
46 --
47 Anton Starikov
48
49 --
50 gentoo-dev@g.o mailing list