Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Gentoo Prefix: on EPREFIX, ED and EROOT inside ebuilds
Date: Thu, 26 Nov 2009 10:02:21
Message-Id: pan.2009.11.26.10.01.23@cox.net
In Reply to: Re: [gentoo-dev] Gentoo Prefix: on EPREFIX, ED and EROOT inside ebuilds by Fabian Groffen
1 Fabian Groffen posted on Thu, 26 Nov 2009 09:53:04 +0100 as excerpted:
2
3 >> > Next to that, it is part of the Prefix team's job to make sure that
4 >> > whatever is installed, does not reference the host system when this
5 >> > is not absolutely necessary.
6 >>
7 >> Could you give some examples of when it is absolutely necessary?
8 >
9 > Simple example is perl. If you install a script, for instance ekeyword,
10 > then it is important that this script doesn't say '#!/usr/bin/perl' in
11 > its shebang. "/usr/bin/perl" may simply not exist, but more importantly
12 > it is not the perl that Portage has installed and also installed all
13 > required dependencies for. Hence, ekeyword should be installed such
14 > that it references the perl from the offset installation, e.g.
15 > "/home/joe/gentoo/usr/bin/perl".
16 >
17 > "/bin/sh" is another nice one.
18
19 At least here, that it would ordinarily be best to reference the prefix
20 system was taken for granted, so when it's "absolutely necessary" to
21 reference the host system is the interesting case, and how I parsed the
22 request. You provided examples of just the opposite, the case I (and
23 evidently Denis, if I parsed the request correctly) assumed to be normal,
24 where referencing the prefix is strongly desirable or "absolutely
25 necessary".
26
27 --
28 Duncan - List replies preferred. No HTML msgs.
29 "Every nonfree program has a lord, a master --
30 and if you use the program, he is your master." Richard Stallman

Replies