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

Bug 708330

Summary: sci-libs/dlib USE=-static-libs causes cmake find_package failures
Product: Gentoo Linux Reporter: Robert <rr.underwood94>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/14570
Whiteboard:
Package list:
Runtime testing required: ---

Description Robert 2020-02-05 12:35:33 UTC
When building dlib without static-libs, it generates a faulty cmake export file meaning users can't use 'find_package` to detect and used the built shared libs.  Fixing this is easy, simply create add `-DBUILD_SHARD_LIBS=ON` to the cmake arguments when building dlib when not using the static-libs use-flag.
Comment 1 Robert 2020-02-05 12:43:18 UTC
There is a patch availible on github pull request #14570
Comment 2 Larry the Git Cow gentoo-dev 2020-06-05 22:36:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11546b57ee1c41f66f6e87a591d78356402f46e8

commit 11546b57ee1c41f66f6e87a591d78356402f46e8
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-06-05 21:46:17 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-06-05 22:36:02 +0000

    sci-libs/dlib: EAPI-7 bump, cmake.eclass, drop IUSE="static-libs"
    
    EAPI-7 gives us BUILD_SHARED_LIBS=ON by default.
    
    Closes: https://bugs.gentoo.org/725466
    Closes: https://bugs.gentoo.org/708330
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 sci-libs/dlib/dlib-19.16-r1.ebuild | 106 +++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)