Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 345443 - >=dev-util/qt-creator-2.0 doesn't require qt3support
Summary: >=dev-util/qt-creator-2.0 doesn't require qt3support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Markos Chandras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-14 20:10 UTC by Konstantin Tokarev
Modified: 2010-11-16 19:34 UTC (History)
2 users (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 Konstantin Tokarev 2010-11-14 20:10:29 UTC
Currently qt-creator requires qt-gui[qt3support]. But I've successfully built Qt Creator 2.0.0 and 2.0.1 on Qt 4.7 builds with disabled qt3support, and never had any problems with it.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2010-11-15 18:13:28 UTC
It is a runtime dependency. You need it when you want to use the Qt3support API. If I drop qt3support then I will have to drop all the qt-* runtime deps because nothing really depends on them. Qt-creator does not need qt-dbus, qt-webkit etc to build it it requires them if you want to have a full working qt-creator since it depends to the whole Qt4 API.
Comment 2 Konstantin Tokarev 2010-11-15 18:26:51 UTC
Enabling qt3support in qt-gui brings bloat functions, so this dependency differs from others
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2010-11-15 18:54:48 UTC
+  15 Nov 2010; Markos Chandras <hwoarang@gentoo.org>
+  qt-creator-2.0.1.ebuild, qt-creator-2.1.0_beta2.ebuild, metadata.xml:
+  Add new qt3support useflag per user request. Bug #345443
+

Fair enough. I added a new useflag 'qt3support' to allow users control this behavior
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2010-11-15 19:16:40 UTC
IMHO qt3support (considered as an additional API) does not deserve a USE flag in this particular case. If a developer using qt-creator needs it as a dependency for its own project, he should be installing it manually.
More generically, a package should only depend on other packages which are actually used (either at build-time or at run-time) and not on libraries which might be required by third party projects.

So, if qt-creator itself doesn't really need qt3support, please remove the USE flag altogether.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2010-11-15 19:19:36 UTC
The same applies to other Qt APIs which are not required to build or run qt-creator itself.
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2010-11-15 20:24:17 UTC
As I said before, if you follow this approach then you need to drop all the qt-* dependencies and pretty much have a qt-creator only capable to do C++ development with a limited Qt4 API available ( the only that qt-gui which is the only dep afaik brings )
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2010-11-15 21:03:24 UTC
(In reply to comment #6)
> As I said before, if you follow this approach then you need to drop all the
> qt-* dependencies and pretty much have a qt-creator only capable to do C++
> development with a limited Qt4 API available ( the only that qt-gui which is
> the only dep afaik brings )
> 

And what's the problem? If a user (C++ developer actually) needs something else (e.g. additional APIs), it's because of *his* projects, not because of qt-creator itself.

(BTW I guess the help viewer requires qt-webkit or qt-assistant...)
Comment 8 Markos Chandras (RETIRED) gentoo-dev 2010-11-15 21:07:25 UTC
I am doing some testing around here. Seems like most of the qt-* packages are actual build dependencies. Qt-assistant is required to view the help menu etc yes.

Ok then I will probably refactor the deps, moving runtime deps to build deps and drop qt3support entirely if I manage to compile it without qt3support
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2010-11-15 21:22:15 UTC
Nice :)
Thanks a lot Markos!
Comment 10 Markos Chandras (RETIRED) gentoo-dev 2010-11-15 21:34:39 UTC
  15 Nov 2010; Markos Chandras <hwoarang@gentoo.org>
  qt-creator-2.0.1.ebuild, qt-creator-2.1.0_beta2.ebuild, metadata.xml:
  Refactor dependencies. Drop qt3support entirely and kde/phonon
  dependencies as well. Bug #345443


It should be ok now
Comment 11 Nikos Chantziaras 2010-11-16 19:34:52 UTC
The changes broke Creator completely for me. I am now unable to load or create projects.  See bug 345757.