On 18/06/11 15:08, Ciaran McCreesh wrote: > On Sat, 18 Jun 2011 14:18:28 +0200 > justin <j...@gentoo.org> wrote: >> 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. > > Hang on... What happens if someone doesn't have a fortran compiler > installed, but installs one and then installs a fortran-using package > all as part of the same group of packages? Then your pkg_pretend will > fail incorrectly.
That's a serious reason to go to pkg_Setup, which ends the discusion. thanks. > > Also, you appear to be assuming that environment variable saving > carries over from pkg_pretend to later phases. It doesn't. > If I get it correctly the pretend phase is also executed when the individual packages gets emerged not only when the emerge of multiple packages is started. But the original intention of everything is that user can do FC=myFortranCompiler emerge foo. And there the FC will be preserved for every package. Thanks justin
signature.asc
Description: OpenPGP digital signature