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

Bug 689840

Summary: media-libs/opencv : USE=contrib_xfeatures2d doesn't work, probably others as well
Product: Gentoo Linux Reporter: Thomas Capricelli <orzel>
Component: Current packagesAssignee: Amy Liffey <amynka>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 663730    

Description Thomas Capricelli 2019-07-14 15:06:39 UTC
what contrib_xfeatures2d does is to add cmake config for xfeatures2d (-DBUILD_opencv_xfeatures2d=ON). This 'work' in the sense that cmake is aware we want to build it:

--     To be built:                 aruco bgsegm bioinspired calib3d ccalib core datasets dpm features2d flann freetype fuzzy hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python_bindings_generator reg rgbd saliency shape stereo structured_light superres surface_matching tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto


But it actually fails:
--     Unavailable:                 cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev dnn_modern hdf java matlab ovis python2 python3 sfm ts viz xfeatures2d

The reason, as far as my poor understanding of those cmake files goes, is that xfeatures2d depends on two downloadable ..."things": (modules/xfeatures2d/CMakeLists.txt): vgg and boostdesc

But gentoo ebuild disable downloading:
multilib_src_configure() {... 
        -DENABLE_DOWNLOAD=OFF
..
}


It seems that lot of things are supposed to be downloaded, so my guess is that xfeatures2d is not the only one with this problem.
Comment 1 Larry the Git Cow gentoo-dev 2019-11-28 16:56:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bb83a3237876597e597b7afcabd15e817ed717e

commit 2bb83a3237876597e597b7afcabd15e817ed717e
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2019-11-28 16:44:07 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2019-11-28 16:55:37 +0000

    media-libs/opencv: version bump 4.1.2
    
    Closes: https://bugs.gentoo.org/685106
    Closes: https://bugs.gentoo.org/678460
    Closes: https://bugs.gentoo.org/663730
    Closes: https://bugs.gentoo.org/689840
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: Amy Liffey <amynka@gentoo.org>

 media-libs/opencv/Manifest            |   2 +
 media-libs/opencv/metadata.xml        |   2 +
 media-libs/opencv/opencv-4.1.2.ebuild | 494 ++++++++++++++++++++++++++++++++++
 3 files changed, 498 insertions(+)