Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129332 - gtk use flag of app-misc/beagle should probably be named gnome
Summary: gtk use flag of app-misc/beagle should probably be named gnome
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Daniel Drake (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-09 04:32 UTC by Petteri Räty (RETIRED)
Modified: 2006-04-19 03:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2006-04-09 04:32:30 UTC
RDEPEND="
        >=dev-lang/mono-1.1.10
        app-shells/bash
        app-arch/zip
        sys-devel/gettext
        >=x11-libs/gtk+-2.6.0
        >=dev-libs/atk-1.2.4
        >=dev-libs/gmime-2.1.19
        >=dev-dotnet/gtk-sharp-2.8
        >=gnome-base/librsvg-2.0
        >=media-libs/libexif-0.6.0
        >=dev-libs/libxml2-2.6.19

        ||              (       >=dev-db/sqlite-3.3.1
                                =dev-db/sqlite-2* )

        ||      (       (       x11-libs/libX11
                                x11-libs/libXScrnSaver
                                x11-libs/libXt )
                virtual/x11 )

        gtk?    (       >=dev-dotnet/gconf-sharp-2.8
                                >=dev-dotnet/glade-sharp-2.8
                                >=dev-dotnet/gnome-sharp-2.8
                                >=dev-dotnet/gnome-sharp-2.8 )


gtk use flag describtion:
betelgeuse@pena ~ $ euse -i gtk
global use flags (searching: gtk)
************************************************************
[- cD ] gtk - Adds support for x11-libs/gtk+ (The GIMP Toolkit)

As we see here gtk+ is always dependend on so the gtk use flag usage does not match the describtion looking at the libraries dependent on it seems that the use flag should be named gnome as it pulls in gnome libraries.
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2006-04-10 07:55:29 UTC
The gtk USE flag is used for building the GUI. The GUI is built on GTK+, hence the use flag. Many other apps also use the "gtk" flag for optionally building a gtk-based GUI.

Renaming this to "gnome" is not appropriate since the GUI is no way dependant on GNOME - it works on any desktop.

I'm open to suggestions for other flag names if it improves consistency with the rest of portage.
Comment 2 Luis Medinas (RETIRED) gentoo-dev 2006-04-10 16:49:17 UTC
I told the same to Petteri on irc Daniel have the same opinion as me. But indeed beagle depends of gnome-sharp.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2006-04-10 22:33:32 UTC
(In reply to comment #1)
> 
> Renaming this to "gnome" is not appropriate since the GUI is no way dependant
> on GNOME - it works on any desktop.
> 

Could you explain this then, as metalgod said the gui needs gnome libraries?

        gtk?    (       >=dev-dotnet/gconf-sharp-2.8
                                >=dev-dotnet/glade-sharp-2.8
                                >=dev-dotnet/gnome-sharp-2.8
                                >=dev-dotnet/gnome-sharp-2.8 )

KDE apps work in GNOME too but they are still KDE apps. The main problem I have is that I need to have most of GNOME installed, because of the dependencies, to use the GUI so it could as well be a full blown GNOME app and there would be no differences in the deps.

> I'm open to suggestions for other flag names if it improves consistency with
> the rest of portage.
> 

Indeed the situation is a bit problematic. The options that came to mind are gtk, gnome and a local use flag like gui. Adding a new local use flag is a bit confusing too. Another option is to have both gtk and gnome use flags and build the gui only when both are set. All in all this is such a minor thing that it isn't worth spending too much time on.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-04-11 04:13:23 UTC
I phrased that badly, I should have probably said:

Renaming this to "gnome" is not appropriate since the GUI is no way dependant on the user running GNOME, neither does it integrate into GNOME specifically - it works on any desktop.

That's exactly the thing: USE flags represent functionality, *not* dependencies. 

Just because USE=myflag on app-foo/bar pulls in some random project hosted on gnome.org does not mean that myflag should be renamed to gnome. Same is true if USE=myflag pulls in 100 packages hosted on gnome.org.

In this case, USE=gtk enables a *GTK* GUI. This time around it just happens that the GTK GUI requires a number of low-level elements of your average GNOME desktop.

To put it another way, USE=gnome is for *functional* changes where the application can optionally integrate into GNOME. Examples of this include optionally including a GNOME panel applet, optionally providing a GNOME-VFS module, optionally installing yelp-based help files, etc. Just because this kind of optional functionality would pull in some core GNOME libraries as dependencies is _not_ the reason why the USE-flag is named "gnome".

I hope that makes it a little clearer :)
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-04-19 03:45:12 UTC
Closing this for now.. The situation isn't perfect but gtk is a more appropriate flag than gnome.