-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 12/08/15 02:18 PM, Ian Stakenvicius wrote: > On 12/08/15 02:00 PM, Ulrich Mueller wrote: >>>>>>> On Wed, 12 Aug 2015, Ciaran McCreesh wrote: > >>>> pkg_pretend() { if use qt4; then required_use -qt5 else >>>> required_use qt5 fi } > >>> And how would the PM understand that -qt5 is conditional >>> upon qt4? Such knowledge is required if it's supposed to >>> auto-resolve stuff... > >> Right, the above was too simple (and wrong). It should have >> been: > >> pkg_pretend() { use qt4 && use qt5 && required_use -qt5 use >> qt4 || use qt5 || required_use qt4 } > > > I think Ciaran's point was more, if required_use is going to > i.e. elog, it needs to elog that qt4 is being enabled because > neither-of qt4 or qt5 are *ON*, and similarly for why qt5 is > being disabled.
^^^ corrected logic -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlXLjh8ACgkQAJxUfCtlWe3TTAEAuJPVQQ9yoWBeBTRH2AFnFZoW 3aWWdhmClQRMo3MI43IBANkaRZOtWHhnWi31wvK+Pw0GvzkAmzEaWOFS7YxxWORO =ccVT -----END PGP SIGNATURE-----