Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708330 - sci-libs/dlib USE=-static-libs causes cmake find_package failures
Summary: sci-libs/dlib USE=-static-libs causes cmake find_package failures
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-02-05 12:35 UTC by Robert
Modified: 2020-06-05 22:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)