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