Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701472 - media-libs/opencv-4.1.2 doesn't install a pkgconfig file
Summary: media-libs/opencv-4.1.2 doesn't install a pkgconfig file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-29 11:24 UTC by Helmut Jarausch
Modified: 2019-12-13 04:07 UTC (History)
4 users (show)

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


Attachments
updated ebuild to install pkg-config file (opencv-4.1.2.ebuild,17.85 KB, text/plain)
2019-11-30 16:36 UTC, ron widler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2019-11-29 11:24:39 UTC
media-libs/opencv-4.1.2 doesn't install a pkgconfig file 
/usr/lib64/pkgconfig/opencv.pc
and breaks a lot of other packages because of that.
Comment 1 Rick Harris 2019-11-30 15:24:13 UTC
Confirmed, same problem here.
Comment 2 ron widler 2019-11-30 16:26:07 UTC
opencv deprecated pkgconfig support from version 4.0.0 on...

https://github.com/opencv/opencv/issues/13154

for newer versions it needs special flags set to install it, see here:

https://github.com/opencv/opencv/blob/master/doc/tutorials/introduction/linux_install/linux_install.markdown

quote:
---
Add this flag when running CMake: `-DOPENCV_GENERATE_PKGCONFIG=ON`
Will generate the .pc file for pkg-config and install it.
Useful if not using CMake in projects that use OpenCV
Installed as `opencv4`, usage: `pkg-config --cflags --libs opencv4`
---
Comment 3 ron widler 2019-11-30 16:36:36 UTC
Created attachment 598004 [details]
updated ebuild to install pkg-config file
Comment 4 Larry the Git Cow gentoo-dev 2019-11-30 19:48:17 UTC
The bug has been closed via the following commit(s):

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

commit adbab194ec585cd8ba24a715f422a36007972f62
Author:     Amy Liffey <amynka@gentoo.org>
AuthorDate: 2019-11-30 19:39:07 +0000
Commit:     Amy Liffey <amynka@gentoo.org>
CommitDate: 2019-11-30 19:47:40 +0000

    media-libs/opencv: install pkg config
    
    Submitted-by: Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
    Closes: https://bugs.gentoo.org/701472
    
    Package-Manager: Portage-2.3.76, Repoman-2.3.16
    Signed-off-by: Amy Liffey <amynka@gentoo.org>

 media-libs/opencv/opencv-4.1.2-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)