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
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:
3 >> The spec seems to be clear that T is legal in all phases, including
4 >> pkg_pretend.
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:
9 > "pkg_pretend must not write to the filesystem."
10 > (
12 That's not necessarily a contradiction. Writing being not allowed
13 doesn't imply that the directory must not exist.
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.
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.
24 Ulrich


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