Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: [gentoo-pms] Write to filesystem in pkg_* phases
Date: Mon, 02 Jun 2014 09:42:15
Message-Id: 21388.18159.956558.690893@a1i15.kph.uni-mainz.de
1 This topic was already discussed in -dev some time ago [1], but went
2 nowhere at the time. Now it came up again in bug 469210 [2].
3 (Ironically, checking for a particular kernel configuration is the
4 example mentioned in the spec for pkg_pretend.)
5
6 We say in Table 11.1 [3] that T and TMPDIR (and HOME) are legal in all
7 phases and must be "the location of a usable temporary directory". At
8 the same time, we say in the spec for pkg_* phases that they "must not
9 write to the filesystem" [4], or that they "must not write outside of
10 the directories specified by the ROOT and D environment variables" [5]
11 which effectively forbids writing to the ${T} etc. directories.
12
13 What is the purpose of this restriction? From above mentioned bug I
14 conclude that neither Portage nor Paludis enforce it.
15
16 Ulrich
17
18
19 [1] https://archives.gentoo.org/gentoo-dev/msg_ea6dce57c39ff597afdca7ba74f7cc73.xml
20 [2] https://bugs.gentoo.org/show_bug.cgi?id=469210
21 [3] http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-118002
22 [4] http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-960009.1.2
23 [5] http://dev.gentoo.org/~ulm/pms/5/pms.html#x1-1040009.1.10

Replies

Subject Author
Re: [gentoo-pms] Write to filesystem in pkg_* phases Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
[gentoo-pms] [PATCH] Re: Write to filesystem in pkg_* phases Ulrich Mueller <ulm@g.o>