Gentoo Archives: gentoo-devhelp

From: Mike Frysinger <vapier@g.o>
To: gentoo-devhelp@l.g.o
Cc: Nikos Chantziaras <realnc@×××××.de>
Subject: Re: [gentoo-devhelp] Mutually exclusive USE flags
Date: Sun, 31 Jan 2010 10:23:04
In Reply to: [gentoo-devhelp] Mutually exclusive USE flags by Nikos Chantziaras
On Saturday 30 January 2010 18:31:35 Nikos Chantziaras wrote:
> What's the best way to have an ebuild abort if two mutually exclusive > USE flags are both set? > > I'm trying the modify the mozilla-firefox and xulrunner ebuilds to > support building with OSS instead of ALSA (sadly, the current versions > of the ebuilds in Portage only allow ALSA to be enabled, not OSS), but > the build system of Xulrunner/Firefox does not allow to build with both. > So I need to abort when both "alsa" and "oss" are set rather than having > the build proceed and the user getting a compilation error later on.
put a check into pkg_setup() that does ewarn's on conflicting USE flags, and then have the rest of the ebuild pick a sensible default. in the case of oss vs alsa, the latter would be the sensible default. -mike


File name MIME type
signature.asc application/pgp-signature


Subject Author
[gentoo-devhelp] Re: Mutually exclusive USE flags Nikos Chantziaras <realnc@×××××.de>