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.
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.
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.
(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.
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.