>>>>> On Sat, 31 Mar 2012, Maciej Grela wrote:

> I've read the PMS and I haven't found information whether this variable
> is supposed to be set during pkg_prepare or not.

There is no such stage. You mean pkg_pretend, I suppose?

> Therefore I ask, what is the proper behaviour here ? Is there
> documentation on what special env variables are supposed to be
> defined in each stage ?

It's specified here:
<http://dev.gentoo.org/~ulm/pms/4/pms.html#x1-11900012.1>

| Variable   Legal in   Consistent?    Description
| ---------------------------------------------------------------------
| T          All        Partially⁴     The full path to a temporary
|                                      directory for use by the ebuild. 
|
| ⁴Consistent and preserved across a single connected sequence of
| install or uninstall phases, but not between install and uninstall.
| When reinstalling a package, this variable must have different
| values for the install and the replacement.

> Can this be considered as a bug in paludis ?

The spec seems to be clear that T is legal in all phases, including
pkg_pretend.

Ulrich

Reply via email to