Gentoo Archives: gentoo-pms

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] Write to filesystem in pkg_* phases
Date: Mon, 02 Jun 2014 14:47:13
Message-Id: 20140602154704.3a24a62f@googlemail.com
In Reply to: [gentoo-pms] Write to filesystem in pkg_* phases by Ulrich Mueller
1 On Mon, 2 Jun 2014 11:42:07 +0200
2 Ulrich Mueller <ulm@g.o> wrote:
3 > This topic was already discussed in -dev some time ago [1], but went
4 > nowhere at the time. Now it came up again in bug 469210 [2].
5 > (Ironically, checking for a particular kernel configuration is the
6 > example mentioned in the spec for pkg_pretend.)
7
8 That's not ironic! It's not the spec's fault that people write lousy
9 eclasses.
10
11 > We say in Table 11.1 [3] that T and TMPDIR (and HOME) are legal in all
12 > phases and must be "the location of a usable temporary directory". At
13 > the same time, we say in the spec for pkg_* phases that they "must not
14 > write to the filesystem" [4], or that they "must not write outside of
15 > the directories specified by the ROOT and D environment variables" [5]
16 > which effectively forbids writing to the ${T} etc. directories.
17
18 The point of them pointing to a usable directory is just to avoid
19 problems with things that break if the variable is empty or set to
20 nonsense.
21
22 --
23 Ciaran McCreesh

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-pms] Write to filesystem in pkg_* phases Ulrich Mueller <ulm@g.o>
Re: [gentoo-pms] Write to filesystem in pkg_* phases "Michał Górny" <mgorny@g.o>