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. |