Gentoo Archives: gentoo-portage-dev

From: Brian Harring <ferringb@×××××.com>
To: gentoo-portage-dev@l.g.o
Cc: pacho@g.o
Subject: Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild
Date: Fri, 21 Sep 2012 21:06:54
Message-Id: 20120921203822.GK5384@localhost
In Reply to: Re: [gentoo-portage-dev] Try to specify how to get that a USE flag is present in current ebuild by Zac Medico
1 On Fri, Sep 21, 2012 at 12:45:30PM -0700, Zac Medico wrote:
2 > On 09/21/2012 12:08 PM, Pacho Ramos wrote:
3 > > Hello
4 > >
5 > > This comes from this gentoo-dev thread:
6 > > http://www.gossamer-threads.com/lists/gentoo/dev/260536
7 > >
8 > > In that one, we try to use the following:
9 > > has vala ${IUSE//+/} && ! use vala && return 0
10 > >
11 > > as already done in many eclasses/ebuilds. The problem is that Ciaran
12 > > wants to forbid it because he says it's not specified in PMS. My
13 > > suggestion was to simply specify it as it's currently implemented in
14 > > portage because that functionality is (apart of needed) being used for a
15 > > long time in the tree by numerous eclasses/ebuilds, then, from my point
16 > > of view, wouldn't be any sense on lose time for moving them to current
17 > > functionality to a worse one, wait for the next eapi and, finally,
18 > > revert them back to current behavior.
19 > >
20 > > The problem is that I cannot find any doc about how this is currently
21 > > handled in portage. Could you help me on it please?
22 >
23 > That `has vala ${IUSE//+/}` thing should work for all versions of
24
25 *cough* negated defaults; you need a - in addition.
26
27 ~harring

Replies