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.
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!
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!
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. :-/
This bug appears to already have been fixed in tree?
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.
https://cgit.gentoo.org/repo/gentoo.git/tree/games-util/antimicro/antimicro-2.19.2.ebuild
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. ;-)