Bug 627359

Summary: excluding OpenCVConfig.cmake ?
Product: [Fedora] Fedora Reporter: Rex Dieter <rdieter>
Component: opencvAssignee: Rakesh Pandit <rpandit>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: karlthered, kevin, kklic, kwizart, nomis80, rpandit
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: opencv-2.1.0-5.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-04 05:15:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Rex Dieter 2010-08-25 19:49:54 UTC
In f14+, opencv.spec contains

#This file is wrong - not redistributed
rm -rf $RPM_BUILD_ROOT%{_datadir}/opencv/OpenCVConfig.cmake

Why?

kipi-plugins expects it to be there to build, using cmake macros
INCLUDE(MacroOptionalFindPackage)
MACRO_OPTIONAL_FIND_PACKAGE(OpenCV)

without it, kipi-plugin's removeredeye plugin can't be built.

Comment 1 Nicolas Chauvet (kwizart) 2010-08-25 19:56:05 UTC
use pkg-config , it's not broken or propose a fix that fit our multilibs criteria

Comment 2 Rex Dieter 2010-08-25 20:03:32 UTC
Is the implication that OpenCVConfig.cmake is broken somehow wrt multilib?

Comment 3 Rex Dieter 2010-08-25 20:05:28 UTC
I see, it contains, 
LINK_DIRECTORIES("/usr/lib64")

Comment 4 Rex Dieter 2010-08-25 20:10:17 UTC
I think an acceptable fix would be to simply move it

from:  %{_datadir}/opencv/OpenCVConfig.cmake
to:    %{_libdir}/opencv/OpenCVConfig.cmake

Comment 5 Rex Dieter 2010-08-25 20:14:27 UTC
or even in
%{_libdir}/cmake/opencv/ 

too, which is where some kde-oriented packages put <foo>Config.cmake files

Comment 6 Rex Dieter 2010-08-25 20:27:02 UTC
Seems this latter location is preferable, see also,
http://mail.kde.org/pipermail/kde-buildsystem/2010-April/006852.html

If this is acceptable, I can help implement the fix(es).

Comment 7 Fedora Update System 2010-08-26 14:28:31 UTC
opencv-2.1.0-5.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/opencv-2.1.0-5.fc14

Comment 8 Fedora Update System 2010-08-26 18:38:55 UTC
opencv-2.1.0-5.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update opencv'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/opencv-2.1.0-5.fc14

Comment 9 Fedora Update System 2010-09-01 15:04:52 UTC
opencv-2.0.0-9.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/opencv-2.0.0-9.fc13

Comment 10 Fedora Update System 2010-09-02 20:38:29 UTC
opencv-2.0.0-9.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-09-04 05:14:58 UTC
opencv-2.1.0-5.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.