Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] [PATCH] Re: Write to filesystem in pkg_* phases
Date: Sun, 05 Jul 2020 19:04:42
Message-Id: uk0zhu6kc@gentoo.org
In Reply to: [gentoo-pms] [PATCH] Re: Write to filesystem in pkg_* phases by Ulrich Mueller
1 >>>>> On Fri, 26 Jun 2020, Ulrich Mueller wrote:
2
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 >> We say in Table 11.1 [3] that T and TMPDIR (and HOME) are legal in all
9 >> phases and must be "the location of a usable temporary directory". At
10 >> the same time, we say in the spec for pkg_* phases that they "must not
11 >> write to the filesystem" [4], or that they "must not write outside of
12 >> the directories specified by the ROOT and D environment variables" [5]
13 >> which effectively forbids writing to the ${T} etc. directories.
14
15 >> What is the purpose of this restriction? From above mentioned bug I
16 >> conclude that neither Portage nor Paludis enforce it.
17
18 > Coming back to this. As I have been told, the same is true for Pkgcore.
19 > So, find a patch included below. Please review.
20
21 Pushed.

Attachments

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