Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Should ${T} be defined in pkg_prepare ?
Date: Sat, 31 Mar 2012 20:57:58
Message-Id: 20343.28551.166484.197058@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] Should ${T} be defined in pkg_prepare ? by "Tiziano Müller"
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

Replies

Subject Author
Re: [gentoo-dev] Should ${T} be defined in pkg_prepare ? Zac Medico <zmedico@g.o>