Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 561030 - games-util/antimicro requires dev-qt/qtwidgets for building against Qt5
Summary: games-util/antimicro requires dev-qt/qtwidgets for building against Qt5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-21 14:17 UTC by Roger
Modified: 2015-09-27 22:10 UTC (History)
1 user (show)

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


Attachments
antimicro-2.19.2.ebuild (antimicro-2.19.2.ebuild,698 bytes, text/plain)
2015-09-21 15:02 UTC, Roger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger 2015-09-21 14:17:50 UTC
AntiMicro fails to build against Qt5 due to a missing build dependency of dev-qt/qtwidgets.

--- Snip ---

Compiling with Qt5 support
  CMake Error at CMakeLists.txt:496 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.

--- Snip ---

I'm not sure how to check for building against Qt4 or Qt5 system libraries within the antimicro.ebuild, or whether I even have time to do so.

It would be easy just specify a static build dependency, requiring dev-qt/qtwidgets as a build dependency no matter whether building against Qt4 or Qt5.

However, the proper method or solution is to check whether building against Qt4 or Qt5 to avoid system bloat.
Comment 1 Roger 2015-09-21 14:28:05 UTC
Building against Qt5 also requires dev-qt/qtnetwork as a build dependency!

dev-qt/qtwidgets
dev-qt/qtnetwork
dev-qt/linguist

... and so on.  I'll attach a sorted build time dependencies shortly.  Hopefully if I get time!
Comment 2 Roger 2015-09-21 14:54:31 UTC
CORRECTION, and a somewhat completed list of build dependencies according to my system.

The additional DEPENDS:
dev-qt/qtwidgets
dev-qt/qtnetwork
dev-qt/linguist-tools


The complete sorted list of DEPENDS:

dev-qt/linguist-tools
dev-qt/qtnetwork
dev-qt/qtwidgets
virtual/pkgconfig

I'll likely attach an updated antimicro-2.19.1.ebuild with the list of these DEPENDS if that is acceptable.  However, I frown upon this because the proper solution as it adds not needed packages to a system only having or only building against Qt4!
Comment 3 Roger 2015-09-21 15:02:13 UTC
Created attachment 412460 [details]
antimicro-2.19.2.ebuild

antimicro-2.19.2.ebuild: Adds "dev-qt/linguist-tools:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5" packages to the build time dependencies.

There maybe more packages, but I must admit I have a pretty limited system avoiding Qt at most times.  However, I still have the core Qt libraries and other more commonly utilized Qt libraries already installed. :-/
Comment 4 Alex Xu (Hello71) 2015-09-27 18:10:29 UTC
This bug appears to already have been fixed in tree?
Comment 5 Roger 2015-09-27 19:40:59 UTC
To my knowledge, this wasn't fixed yet.

Unless you see something within the current ebuild adding the above fore mentioned dependencies, then it is not fixed to my knowledge.
Comment 7 Roger 2015-09-27 22:10:25 UTC
I also see antimicro-2.19.2.ebuild within the local Portage tree now too.

I was clueless as to antimicro-2.19.2.ebuild being already pushed upstream.

I kind of doubt any QT4 only users are going to complain about the QT5 dependency. ;-)