From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30])
	by robin.gentoo.org (8.13.3/8.13.3) with ESMTP id j2TDAwui017529
	for <gentoo-dev@robin.gentoo.org>; Tue, 29 Mar 2005 13:10:58 GMT
Received: from smtp813.mail.ukl.yahoo.com ([217.12.12.203])
	by smtp.gentoo.org with smtp (Exim 4.43)
	id 1DGGUj-0006f3-Sn
	for gentoo-dev@robin.gentoo.org; Tue, 29 Mar 2005 13:10:58 +0000
Received: from unknown (HELO wadham.oxford.ac.uk) (gentoo-dev@gentoo.org@81.154.77.105 with poptime)
  by smtp813.mail.ukl.yahoo.com with SMTP; 29 Mar 2005 13:10:57 -0000
Received: by wadham.oxford.ac.uk (nbSMTP-0.98) for uid 1000
	for <david.morgan@wadham.oxford.ac.uk>; Tue, 29 Mar 2005 14:09:51 +0100 (BST)
Date: Tue, 29 Mar 2005 14:09:51 +0100
From: David Morgan <david.morgan@wadham.oxford.ac.uk>
To: gentoo-dev@robin.gentoo.org
Subject: Re: [gentoo-dev] GTK und GTK2 Use Flag
Message-ID: <20050329130951.GA25810@valinor.dynalias.net>
Mail-Followup-To: gentoo-dev@gentoo.org
References: <42492AB5.8080903@gmx.at> <200503291304.17256@enterprise.flameeyes.is-a-geek.org> <20050329111138.GA10169@stud.seeling33.de> <200503291324.33892@enterprise.flameeyes.is-a-geek.org> <20050329113538.GA4377@valinor.dynalias.net> <20050329115039.GB29694@exodus>
Precedence: bulk
List-Post: <mailto:gentoo-dev@gentoo.org>, <mailto:gentoo-dev@robin.gentoo.org>, <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-To: gentoo-dev@gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050329115039.GB29694@exodus>
User-Agent: Mutt/1.5.8i
X-Archives-Salt: 5f7bf405-dd6a-4113-8e1f-f0a2af163afe
X-Archives-Hash: e16c43d94580e7d0fc4a0fd233cb93da

On 05:50 Tue 29 Mar     , Brian Harring wrote:
> On Tue, Mar 29, 2005 at 12:35:38PM +0100, David Morgan wrote:
> > What if I want things to be built without gtk where ever possible, but I
> > want things that have to use either gtk1 or gtk2 to use gtk2?
> > 
> > Under the current method this is what -gtk gtk2 should do,
> Actually, no.  And that is why the gtk flags need changing. :)
> current setup.
> gtk  ~= gtk support AND fall back to gtk v1 support.
> gtk2 ~= use gtk v2 support in preference to v1 if available.
> 
> There is no way to state, "I want v2, and _only_ v2" without resorting 
> to a package.mask'ing of gtk-1*.
> 
> > since
> > something that has to use gtk won't have a gtk flag, but if there's a
> > choice between gtk1 and gtk2, it should have a gtk2 flag.
> > 
> > I don't see how this would be possible under ferringb's scheme, 
> my scheme- gtk == *any* version, the user doesn't care.
> gtk{1,2,3} == use that version.
> 
> So... if you had USE="gtk2 and gtk3", ebuilds would use v3 if 
> possible, otherwise v2.  No gtk v1.
> 
> If you had USE="gtk gtk2", you prefer gtk v2., but will use what is 
> available (any version).
> 
> > so I
> > prefer the current way (though if ferringb's way of doing it could be
> > modified to do this without getting too ugly I'd be just as happy with
> > that).
> The current scheme sucks for those who want a gtk v2 only system.  How 
> do you specify gtk v2 only under the current system using _just_ use 
> flags?  You don't. :)
> ~brian
> --
> gentoo-dev@gentoo.org mailing list
> 

How do you specify gtk v2 only using use flags? You can't!

If something depends on gtk v1 regardless of use flags (by which I mean
there's no without any gtk or use v2 option), then if you want
to emerge it you have to have gtk v1. Unless you want to have some sort
of system where a package would be masked because of your use flags
(which would get annoying really quickly), but I don't think you are.

That being said, I agree that your way is better, assuming that -gtk
-gtk1 gtk2 means "disable optional gtk (any version) support, but if gtk
isn't optional but both versions are supported then use v2"

-- 
djm

--
gentoo-dev@gentoo.org mailing list