Gentoo Archives: gentoo-devhelp

From: Ryan Hill <dirtyepic@g.o>
To: gentoo-devhelp@l.g.o
Subject: [gentoo-devhelp] Re: Mutually exclusive USE flags
Date: Mon, 01 Feb 2010 22:30:40
Message-Id: 20100201163010.72dc9572@gentoo.org
In Reply to: [gentoo-devhelp] Mutually exclusive USE flags by Nikos Chantziaras
On Sun, 31 Jan 2010 01:31:35 +0200
Nikos Chantziaras <realnc@×××××.de> 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.
confutils.eclass has a bunch of functions that might be helpful. -- fonts, by design, by neglect gcc-porting, for a fact or just for effect wxwidgets @ gentoo EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662