Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 601058

Summary: kde-libs/libkface-16.08.03 USE="contrib" with media-libs/opencv-3.1.0-r6 - .../work/libkface-16.08.3/src/recognition-opencv-lbph/facerec_borrowed.h:144:10: error: ‘void KFaceIface::LBPHFaceRecognizer::predict(cv::InputArray, cv::Ptr<cv::face::PredictColle
Product: Gentoo Linux Reporter: Mike Hiretsky <mh>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED INVALID    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Mike Hiretsky 2016-11-28 09:57:55 UTC
Created attachment 454578 [details]
build.log

After the update of libkface-16.08.03

diff --git a/kde-apps/libkface/libkface-16.08.3.ebuild b/kde-apps/libkface/libkface-16.08.3.ebuild
index ea2fa95..5ae95e4 100644
--- a/kde-apps/libkface/libkface-16.08.3.ebuild
+++ b/kde-apps/libkface/libkface-16.08.3.ebuild
@@ -19,11 +19,12 @@ DEPEND="
 	$(add_qt_dep qtsql)
 	$(add_qt_dep qtwidgets)
 	$(add_qt_dep qtxml)
-	media-libs/opencv:=[contrib(+)]
+	media-libs/opencv:=
+	|| ( <media-libs/opencv-3.0.0 >=media-libs/opencv-3.1.0-r6[contrib] )
 "
 RDEPEND="${DEPEND}"
 
-PATCHES=( "${FILESDIR}/${PN}-15.12.2-opencv3.1.patch" )
+PATCHES=( "${FILESDIR}/${PN}-16.08.3-opencv3.2-gentoo-3.1.patch" ) # not upstreamable like that
 
 src_configure() {
 	local mycmakeargs=(

libkface failed to compile
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2016-11-28 10:04:26 UTC
/var/calculate/tmp/portage/kde-apps/libkface-16.08.3/work/libkface-

Wrong distro.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2016-11-28 10:05:47 UTC
Oh, there is a patch.
Comment 3 Andreas Sturmlechner gentoo-dev 2016-11-28 12:39:32 UTC
Then calculate uses a different opencv-3.1.0-r6 than Gentoo. Because the build issue you are describing was fixed _by_ that patch.
Comment 4 Andreas Sturmlechner gentoo-dev 2016-11-28 18:51:18 UTC
Indeed, Calculate's opencv-3.1.0-r6 uses a different contrib snapshot. Closing this.
Comment 5 Mike Hiretsky 2016-11-29 07:44:06 UTC
Thanks. Ebuild works. libkface is compiled with opencv-3.1.0-r6::gentoo sucessfully.