Gentoo Archives: gentoo-dev

From: Bernard Cafarelli <voyageur@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] package.use.mask / package.use.stable.mask priority
Date: Wed, 11 Jan 2017 10:07:04
Message-Id: 078dba625187f46a502d9ee886b71898@gentoo.org
In Reply to: Re: [gentoo-dev] package.use.mask / package.use.stable.mask priority by Ulrich Mueller
1 Le 11/01/2017 8:30, Ulrich Mueller a écrit :
2 >>>>>> On Tue, 10 Jan 2017, Zac Medico wrote:
3 >
4 >> On 01/10/2017 01:56 PM, Bernard Cafarelli wrote:
5 >>> gnustep-base/gnustep-make has a USE flag (libobjc2) masked globally
6 >>> in
7 >>> base/package.use.mask, and unmasked on specific arches in
8 >>> arch/{amd64,x86}/package.use.mask
9 >>>
10 >>> To get a stabilization (#579232) bug finally moving on, I wanted to
11 >>> leave this flag out, adding a corresponding line in
12 >>> base/package.use.stable.mask
13 >
14 > So do I understand this correctly, there is:
15 > flag in base/package.use.mask,
16 > -flag in arch/{amd64,x86}/package.use.mask, and
17 > flag in base/package.use.stable.mask?
18
19 Exactly :)
20
21 >>> But repoman replied with a batch of dependency.bad errors...
22 >>> Does package.use.mask (stable and ~arch) have a higher priority on
23 >>> package.use.stable.mask (stable only)? Bug or intended behavior?
24 >
25 >> If I understand you correctly, then it's the intended behavior. If the
26 >> flag is masked in both package.use.mask and package.use.stable.mask,
27 >> then the package.use.stable.mask setting is irrelevant because both
28 >> package.use.mask and package.use.stable.mask are considered when
29 >> calculating use.mask settings for any given package.
30 >
31 > I believe this is not correct. package.use.stable.mask should take
32 > precedence within the same profile:
33 > https://projects.gentoo.org/pms/6/pms.html#x1-58002r1
34 >
35 > The problem here is rather that the base profile is processed as a
36 > whole before the arch specific profile, so you end up with -flag from
37 > the arch profile.
38 >
39 > Putting flag in arch/{amd64,x86}/package.use.stable.mask should solve
40 > it.
41 Indeed, I tested (and committed) this yesterday and repoman was happy
42 again
43
44 --
45 Bernard Cafarelli (Voyageur)
46 Gentoo developer

Replies