public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Add patch50
Date: Fri, 28 Aug 2026 13:30:50 GMT [thread overview]
Message-ID: <178792385079.1.4375822861297061973.rpms-opencv-9875f5980a4b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : 9875f5980a4b881e0d5479973a66c65c5b560103
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2018-01-26T17:29:13+00:00
Stats : +88/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/9875f5980a4b881e0d5479973a66c65c5b560103?branch=opencv5
Log:
Add patch50
---
diff --git a/476c513447eb16784113e982f6bef0dcabb77732.patch b/476c513447eb16784113e982f6bef0dcabb77732.patch
new file mode 100644
index 0000000..08b709a
--- /dev/null
+++ b/476c513447eb16784113e982f6bef0dcabb77732.patch
@@ -0,0 +1,86 @@
+From 5f80e42dac5f186d8b5fe9c64d700db26e5753e7 Mon Sep 17 00:00:00 2001
+From: Alexander Alekhin <alexander.a.alekhin@gmail.com>
+Date: Sat, 28 Oct 2017 02:22:21 +0300
+Subject: [PATCH] cmake: update OpenBLAS support
+
+- reorder path HINTS to avoid conflicts with other LAPACK libraries
+- add extern "C" { } to avoid generation of C++ symbols
+---
+ cmake/OpenCVFindLAPACK.cmake | 3 ++-
+ cmake/OpenCVFindOpenBLAS.cmake | 34 +++++++++++++++++-----------------
+ 2 files changed, 19 insertions(+), 18 deletions(-)
+
+diff --git a/cmake/OpenCVFindLAPACK.cmake b/cmake/OpenCVFindLAPACK.cmake
+index 6a686c6cdc8..f5fce672568 100644
+--- a/cmake/OpenCVFindLAPACK.cmake
++++ b/cmake/OpenCVFindLAPACK.cmake
+@@ -31,10 +31,11 @@ macro(ocv_lapack_check)
+ else()
+ # adding proxy opencv_lapack.h header
+ set(CBLAS_H_PROXY_PATH ${CMAKE_BINARY_DIR}/opencv_lapack.h)
+- set(_lapack_include_str "\#include \"${OPENCV_CBLAS_H_PATH_${_lapack_impl}}\"")
++ set(_lapack_include_str "extern \"C\" {\n\#include \"${OPENCV_CBLAS_H_PATH_${_lapack_impl}}\"")
+ if(NOT "${OPENCV_CBLAS_H_PATH_${_lapack_impl}}" STREQUAL "${OPENCV_LAPACKE_H_PATH_${_lapack_impl}}")
+ set(_lapack_include_str "${_lapack_include_str}\n#include \"${OPENCV_LAPACKE_H_PATH_${_lapack_impl}}\"")
+ endif()
++ set(_lapack_include_str "${_lapack_include_str}\n}\n")
+ # update file contents (if required)
+ set(__content_str "")
+ if(EXISTS "${CBLAS_H_PROXY_PATH}")
+diff --git a/cmake/OpenCVFindOpenBLAS.cmake b/cmake/OpenCVFindOpenBLAS.cmake
+index 60594dee46a..ae2daaa194f 100644
+--- a/cmake/OpenCVFindOpenBLAS.cmake
++++ b/cmake/OpenCVFindOpenBLAS.cmake
+@@ -44,35 +44,35 @@
+ #license and copyright terms herein.
+
+ SET(Open_BLAS_INCLUDE_SEARCH_PATHS
+- /usr/include
++ $ENV{OpenBLAS_HOME}
++ $ENV{OpenBLAS_HOME}/include
++ /opt/OpenBLAS/include
++ /usr/local/include/openblas
+ /usr/include/openblas
++ /usr/local/include/openblas-base
+ /usr/include/openblas-base
+ /usr/local/include
+- /usr/local/include/openblas
+- /usr/local/include/openblas-base
+- /opt/OpenBLAS/include
+- $ENV{OpenBLAS_HOME}
+- $ENV{OpenBLAS_HOME}/include
++ /usr/include
+ )
+
+ SET(Open_BLAS_LIB_SEARCH_PATHS
+- /lib/
+- /lib/openblas-base
+- /lib64/
+- /usr/lib
+- /usr/lib/openblas-base
+- /usr/lib64
+- /usr/local/lib
+- /usr/local/lib64
+- /opt/OpenBLAS/lib
+ $ENV{OpenBLAS}cd
+ $ENV{OpenBLAS}/lib
+ $ENV{OpenBLAS_HOME}
+ $ENV{OpenBLAS_HOME}/lib
++ /opt/OpenBLAS/lib
++ /usr/local/lib64
++ /usr/local/lib
++ /lib/openblas-base
++ /lib64/
++ /lib/
++ /usr/lib/openblas-base
++ /usr/lib64
++ /usr/lib
+ )
+
+-FIND_PATH(OpenBLAS_INCLUDE_DIR NAMES cblas.h PATHS ${Open_BLAS_INCLUDE_SEARCH_PATHS})
+-FIND_LIBRARY(OpenBLAS_LIB NAMES openblas PATHS ${Open_BLAS_LIB_SEARCH_PATHS})
++FIND_PATH(OpenBLAS_INCLUDE_DIR NAMES cblas.h PATHS ${Open_BLAS_INCLUDE_SEARCH_PATHS} NO_DEFAULT_PATH)
++FIND_LIBRARY(OpenBLAS_LIB NAMES openblas PATHS ${Open_BLAS_LIB_SEARCH_PATHS} NO_DEFAULT_PATH)
+
+ SET(OpenBLAS_FOUND ON)
+
diff --git a/opencv.spec b/opencv.spec
index 046c28e..bbaddbe 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -68,8 +68,8 @@ Patch2: opencv-3.1-pillow.patch
Patch3: opencv-3.2.0-test-file-fix.patch
# Backport patch, update OpenBLAS support
# https://github.com/opencv/opencv/pull/9955
-# https://github.com/opencv/opencv/commit/476c513447eb16784113e982f6bef0dcabb77732.diff
-Patch50: 476c513447eb16784113e982f6bef0dcabb77732.diff
+# https://github.com/opencv/opencv/commit/476c513447eb16784113e982f6bef0dcabb77732.patch
+Patch50: 476c513447eb16784113e982f6bef0dcabb77732.patch
BuildRequires: libtool
BuildRequires: cmake >= 2.6.3
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=178792385079.1.4375822861297061973.rpms-opencv-9875f5980a4b@fedoraproject.org \
--to=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