1 |
>>>>> On Sat, 31 Mar 2012, Tiziano Müller wrote: |
2 |
|
3 |
>> The spec seems to be clear that T is legal in all phases, including |
4 |
>> pkg_pretend. |
5 |
|
6 |
> Well, I'd say: there is no sane value you can assign to $T since you |
7 |
> are not allowed to write anything anyway: |
8 |
|
9 |
> "pkg_pretend must not write to the filesystem." |
10 |
> (http://dev.gentoo.org/~ulm/pms/4/pms.html#x1-9700010.1.2) |
11 |
|
12 |
That's not necessarily a contradiction. Writing being not allowed |
13 |
doesn't imply that the directory must not exist. |
14 |
|
15 |
> and since "pkg_pretend is run separately from the main phase |
16 |
> function sequence, and does not participate in any kind of |
17 |
> environment saving" it is not guaranteed to be set to the same $T |
18 |
> later. |
19 |
|
20 |
The problem is that apart from T (and maybe HOME), there seems to be |
21 |
no other directory that check_reqs.eclass could use for its disk space |
22 |
check in pkg_pretend. WORKDIR doesn't exist in pkg_* phases. |
23 |
|
24 |
Ulrich |