pre-build tests for opencv will fail when probing for Qt5 without dev-qt/qttest, which is brought in and integrated by the "test" useflag on dev-qt/qtcore. By changing the useflag on qtcore, this error is entirely circumvented. relevant excerpt from build log of opencv: -- Check if the system is big endian - little endian -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.2.11", minimum required is "1.2.3") CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5Test" with any of the following names: Qt5TestConfig.cmake qt5test-config.cmake Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set "Qt5Test_DIR" to a directory containing one of the above files. If "Qt5Test" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): cmake/OpenCVFindLibsGUI.cmake:18 (find_package) CMakeLists.txt:669 (include) -- Configuring incomplete, errors occurred! See also "/var/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2-abi_x86_64.amd64/CMakeFiles/CMakeOutput.log". See also "/var/tmp/portage/media-libs/opencv-4.1.2-r3/work/opencv-4.1.2-abi_x86_64.amd64/CMakeFiles/CMakeError.log". * ERROR: media-libs/opencv-4.1.2-r3::gentoo failed (configure phase): * cmake failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 5533: Called cmake-multilib_src_configure * environment, line 1313: Called multilib-minimal_src_configure * environment, line 4194: Called multilib_foreach_abi 'multilib-minimal_abi_src_configure' * environment, line 4427: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 4124: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure' * environment, line 4122: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure' * environment, line 741: Called multilib-minimal_abi_src_configure * environment, line 4188: Called multilib_src_configure * environment, line 4662: Called cmake-utils_src_configure * environment, line 1490: Called die * The specific snippet of code: * "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed"; *
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c21b91ad2464439514aae406a0c0d5f310aca1d commit 5c21b91ad2464439514aae406a0c0d5f310aca1d Author: Ross Charles Campbell <rossbridger.cc@gmail.com> AuthorDate: 2020-10-14 02:17:02 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-10-16 21:47:50 +0000 media-libs/opencv: version bump to 4.5.0 Bug: https://bugs.gentoo.org/701790 Bug: https://bugs.gentoo.org/700176 Bug: https://bugs.gentoo.org/717812 Bug: https://bugs.gentoo.org/703658 Bug: https://bugs.gentoo.org/689838 Closes: https://bugs.gentoo.org/666716 Closes: https://bugs.gentoo.org/747163 Closes: https://bugs.gentoo.org/729190 Closes: https://bugs.gentoo.org/699730 Closes: https://bugs.gentoo.org/672840 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Ross Charles Campbell <rossbridger.cc@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17899 Signed-off-by: Sam James <sam@gentoo.org> media-libs/opencv/Manifest | 2 + media-libs/opencv/opencv-4.5.0.ebuild | 555 ++++++++++++++++++++++++++++++++++ 2 files changed, 557 insertions(+)