Le samedi 17 août 2013 à 15:33 +0300, Samuli Suominen a écrit : > On 16/08/13 20:12, Michael Weber wrote: > > Hello, > > > > gtk is a global use flag [1], gtk2 and gtk3 are used in metadata.xml [2]. > > > > Is there a consensus how to use these flags if an app provides gtk2 > > and gtk3 gui in parallel or exclusive? > > 'gtk' uses best possible version as defined by the package maintainer > > 'gtk3' is a special flag that is used when package supports both gtk and > gtk3 at the same time, and matches the criteria of sanity which is a) > it's an library that is used by multiple programs b) is not easy to > split, which would otherwise be preferred over using the USE flag > > 'gtk2' is never required, those matching it down from the list have weak > design which goes against every other ebuild in tree, but is still > package maintainers decision > > special flags like 'IUSE="+deprecated"' can be used if there is a need > to enable the old GTK+ implementation by default, but still provide the > new one, in programs. like if enabling GTK+3 instead of GTK+2 would > disable you from using flash plug-in in a browser, would qualify in. > > imho :)
Quick read says that it is exactly what the gnome herd said over and over on this list and on IRC. I'll also write it down again for regular applications, having a USE flag for controlling build of your application against gtk+:2 or 3 is not what the gnome team recommends. Either the gtk3 UI is working or it is not satisfying, there is no in the middle. -- Gilles Dartiguelongue <e...@gentoo.org> Gentoo