public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-opencv] f45: Fix OpenCV_INSTALL_PATH in OpenCVConfig.cmake (#2585305)
@ 2026-11-28  9:25 Sandro Mani
  0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-11-28  9:25 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/mingw-opencv
Branch : f45
Commit : bee28edc6c8623f48718da4da6af5a9d26e82a0c
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-11-28T10:25:17+01:00
Stats  : +18/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/mingw-opencv/c/bee28edc6c8623f48718da4da6af5a9d26e82a0c?branch=f45

Log:
Fix OpenCV_INSTALL_PATH in OpenCVConfig.cmake (#2585305)

---
diff --git a/mingw-opencv.spec b/mingw-opencv.spec
index f87f451..a48b2f1 100644
--- a/mingw-opencv.spec
+++ b/mingw-opencv.spec
@@ -4,7 +4,7 @@
 
 Name:          mingw-%{pkgname}
 Version:       4.13.0
-Release:       4%{?dist}
+Release:       5%{?dist}
 Summary:       MinGW Windows OpenCV library
 
 BuildArch:     noarch
@@ -25,6 +25,8 @@ Patch0:        opencv_unbundle.patch
 Patch1:        opencv_bigobj.patch
 # Fix CV_CheckGlError calling undefined function checkError if _DEBUG is not defined
 Patch2:        opencv-fix-build.patch
+# Fix OpenCV_INSTALL_PATH in OpenCVConfig.cmake (#2585305)
+Patch3:        opencv-cmakeconfig.patch
 
 
 BuildRequires: make
@@ -238,6 +240,9 @@ rm -f %{buildroot}%{mingw64_prefix}/{LICENSE,setup_vars_opencv4.cmd}
 
 
 %changelog
+* Sat Nov 28 2026 Sandro Mani <manisandro@gmail.com> - 4.13.0-5
+- Fix OpenCV_INSTALL_PATH in OpenCVConfig.cmake
+
 * Wed Sep 23 2026 Sandro Mani <manisandro@gmail.com> - 4.13.0-4
 - Rebuild (mingw-python)
 

diff --git a/opencv-cmakeconfig.patch b/opencv-cmakeconfig.patch
new file mode 100644
index 0000000..d3fdddf
--- /dev/null
+++ b/opencv-cmakeconfig.patch
@@ -0,0 +1,12 @@
+diff -rupN opencv-4.13.0/cmake/templates/OpenCVConfig.cmake.in opencv-4.13.0-new/cmake/templates/OpenCVConfig.cmake.in
+--- opencv-4.13.0/cmake/templates/OpenCVConfig.cmake.in	2025-12-30 08:52:05.000000000 +0100
++++ opencv-4.13.0-new/cmake/templates/OpenCVConfig.cmake.in	2026-11-27 16:20:02.116988770 +0100
+@@ -77,7 +77,7 @@ endif()
+ # Extract the directory where *this* file has been installed (determined at cmake run-time)
+ # Get the absolute path with no ../.. relative marks, to eliminate implicit linker warnings
+ get_filename_component(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_DIR}" REALPATH)
+-get_filename_component(OpenCV_INSTALL_PATH "${OpenCV_CONFIG_PATH}/@OpenCV_INSTALL_PATH_RELATIVE_CONFIGCMAKE@" REALPATH)
++set(OpenCV_INSTALL_PATH "@CMAKE_INSTALL_PREFIX@")
+ 
+ # Search packages for host system instead of packages for target system.
+ # in case of cross compilation this macro should be defined by toolchain file

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-28  9:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28  9:25 [rpms/mingw-opencv] f45: Fix OpenCV_INSTALL_PATH in OpenCVConfig.cmake (#2585305) Sandro Mani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox