From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4EFF413828B for ; Fri, 27 May 2016 18:11:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E516C224054; Fri, 27 May 2016 18:10:50 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 95A8321C012 for ; Fri, 27 May 2016 18:10:49 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BhDQA731xV/6YFr7hcgxCBMsNlh0sEAgKBPDoTAQEBAQEBAYEKQQWDXQEBAwE6HCgLCyETEg8FJTcbiAkIzyMBAQEHAgEfizqFDBaDAYEWBZ1vh3iNWIFFI2GBBYIuIjGCRwEBAQ X-IPAS-Result: A0BhDQA731xV/6YFr7hcgxCBMsNlh0sEAgKBPDoTAQEBAQEBAYEKQQWDXQEBAwE6HCgLCyETEg8FJTcbiAkIzyMBAQEHAgEfizqFDBaDAYEWBZ1vh3iNWIFFI2GBBYIuIjGCRwEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="239714309" Received: from 184-175-5-166.dsl.teksavvy.com (HELO waltdnes.org) ([184.175.5.166]) by ironport2-out.teksavvy.com with SMTP; 27 May 2016 14:10:47 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Fri, 27 May 2016 14:10:49 -0400 From: waltdnes@waltdnes.org Date: Fri, 27 May 2016 14:10:49 -0400 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [RFC] gtk/gtk2/gtk3 USE flag situation Message-ID: <20160527181048.GA4587@waltdnes.org> References: <1464358866.13834.59.camel@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1464358866.13834.59.camel@gentoo.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: 7bf52fd0-b733-4e74-a16d-e27266b201d3 X-Archives-Hash: a6852606f6b4e799e5ba741412c893b0 On Fri, May 27, 2016 at 05:21:06PM +0300, Mart Raudsepp wrote > This would ideally not be needed, as the package would instead be > slotted and parallel installable for gtk2 and gtk3, which should be > theoretically possible in all cases, because gtk2 and gtk3 may not live > in the same process, so not the same library either. > Due to some packages needing too much manpower effort to do such a > split, USE flags are used in such a case. > Good examples of such slot splits existing are for example the > libappindicator stack. This used to be the case with almost all GNOME > libraries as well, but most of them only provide gtk3 now, as gtk2 is, > well, dead. What at the original gtk+, for which the "gtk" flag was probably originally invented? [i3][waltdnes][~] ls /usr/portage/x11-libs/gtk+/*.ebuild /usr/portage/x11-libs/gtk+/gtk+-1.2.10-r13.ebuild /usr/portage/x11-libs/gtk+/gtk+-2.24.28-r1.ebuild /usr/portage/x11-libs/gtk+/gtk+-2.24.29.ebuild /usr/portage/x11-libs/gtk+/gtk+-2.24.30.ebuild /usr/portage/x11-libs/gtk+/gtk+-3.16.7.ebuild /usr/portage/x11-libs/gtk+/gtk+-3.18.7.ebuild /usr/portage/x11-libs/gtk+/gtk+-3.18.9.ebuild > tl;dr and my proposal would be the following: > > * USE=gtk means providing support for GTK+; because we don't have a > USE=gui, this also means "provide a GUI version built on top of gtk+" > for packages where a GUI is optional. There is a way to specify a GUI... [i3][waltdnes][~] grep "^\(X \|wayland \)" /usr/portage/profiles/use.desc X - Add support for X11 wayland - Enable dev-libs/wayland backend If overloading the meaning of USE="gtk" is the problem, the better solution would be to use "X" or "wayland" or whatever to indicate the GUI you need. "gtk" is a relic from the days of gtk+-1.x, when there were no other versions of gtk. With the advent of multiple versions, we arguably need "gtkn" useflags for every version in the tree, where "n" is the major version #. While we're at it, why are there 23 occurences of the "X" useflag in /usr/portage/profiles/use.local.desc when it exists in /usr/portage/profiles/use.desc ??? I'm talking about stuff like... app-misc/vifm:X - Add support for X11 dev-libs/m17n-lib:X - Builds the Graphical User Interface API and utilities for the package. dev-libs/wlc:X - Enable X11 backend and XWayland support. dev-python/PyQt4:X - Build bindings for the QtGui module dev-python/pyside:X - Build QtGui and QtTest modules -- Walter Dnes I don't run "desktop environments"; I run useful applications