public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-opencv] f45: Fix OpenCV_INSTALL_PATH in OpenCVConfig.cmake (#2585305)
Date: Sat, 28 Nov 2026 09:25:58 GMT	[thread overview]
Message-ID: <179585795837.1.1806352268404064449.rpms-mingw-opencv-bee28edc6c86@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-11-28  9:25 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=179585795837.1.1806352268404064449.rpms-mingw-opencv-bee28edc6c86@fedoraproject.org \
    --to=manisandro@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