From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QfGfR-0001x1-7x for garchives@archives.gentoo.org; Fri, 08 Jul 2011 19:24:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50F0B21C061 for ; Fri, 8 Jul 2011 19:24:48 +0000 (UTC) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by pigeon.gentoo.org (Postfix) with ESMTP id 97F1121C1BF for ; Fri, 8 Jul 2011 19:06:46 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.messagingengine.com (Postfix) with ESMTP id 5290E20827 for ; Fri, 8 Jul 2011 15:06:46 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute4.internal (MEProxy); Fri, 08 Jul 2011 15:06:46 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=subject:from:to:date:in-reply-to:references:content-type:content-transfer-encoding:message-id:mime-version; s=smtpout; bh=KaXL1IgBlL618UTAPEYuQQlQisI=; b=R+nj4kFB5pJiCs3zVwHOY/qoZ4wWWMcto+johZTFT/BgRHPVEHZdPv6WCSqzWdT465A0zmZ9XYXA/hWRziywqM8V9fZX22jTE/ZOE8g+ruiyn4V+/B8z6YYEpCkn5lARFBAC/U6atZoajGr977ILCruXZ7XZnGrfY9OKeVkeJZg= X-Sasl-enc: Zv7hGca9ylYcXTY7Nh4nm3EB2kA3jses2ZqjFRhy7ieL 1310152006 Received: from [192.168.0.101] (65.23.112.45.nw.nuvox.net [65.23.112.45]) by www.fastmail.fm (Postfix) with ESMTPSA id 0F262441B54 for ; Fri, 8 Jul 2011 15:06:46 -0400 (EDT) Subject: Re: [gentoo-user] Is Gentoo wiping out Gtk 2 support from packages that support it? From: Albert Hopkins To: gentoo-user@lists.gentoo.org Date: Fri, 08 Jul 2011 15:06:45 -0400 In-Reply-To: <1562264.5oy8gnuzIK@nazgul> References: <1310130876.229332.5.camel@localhost.localdomain> <1562264.5oy8gnuzIK@nazgul> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAADBQTFRF1///CwsLGxsbJycnNzc3RUVFU1NTYmJicXFxf39/jIyMm5ubq6urubm5yMjI3t7eukg4JQAAAAF0Uk5TAEDm2GYAAAIoSURBVDhPpZC9btRQEEbPGIJQhOIZB4SEhGJ7W/42lihoKCJ6agoeglfgDXiQPAGEio5sKGgTLxRIFNk7DigV7FD4J4SW23jud+75ZA38x9ncnb3wf0PgjZnZdvo35rVZZWa3RiLDd+PGMNz5oABkw/2e9ne+HTgwGRt3nejHzc8Gk/EURfvx/IgLcK3YNZWB7C8vwFqtqcxEAPYD4CoAr5xUiBaJlfOrvTA+IRLqLhisWx/B9RItzckjHCJNxtqKGhRBgEiTAWCIBqGXDNBODEdBIWIEgquCiosD6GQsTYzAVVUAH0FCFDPP3ce8Byenx0hhFRBoX5cBFPXJUVILUog6rTOs5Mv5DnGyOAaXHMvb0fiU3z8QbNZAjmg5VXVbP/N0uHhyWJrAl8RYhebzVcq+K4CJ2WgomSbWsSsguRY6GtncD0N0EYImEcrRkPUxXcrKflNYN4LUmqKndQVOV5qOIDp5Vhb518oEqqxgBFuyOhSKlRF4NptPhp22Ee0ylnioNfVkPPLSix1SG9BJrRN4aFcevfNIKw8f8h5k8vtsnlUauSBiF2DD6/ePd5LPAOvzHpw97F6+dbHOk1T1X4DnXN2rlF+OWKXAuN3Cj3HHNW5u/13FzeQtEkv/YU0vDCATjZSn8KqZXwLdA3Kny+q6GZoGwPPFmZ5oNWt29TK4/XSVpK6bPRny4a+Qx1+FrNkrdATji/XHhdTbw55gMrC0TaFTEfwB/cbNxoZIacsAAAAASUVORK5CYII= Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2 Content-Transfer-Encoding: 7bit Message-ID: <1310152006.231514.31.camel@localhost.localdomain> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Archives-Salt: X-Archives-Hash: 82006cdd0bfb330c8e57a026c59d669e On Friday, July 8 at 17:19 (+0200), Alan McKinnon said: > On Friday 08 July 2011 09:14:36 Albert Hopkins did opine thusly: > > On Friday, July 8 at 13:11 (+0100), Stroller said: > > > Taking a look at this bug today, is there any reason why the > > > ebuild shouldn't simply RDEPEND="x11-libs/gtk+" (i.e. remove > > > the explicit dep on gtk3), detect what version you have > > > installed on your system and then either run --enable-gtk3 or > > > --enable-gtk2 during src_configure(), depending upon which > > > you're using? > > > > ebuilds generally don't do this, because it is bad. What you have > > and what you want aren't necessarily the same thing. Consider: > > > > * You don't yet have any gtk installed > > * You have gtk2 but actually *want* the gtk3 version, so you > > want the ebuild to pull in gtk3 (or vice versa) > > * You have both gtk2 and gtk3 installed. > > * You have gtk installed, but don't want gtk support for a > > particular package (if gtk support is optional for that > > package). > > easy. > > Two USE flags: gtk2 and gtk3 > > in ebuild: > > DEPEND=" > gtk2? (x11-libs/gtk+:2) > gtk3? (x11-libs/gtk+:3) > " > > in src-configure() write the code such that it establishes a > precedence > > If both flags are set, build against gtk+:3 > If only one flag is set, build against that toolkit > If no flags are set, do something appropriate. > You mean like what they did with portage and python2/3? Well, there was bugs in that (I reported 1 or 2 bugs myself). It works now (depending on your expectation of "works" but is very ugly. > IIRC, it is frowned upon to have conditionals in DEPENDS based on USE > flags so the above is best - take the small hit on disk space if both > are set and gtk+:2 is used nowhere else (highly unlikely for quite a > while still) > They could do that.. I don't see it happening though. I didn't want to comment on this thread (having been on both sides of the fence). But I will say this. The best thing about Gentoo is it's a "meta-distribution". It gives you more control and more ease to do things "your" way. I think people should learn to take more advantage of the latter. I do.