Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Forced/automatic USE flag constraints (codename: ENFORCED_USE)
Date: Fri, 09 Jun 2017 12:42:33
Message-Id: 1497012138.25475.1.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [RFC] Forced/automatic USE flag constraints (codename: ENFORCED_USE) by "Jason A. Donenfeld"
1 On pią, 2017-06-09 at 14:35 +0200, Jason A. Donenfeld wrote:
2 > On Mon, May 29, 2017 at 5:33 PM, Michał Górny <mgorny@g.o> wrote:
3 > >
4 > > Secondly, it might be reasonable to provide configurable priorities for
5 > > solving multi-flag constraints. For example, we could use rightmost-
6 > > preferred logic for package.use, e.g.:
7 > >
8 > > */* PROVIDER_SSL: openssl gnutls
9 > > dev-util/foo PROVIDER_SSL: polarssl
10 > >
11 > > which would mean that for all packages, gnutls is preferred over openssl
12 > > (i.e. if ?? or ^^ applies, openssl will be disabled and gnutls will be
13 > > used), and polarssl is additionally preferred over everything else for
14 > > dev-util/foo.
15 >
16 > Please, leftmost instead of rightmost?
17
18 How about the following:
19
20 dev-util/xxx foo
21 dev-util/xxx bar
22
23 should foo or bar be preferred? Leftmost may seem logical at first but
24 when you have to deal with multiple entries and stacking, it occurs to
25 you that latter entries usually override the former.
26
27 --
28 Best regards,
29 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature