From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 806711386F3 for ; Wed, 12 Aug 2015 17:51:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FE51142D0; Wed, 12 Aug 2015 17:51:06 +0000 (UTC) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3039014284 for ; Wed, 12 Aug 2015 17:51:05 +0000 (UTC) Received: by wicne3 with SMTP id ne3so110010418wic.0 for ; Wed, 12 Aug 2015 10:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=JyJ0ycLwA3Zyg6kNvMBKf8CSTfwlDwE7DwfcFyrc0Tg=; b=yZ7xdspRUWYb74W3qhRzdYcjNfTNNq39B25+9n0pewgLrjZTicf5/E802tENtrpkvE a2N7DcEB28Iy/JAA2WDJmdkLhZlsOL12GaT+UcI5+Z5UROsQ9K+O6xkUn/BDLVkWCU8l AJY0Oc3FM6pKUvtdEER5vQppWmeKQ9jsKCPV7yqELYCPwyMOduS7HkixqwVmVbEjng30 tkvo6sEejONoJkZBFZ9rOlG/2fL4WW+Ta3Ycwh4g+yyRTGDgHfVe+kJf44RqHDb+hC5g Ip86pk+R1qc1XGLGkLMHYskXdvTQOz1XzElIQVgunj6IiOJd+2zA/e5M1uJtwSmy72o0 GIog== X-Received: by 10.194.91.241 with SMTP id ch17mr26236033wjb.61.1439401859131; Wed, 12 Aug 2015 10:50:59 -0700 (PDT) Received: from localhost (cpc67371-broo7-2-0-cust693.14-2.cable.virginm.net. [82.28.182.182]) by smtp.gmail.com with ESMTPSA id bi6sm8981227wjc.25.2015.08.12.10.50.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Aug 2015 10:50:58 -0700 (PDT) Date: Wed, 12 Aug 2015 18:50:53 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: useflag policies Message-ID: <20150812185053.49f525fb@googlemail.com> In-Reply-To: <21963.34267.514237.473502@a1i15.kph.uni-mainz.de> References: <55C7AC24.2040503@gentoo.org> <55C9CA32.3060300@gentoo.org> <55C9F189.10102@gentoo.org> <20150812052120.5a83c3b1@googlemail.com> <55CB4CB0.8050208@gentoo.org> <20150812143819.GA25080@linux1> <20150812182304.0452d97d@googlemail.com> <21963.33933.738893.285125@a1i15.kph.uni-mainz.de> <21963.34267.514237.473502@a1i15.kph.uni-mainz.de> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.26; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/_1LBzWhVu3BHDCVSBsvdJKD"; protocol="application/pgp-signature" X-Archives-Salt: 60350737-dd8a-4905-9532-8e5aee5649a3 X-Archives-Hash: 34709399479c0f00b02a550222546834 --Sig_/_1LBzWhVu3BHDCVSBsvdJKD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 12 Aug 2015 19:43:55 +0200 Ulrich Mueller wrote: > >>>>> On Wed, 12 Aug 2015, Ulrich Mueller wrote: > > Hm, how about adding a new PM command like "required_use foo -bar"? > > It would be used exclusively in pkg_pretend, and tell the PM to > > suggest the necessary package.use changes to the user (or even > > update them automatically with the appropriate --autounmask-* > > option). >=20 > To clarify, I'm thinking about something like this: >=20 > pkg_pretend() { > if use qt4; then > required_use -qt5 > else > required_use qt5 > fi > } >=20 > The advantage would be that any number of elog messages could be added > which would further explain things to the user. And how would the PM understand that -qt5 is conditional upon qt4? Such knowledge is required if it's supposed to auto-resolve stuff... --=20 Ciaran McCreesh --Sig_/_1LBzWhVu3BHDCVSBsvdJKD Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlXLh30ACgkQ96zL6DUtXhFlYACgrK/33ltKvGCEXDTR7uULoWm0 S+EAniJtuhmEr/dAjCJy9gly3l3LdNtE =sbI0 -----END PGP SIGNATURE----- --Sig_/_1LBzWhVu3BHDCVSBsvdJKD--