From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-33913-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1LJUzN-0001Gj-NS
	for garchives@archives.gentoo.org; Sun, 04 Jan 2009 15:34:06 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 1CF6BE03C6;
	Sun,  4 Jan 2009 15:34:04 +0000 (UTC)
Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.186])
	by pigeon.gentoo.org (Postfix) with ESMTP id A84DCE03C6
	for <gentoo-dev@lists.gentoo.org>; Sun,  4 Jan 2009 15:34:03 +0000 (UTC)
Received: by ti-out-0910.google.com with SMTP id u5so5307593tia.10
        for <gentoo-dev@lists.gentoo.org>; Sun, 04 Jan 2009 07:34:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to
         :subject:in-reply-to:mime-version:content-type
         :content-transfer-encoding:content-disposition:references;
        bh=jkBkhjG6JI+ZquIhTCI75Y8J39GpofA2OejNKF1gFyY=;
        b=BQPQhVK9ZHEro8SQCaDYEjapWkbjvBCmBwXzyJ3SAS2d2U9QbG0nO1Yk7dH8O0Dp3C
         QagPUZJJcr1S9n06hIykRPxkHCSjBWltupy7iLR2fuszQqBrAIDC75lTaR2O4PZRUnQ6
         +BPwAQs+ZmTxDuGhN2ZdCXjw+bU/1cSnMHFf0=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:in-reply-to:mime-version
         :content-type:content-transfer-encoding:content-disposition
         :references;
        b=O7Arve1TpEiUFbInZhhkNXhMASLaxgWKE+bXgupx+S9tZg1/d7wADGmL1GJ/oIYTJE
         Zf+++eCzbYIAuxhcLOuEwUM1djVQEY2WT4ntgEaS5lzWv/nSqhQzIId/cjWPdBr169V+
         bxJGoGAe42nCzs0QGhRa9z3WU+9HwLa/3dVHk=
Received: by 10.110.28.15 with SMTP id b15mr1578972tib.56.1231083242514;
        Sun, 04 Jan 2009 07:34:02 -0800 (PST)
Received: by 10.110.47.7 with HTTP; Sun, 4 Jan 2009 07:34:02 -0800 (PST)
Message-ID: <8b4c83ad0901040734o32913fa0j581f89d5b5d031b9@mail.gmail.com>
Date: Sun, 4 Jan 2009 21:04:02 +0530
From: "Nirbheek Chauhan" <nirbheek.chauhan@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] USE dependencies
In-Reply-To: <20090104145426.30527441@terra.solaris>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <20090104145426.30527441@terra.solaris>
X-Archives-Salt: 940ac7d8-1189-4284-b361-2f5b953802ba
X-Archives-Hash: ae571c7f0416bd60273f0d5f8b4d8a37

On Sun, Jan 4, 2009 at 7:24 PM, Christian Faulhammer <fauli@gentoo.org> wrote:
> Hi,
>
> regarding USE dependencies what is the correct way if a package needs
> one out of two USE flags?
>
> || ( cat-egory/package[foo] cat-egory/package[bar] )
>

That's the way right now as per portage EAPI=2 doc[1]

> or is there something else?

A short-cut for this would be similar in scope to
http://bugs.gentoo.org/show_bug.cgi?id=238887

/me thinks cat-egory/pkg[use1|use2] would be a nice way :)

1. http://dev.gentoo.org/~zmedico/portage/doc/portage.html#package-ebuild-eapi-2-draft

-- 
~Nirbheek Chauhan