Gentoo Archives: gentoo-alt

From: Zac Medico <zmedico@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] masking useflag for prefix in an overlay
Date: Wed, 01 May 2013 03:36:46
Message-Id: 51808DCA.2020200@gentoo.org
In Reply to: Re: [gentoo-alt] masking useflag for prefix in an overlay by "François Bissey"
1 On 04/30/2013 08:17 PM, François Bissey wrote:
2 > On Tue, 30 Apr 2013 20:03:13 Zac Medico wrote:
3 >> On 04/30/2013 07:45 PM, François Bissey wrote:
4 >>> Hi,
5 >>>
6 >>> I have at least one ebuild in an overlay that I try to maintain as
7 >>> prefix friendly as possible. I have discovered that one of the ebuild
8 >>> we carry has a useflag that is not working properly on macos-x86
9 >>> (at least on 10.5.8). So I proceeded to mask it in:
10 >>> profiles/prefix/darwin/macos/arch/x86/package.use.mask
11 >>> However once I synced the overlay on my Mac the useflag was still
12 >>> available for that ebuild.
13 >>>
14 >>> Am I doing something wrong or are the overlays not inheriting that part of
15 >>> the profile?
16 >>
17 >> If you do it that way, then the user's profile would have to inherit
18 >> that profile explicitly from your overlay. Instead, you probably want to
19 >> use ${repository}/profiles/package.use.mask, which has been supported
20 >> for nearly 2 years now:
21 >>
22 >> https://bugs.gentoo.org/show_bug.cgi?id=370693
23 >
24 > Ok, I actually had put it in:
25 > ${repository}/profiles/prefix/darwin/macos/arch/x86/package.use.mask
26 > I would be ok to use ${repository}/profiles/package.use.mask but how
27 > do I restrict the useflag to macos-x86 only?
28 > The overlay, sage-on-gentoo, is widely available and works for most people
29 > on regular gentoo, linux prefix and macos prefix. I don't want to do something
30 > that will affect other arches.
31
32 In that case, you probably should not bother to mask the flag. As an
33 alternative, you could use REQUIRED_USE to enforce the constraint, like
34 this:
35
36 REQUIRED_USE="macos-x86? ( !bad-flag )"
37 --
38 Thanks,
39 Zac

Replies

Subject Author
Re: [gentoo-alt] masking useflag for prefix in an overlay "François Bissey" <francois.bissey@×××××××××××××.nz>