Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Guidelines for IUSE defaults
Date: Tue, 07 Feb 2017 13:28:03
Message-Id: 45d991e1-ad41-77c7-748e-0917e0f4e668@gentoo.org
In Reply to: Re: [gentoo-dev] Guidelines for IUSE defaults by Ulrich Mueller
1 On 02/07/2017 02:52 AM, Ulrich Mueller wrote:
2 >
3 > I see no point in discouraging IUSE defaults, given that they are
4 > purely advisory for the package manager:
5 >
6 > "[...] any use flag name in IUSE may be prefixed by at most one of a
7 > plus or a minus sign. If such a prefix is present, the package manager
8 > may use it as a suggestion as to the default value of the use flag if
9 > no other configuration overrides it." [1]
10 >
11 > Portage can be made to ignore IUSE defaults by omitting "pkginternal"
12 > from USE_ORDER, i.e. by adding the following line to make.conf [2]:
13 >
14 > #USE_ORDER="env:pkg:conf:defaults:pkginternal:repo:env.d"
15 > USE_ORDER="env:pkg:conf:defaults:repo:env.d"
16 >
17 > One could even think about adding this to a future minimal profile.
18 >
19
20 The thread wasn't about discouraging IUSE defaults, rather to decide
21 when they are appropriate. You cannot omit "pkginternal" from USE_ORDER,
22 because you will break all of the packages whose defaults are either
23 critical to the package, or prevent a REQUIRED_USE conflict.
24
25 If that means IUSE defaults are the wrong solution to those problems,
26 then it would be beneficial to have some "Guidelines for IUSE defaults"
27 so that developers solve the problems correctly.

Replies

Subject Author
Re: [gentoo-dev] Guidelines for IUSE defaults Ian Stakenvicius <axs@g.o>