Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261452 - dev-util/cmake-2.6.3 depends on qt-gui if USE=qt4 is set
Summary: dev-util/cmake-2.6.3 depends on qt-gui if USE=qt4 is set
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-06 14:18 UTC by thomasg
Modified: 2009-03-08 10:29 UTC (History)
0 users

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 thomasg 2009-03-06 14:18:48 UTC
Cmake depends on the qt-gui package if the qt4 useflag is set.
Imho this doesn't make sense, because it also depends on qt-core, and if GUI-support is needed it should be pulled in if necessary.

This way cmake pulls in qt-gui even on headless systems with USE=-X if cmake is installed with qt4 support.
Comment 1 Rafał Mużyło 2009-03-06 14:39:57 UTC
Please, decode: "because it also depends on qt-core".
What does depend on qt-core ?
For cmake, qt4 useflag is only for the qt4 gui.
Comment 2 thomasg 2009-03-06 17:34:01 UTC
Ah, ok, this explains a lot.
However, it's a bit confusing, because qt4 may mean a lot, not only GUI stuff.
Maybe there should aditionally be an X-useflag to make sure headless systems won't get the cmake GUI.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-07 18:33:30 UTC
(In reply to comment #2)
> However, it's a bit confusing, because qt4 may mean a lot, not only GUI stuff.

I disagree. In gentoo, the qt4 USE flag is exclusively used for the qt-4 GUI-toolkit:

zeromancer:~ # euse -i qt4
global use flags (searching: qt4)
************************************************************
[- cD ] qt4 - Adds support for the Qt GUI/Application Toolkit version 4.x

local use flags (searching: qt4)
************************************************************
[- cD ] qt4 (media-video/vlc):
Builds a x11-libs/qt based frontend. It is now the most up-to-date graphical interface available.

[- cD ] qt4 (net-print/hplip):
Enable graphical interface using Qt 4 (experimental); when both qt3 and qt4 USE flags are enabled then qt3 is prioritary over qt4

zeromancer:~ #


> Maybe there should aditionally be an X-useflag to make sure headless systems
> won't get the cmake GUI.

Why? If you really want to have a system without any application that uses X, you have to disable other USE flags than X as well, like gnome, gtk, kde, qt3 and tk
It would be sheer overkill to give any package that uses one of these mentioned USE flags the X USE flag as well. All these USE flags imply the use of X and qt4 is no exception of that.
Comment 4 thomasg 2009-03-08 10:29:51 UTC
I understand that.
But Gnome and KDE as X Desktop Environments imply that it is for X (simply because nothing else is possible), Gtk as an X GUI toolkit also implies that it is for X only - but Qt4 is a nowadays highly modular toolkit that can be and is used not only for X applications, but also for all kind of applications without GUI (and especially without X).

As I see this, the qt4 useflag is just copied from the old qt3 useflag (even has the same description), while qt4 and qt3 are totally different things, the latter being monolithic and qt4 highly modular.

And no, it wouldn't be necessary for gnome, kde, gtk to have the X useflag, because as I said X is implied there. For Qt4 it isn't.
Maybe the X useflag wouldn't be the only way to achieve more clarity, I could also imagine having the qt4 useflag renamed to qt4-gui as all applications with this useflag have the dependency on the package qt-gui, not anything else from the qt4 set.