Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: useflag policies
Date: Wed, 12 Aug 2015 15:30:52
Message-Id: 55CB669F.8020501@gentoo.org
In Reply to: Re: [gentoo-dev] Re: useflag policies by Ulrich Mueller
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 12/08/15 11:08 AM, Ulrich Mueller wrote:
5 >>>>>> On Wed, 12 Aug 2015, Alexis Ballier wrote:
6 >
7 >> i.e. something that really tells the PM how to automate the
8 >> choice: - 'qt5 -> !qt4' is rather straightforward to solve and
9 >> tells the PM how (note that it is not equivalent to 'qt4 ->
10 >> !qt5') - '^^ ( qt5 qt4 )' requires the PM to make a choice in
11 >> order to automate it
12 >
13 > I was thinking about some syntax like this:
14 >
15 > REQUIRED_USE="|| ( +foo bar ) ^^ ( +qt5 -qt4 )"
16 >
17 > The package manager would first evaluate each group in
18 > REQUIRED_USE with the original set of USE flags. If that doesn't
19 > evaluate to true, retry with flags changed as indicated by the +
20 > and - signs.
21 >
22 > Ulrich
23 >
24
25 Having the ability for REQUIRED_USE to provide a default resolution
26 path should definitely help with things; I assume this is meant to
27 do its work via --autounmask-write or similar, ie to help users
28 adjust their config files? Or was the thought to allow PMs to
29 override USE immediately?
30
31 Questions:
32
33 1 - how does +foo in REQUIRED_USE relate to use-defaults set in IUSE?
34
35 2 - is there a particular reasoning for the - in front of qt4 here?
36 I only ask because it would seem that a single default-enable
37 should suffice in lists like this to indicate a resolution path, no?
38 That is, '^^ ( +flag1 -flag2 -flag3 -flag4 )' to me seems like it
39 would be the same as '^^ ( +flag1 flag2 flag3 flag4 )'
40
41 3 - will having REQUIRED_USE be able to force flags on (and others
42 off) likely result in abuse of profiles and other use defaults? I
43 forsee this being a way, for instance, for a dev to get around users
44 setting USE="-*" in make.conf to ensure a default use flag setting
45 is honoured.
46
47 4 - Will a change to which flag the '+' is on likely to require a
48 revbump for VDB updates? For something like '^^ ( +qt4 qt5 )' I
49 could see maintainers wanting to switch which flag is default across
50 a bunch of packages at once when, say, the qt team wants qt5 to
51 become the de-facto default.
52
53 -----BEGIN PGP SIGNATURE-----
54 Version: GnuPG v2
55
56 iF4EAREIAAYFAlXLZp8ACgkQAJxUfCtlWe0NcgEAzt6FjitYEyk6h2HufX4WiKko
57 tldpUk71Wnj+y5ejB38A/R23oq0E4PakpXg5ML8pqG8gPnyXJmIN8Fuh6Gj1Y+6Y
58 =UaQK
59 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Re: useflag policies Alexis Ballier <aballier@g.o>
Re: [gentoo-dev] Re: useflag policies Ulrich Mueller <ulm@g.o>