Gentoo Archives: gentoo-alt

From: Markus Duft <mduft@g.o>
To: gentoo-alt@l.g.o
Cc: grobian@g.o
Subject: [gentoo-alt] prefix chaining
Date: Wed, 25 Mar 2009 09:49:47
Message-Id: 1237974231.8576.13.camel@localhost
1 Hi!
2
3 i'm done working on my prefix-chaining project for now. i have
4 (attached) patches ready for commit (and 2 new packages, but that should
5 not matter to anyone anyway :))
6
7 the one is a newer version of the portage patch i submitted lately, and
8 the other one patches baselayout, so that prefix chaining can work.
9
10 for all these things i can say: they won't hurt anybody, as long as
11 there is no READONLY_EROOT set in make.conf, which should not be the
12 case ;) that's the trigger that activates all changes.
13
14 if there is no READONLY_EROOT, behaviour of all parts of portage and
15 baselayout should be exactly the same.
16
17 ok to commit? maybe we could think about checking the portage patch into
18 the prefix-portage svn tree?
19
20 since i haven't commented on the baselayout patch yet, i'll do it here
21 (the portage patch is basically the same as the one i submitted lately,
22 with small improvements):
23
24 etc/env.d/00basic:
25 * added EPREFIX variable, since if the currently used portage
26 instance comes from a chained prefix, portage needs to be
27 explicitly informed of the EPREFIX. this should not disturb
28 anybody, since it can be overridden after starting the prefix
29 again...
30 etc/profile:
31 * the profile now sources all profiles (recursively) of all
32 parent prefixes in the chain.
33 * if we are in a chained environment, some variables need
34 speacial treatment, since i want some of the chained envs to
35 be there in the current prefix. (PATH, MANPATH and in some
36 cases PKG_CONFIG_PATH. others may come...)
37 * if we are in a chained environment, don't append /usr/.. and
38 /... paths to PATH, unless we're the top level prefix in the
39 chain (which behaves the same as if there where no chain).
40 * the last hunk is for correctly setting the chained variables
41 which i listed above (PATH, MANPATH, etc.).
42
43 Questions?
44
45 If nobody has objections, i'll commit. i'll wait a few hours before
46 committing.
47
48 Cheers, Markus

Attachments

File name MIME type
portage-2.2.00.13133-prefix-chaining.patch text/x-patch
baselayout-1.12.5-prefix-chaining.patch text/x-patch

Replies

Subject Author
Re: [gentoo-alt] prefix chaining Fabian Groffen <grobian@g.o>
Re: [gentoo-alt] prefix chaining Fabian Groffen <grobian@g.o>