On Thu, Apr 01, 2010 at 12:10:20PM +0200, Gilles Dartiguelongue wrote: > jumping on the train here, but who said PM would not feed proper data to > pkg_pretend so it would behave like the DEPEND were already built. Could > some guy involved in a PM development tell us about how this would be > handled ?
Good idea, but not really viable. The only scenario where this would work cleanly is in has_version checks which most of the time should be blockers/deps anyways. Basically, you want the PM to lie to the ebuild in some fashion. Since pkg_pretend is free form, it's effectively impossible to cover the scenarios it could check on- consider checking the kernel config/version, or checking the active jvm/python version. Some of those can sort of be handled, but it requires a lot of custom code (code that has to change as the tools involved change) to pull it off. As said, good idea, but it was ruled out due to it being techically infeasible considering the gains. ~harring
pgpkDK3dSw9Sh.pgp
Description: PGP signature