public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Rex Dieter <rdieter@math.unl.edu>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: OpenCV cmake configuration broken (#1031312)
Date: Fri, 28 Aug 2026 13:30:20 GMT [thread overview]
Message-ID: <178792382050.1.4331031758537216244.rpms-opencv-85dcc3a0ce55@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : 85dcc3a0ce55e5781fc670381996af2b43b38e8d
Author : Rex Dieter <rdieter@math.unl.edu>
Date : 2013-11-18T14:29:23-06:00
Stats : +28/-8 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/85dcc3a0ce55e5781fc670381996af2b43b38e8d?branch=opencv5
Log:
OpenCV cmake configuration broken (#1031312)
---
diff --git a/opencv-2.4.7-cmake_paths.patch b/opencv-2.4.7-cmake_paths.patch
new file mode 100644
index 0000000..4d775d8
--- /dev/null
+++ b/opencv-2.4.7-cmake_paths.patch
@@ -0,0 +1,18 @@
+diff -up opencv-2.4.7/CMakeLists.txt.cmake_paths opencv-2.4.7/CMakeLists.txt
+--- opencv-2.4.7/CMakeLists.txt.cmake_paths 2013-11-06 08:26:39.000000000 -0600
++++ opencv-2.4.7/CMakeLists.txt 2013-11-18 14:26:06.015747361 -0600
+@@ -286,13 +286,7 @@ else()
+ endif()
+ set(OPENCV_INCLUDE_INSTALL_PATH "include")
+
+- math(EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
+- if(LIB_SUFFIX AND NOT SIZEOF_VOID_P_BITS EQUAL LIB_SUFFIX)
+- set(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/cmake/opencv)
+- else()
+- set(OPENCV_CONFIG_INSTALL_PATH share/OpenCV)
+- endif()
+-endif()
++ set(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/OpenCV)
+
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${OPENCV_LIB_INSTALL_PATH}")
+ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
diff --git a/opencv.spec b/opencv.spec
index 8d2d316..eec6a43 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -2,7 +2,7 @@
Name: opencv
Version: 2.4.7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Collection of algorithms for computer vision
Group: Development/Libraries
@@ -22,6 +22,9 @@ Patch1: opencv-pkgcmake2.patch
#http://code.opencv.org/issues/2720
Patch2: OpenCV-2.4.4-pillow.patch
Patch3: opencv-2.4.7-ts_static.patch
+# fix/simplify cmake config install location (upstreamable)
+# https://bugzilla.redhat.com/1031312
+Patch4: opencv-2.4.7-cmake_paths.patch
BuildRequires: libtool
BuildRequires: cmake >= 2.6.3
@@ -120,6 +123,7 @@ This package contains Python bindings for the OpenCV library.
%patch1 -p1 -b .pkgcmake2
%patch2 -p1 -b .pillow
%patch3 -p1 -b .ts_static
+%patch4 -p1 -b .cmake_paths
# fix dos end of lines
sed -i 's|\r||g' samples/c/adaptiveskindetector.cpp
@@ -189,11 +193,6 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/OpenCV/doc
popd
-#Cmake mess
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/cmake/OpenCV
-mv $RPM_BUILD_ROOT%{_datadir}/OpenCV/*.cmake \
- $RPM_BUILD_ROOT%{_libdir}/cmake/OpenCV
-
%check
# Check fails since we don't support most video
@@ -247,8 +246,8 @@ popd
%{_includedir}/opencv2
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/opencv.pc
-# own cmake dir avoiding dep on cmake
-%{_libdir}/cmake/
+%dir %{_libdir}/OpenCV/
+%{_libdir}/OpenCV/*.cmake
%files devel-docs
@@ -261,6 +260,9 @@ popd
%changelog
+* Mon Nov 18 2013 Rex Dieter <rdieter@fedoraproject.org> 2.4.7-2
+- OpenCV cmake configuration broken (#1031312)
+
* Wed Nov 13 2013 Nicolas Chauvet <kwizart@gmail.com> - 2.4.7-1
- Update to 2.4.7
reply other threads:[~2026-08-28 13:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178792382050.1.4331031758537216244.rpms-opencv-85dcc3a0ce55@fedoraproject.org \
--to=rdieter@math.unl.edu \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox