On 18/06/11 13:18, Petteri Räty wrote: > On 17.06.2011 20:18, Mike Frysinger wrote: >> On Friday, June 17, 2011 12:25:21 Torsten Veller wrote: >>> * justin <j...@gentoo.org>: >>>> Now using the new pkg_pretend for EAPI=4 >>> >>> While T is defined in all phases, PMS also says that "pkg_pretend must >>> not write to the filesystem". >>> >>> Is it allowed to write to T or not? Can the specs be clearer if it's >>> allowed? >> >> sounds like a good reason to use emktemp as that'll utilize /tmp for files >> when $T is unavailable >> > > That approach would still write to the filesystem. With the current text > the PM is probably allowed to set the sandbox so that writing is > anywhere is denied. > > Regards, > Petteri >
The reason why it would be beneficial to use is the pkg_pretend phase is simply that the checks would run at the beginning of a emerge and it would fail directly instead somewhere in the middle. For a single package it won't change much but for a huge emerge it changes the things. But when there is no writing allowed during the pretend phase. then the only chance is to move it to pkg_setup. thanks for clarification.
signature.asc
Description: OpenPGP digital signature