Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-devhelp
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Mike Frysinger <vapier@g.o>
From: Nikos Chantziaras <realnc@...>
Subject: Re: Mutually exclusive USE flags
Date: Thu, 04 Feb 2010 01:48:11 +0200
On 02/03/2010 03:49 AM, Mike Frysinger wrote:
> On Sunday 31 January 2010 11:18:47 Nikos Chantziaras wrote:
>> In pkg_setup():
>>
>>     if use alsa&&  use oss ; then
>>       einfo
>>       ewarn "You have enabled both the \"alsa\" as well as the \"oss\" USE
>>             flags. It"
>>       ewarn "is not possible to build mozilla-firefox or xulrunner with
>>              support for"
>>       ewarn "both. ALSA will be used in this case. If you want OSS
>>              support, unset the"
>>       ewarn "\"alsa\" USE flag and leave only \"oss\" set."
>>     fi
>
> i personally use terse messages like:
> 	You have USE='oss alsa'.  It is not possible to use both, so
> 	ALSA has been selected by default.
> i figure the end user can figure out the rest.  up to you of course.

Rather up to the maintainer of the ebuilds :)


>> In src_configure():
>>
>>     # Enable/Disable audio in firefox
>>     if use alsa || use oss ; then
>>       mozconfig_annotate '' --enable-ogg
>>       mozconfig_annotate '' --enable-wave
>>     fi
>>
>>
>> In this last one, I'm not sure how to pass something to the first
>> argument of mozconfig_annotate.  The original was:
>>
>>     mozconfig_use_enable alsa ogg
>>
>> which translates into:
>>
>>     mozconfig_annotate 'alsa' --enable-ogg
>>
>> The point is that the user will see which USE flags are responsible for
>> "--enable-*" and "--disable-*" options.  Unfortunately, this:
>>
>>     mozconfig_use_enable ( alsa || oss ) ogg
>>
>> is not possible.  Should I therefore write the block twice in a nested
>> if block or leave it as is (and losing the information about which USE
>> flag resulted in "--enable-ogg|wave"?)
>
> wouldnt these make more sense behind USE=ogg and USE=wav ?

Probably, but again: it's not really up to me.  I just wanted to come up 
with something that will not result in too much pain with the one 
maintaining the ebuilds.


References:
Mutually exclusive USE flags
-- Nikos Chantziaras
Re: Mutually exclusive USE flags
-- Mike Frysinger
Re: Mutually exclusive USE flags
-- Nikos Chantziaras
Re: Re: Mutually exclusive USE flags
-- Mike Frysinger
Navigation:
Lists: gentoo-devhelp: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Mutually exclusive USE flags
Next by thread:
Re: Mutually exclusive USE flags
Previous by date:
Re: Re: Mutually exclusive USE flags
Next by date:
How do I select a specific Git "head" in live ebuilds?


Updated Jun 03, 2012

Summary: Archive of the gentoo-devhelp mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.