On 04/01/2012 01:29 AM, Ulrich Mueller wrote:
>>>>>> On Sat, 31 Mar 2012, Zac Medico wrote:
> 
>>> The problem is that apart from T (and maybe HOME), there seems to
>>> be no other directory that check_reqs.eclass could use for its disk
>>> space check in pkg_pretend. WORKDIR doesn't exist in pkg_* phases.
> 
>> How about PWD?
> 
> No sure. Do all package managers set it to a parent dir of WORKDIR
> in pkg_pretend?

Since bug 388593 [1], portage uses the normal PORTAGE_TMPDIR for
pkg_pretend. Before that is was using the default temp dir from python's
tempfile module (which defaults to /tmp).

> At least PMS doesn't say so:
> 
> | 10.1.1 Initial Working Directories
> | [...] it may be set to anything and the ebuild must not rely upon
> | a particular location for it.

Maybe something for EAPI 5?

[1] https://bugs.gentoo.org/show_bug.cgi?id=388593
-- 
Thanks,
Zac

Reply via email to