public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Fix includes for opencv2
Date: Fri, 28 Aug 2026 13:31:23 GMT [thread overview]
Message-ID: <178792388394.1.1110291248673593272.rpms-opencv-e8eab8a9acd3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : e8eab8a9acd39b280a06ae8afc2e5e64bed88174
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2019-12-19T09:13:00+01:00
Stats : +26/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/e8eab8a9acd39b280a06ae8afc2e5e64bed88174?branch=opencv5
Log:
Fix includes for opencv2
---
diff --git a/opencv-4.1.2-includes.patch b/opencv-4.1.2-includes.patch
new file mode 100644
index 0000000..e69588c
--- /dev/null
+++ b/opencv-4.1.2-includes.patch
@@ -0,0 +1,24 @@
+diff -up opencv-4.1.2/cmake/templates/OpenCVConfig.cmake.in.orig opencv-4.1.2/cmake/templates/OpenCVConfig.cmake.in
+--- opencv-4.1.2/cmake/templates/OpenCVConfig.cmake.in.orig 2019-10-10 00:53:14.000000000 +0200
++++ opencv-4.1.2/cmake/templates/OpenCVConfig.cmake.in 2019-10-17 11:08:46.626400320 +0200
+@@ -106,7 +106,7 @@ set(OpenCV_SHARED @BUILD_SHARED_LIBS@)
+ set(OpenCV_USE_MANGLED_PATHS @OpenCV_USE_MANGLED_PATHS_CONFIGCMAKE@)
+
+ set(OpenCV_LIB_COMPONENTS @OPENCV_MODULES_CONFIGCMAKE@)
+-set(__OpenCV_INCLUDE_DIRS @OpenCV_INCLUDE_DIRS_CONFIGCMAKE@)
++set(__OpenCV_INCLUDE_DIRS @OpenCV_INCLUDE_DIRS_CONFIGCMAKE@ @OpenCV_INCLUDE_DIRS_CONFIGCMAKE@/opencv2)
+
+ set(OpenCV_INCLUDE_DIRS "")
+ foreach(d ${__OpenCV_INCLUDE_DIRS})
+diff -up opencv-4.1.2/cmake/templates/opencv-XXX.pc.in.orig opencv-4.1.2/cmake/templates/opencv-XXX.pc.in
+--- opencv-4.1.2/cmake/templates/opencv-XXX.pc.in.orig 2019-10-10 00:53:14.000000000 +0200
++++ opencv-4.1.2/cmake/templates/opencv-XXX.pc.in 2019-10-17 11:04:11.486014573 +0200
+@@ -3,7 +3,7 @@
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+-includedir_old=@includedir@/opencv
++includedir_old=@includedir@/opencv2
+ includedir_new=@includedir@
+
+ Name: OpenCV
diff --git a/opencv.spec b/opencv.spec
index 28bfed5..30ac293 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -75,6 +75,7 @@ Source1: %{name}_contrib-clean-%{version}.tar.gz
Source3: face_landmark_model.dat.xz
Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
+Patch1: opencv-4.1.2-includes.patch
BuildRequires: gcc-c++
BuildRequires: libtool
@@ -247,6 +248,7 @@ mkdir 3rdparty/
mv quirc/ 3rdparty/
%patch0 -p1 -b .install_3rdparty_licenses
+%patch1 -p1 -b .inc2
pushd %{name}_contrib-%{version}
popd
reply other threads:[~2026-08-28 13:31 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=178792388394.1.1110291248673593272.rpms-opencv-e8eab8a9acd3@fedoraproject.org \
--to=kwizart@gmail.com \
--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