public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Add backport for ppc64le
@ 2026-08-28 13:33 Nicolas Chauvet
  0 siblings, 0 replies; only message in thread
From: Nicolas Chauvet @ 2026-08-28 13:33 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/opencv
Branch : opencv5
Commit : 05e0976b44ae4e81c527e27b714b966c38f9e60c
Author : Nicolas Chauvet <kwizart@gmail.com>
Date   : 2026-01-28T17:42:01+01:00
Stats  : +27/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/opencv/c/05e0976b44ae4e81c527e27b714b966c38f9e60c?branch=opencv5

Log:
Add backport for ppc64le

---
diff --git a/Fix-macro-definition-for-Power10-architecture.patch b/Fix-macro-definition-for-Power10-architecture.patch
new file mode 100644
index 0000000..fe98757
--- /dev/null
+++ b/Fix-macro-definition-for-Power10-architecture.patch
@@ -0,0 +1,25 @@
+From 13c8ec3aa9220fcdde22421b4d342a1f0320cb4a Mon Sep 17 00:00:00 2001
+From: Mark Harfouche <mark.harfouche@gmail.com>
+Date: Thu, 1 Jan 2026 20:37:01 -0500
+Subject: [PATCH] Fix macro definition for Power10 architecture
+
+---
+ modules/core/include/opencv2/core/vsx_utils.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/modules/core/include/opencv2/core/vsx_utils.hpp b/modules/core/include/opencv2/core/vsx_utils.hpp
+index aafc6c07b176..87c370ebe01a 100644
+--- a/modules/core/include/opencv2/core/vsx_utils.hpp
++++ b/modules/core/include/opencv2/core/vsx_utils.hpp
+@@ -258,7 +258,7 @@ VSX_IMPL_1VRG(vec_udword2, vec_dword2,  vpopcntd, vec_popcntu)
+ 
+ // converts between single and double-precision
+ // vec_floate and vec_doubleo are available since Power10 and z14
+-#if defined(__POWER10__) || (defined(__powerpc64__) && defined(__ARCH_PWR10__)
++#if defined(__POWER10__) || (defined(__powerpc64__) && defined(__ARCH_PWR10__))
+ //  Use VSX double<->float conversion instructions (if supported by the architecture)
+     VSX_REDIRECT_1RG(vec_float4,  vec_double2, vec_cvfo, vec_floate)
+     VSX_REDIRECT_1RG(vec_double2, vec_float4,  vec_cvfo, vec_doubleo)
+-- 
+2.52.0
+

diff --git a/opencv.spec b/opencv.spec
index 905e02a..b202fba 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -102,6 +102,7 @@ Source6:        https://github.com/WeChatCV/opencv_3rdparty/archive/%{wechat_com
 
 Patch0:         opencv-4.1.0-install_3rdparty_licenses.patch
 Patch3:         opencv.python.patch
+Patch4:         Fix-macro-definition-for-Power10-architecture.patch
 
 
 BuildRequires:  gcc-c++
@@ -399,6 +400,7 @@ popd &>/dev/null
 
 %patch -P 0 -p1 -b .install_3rdparty_licenses
 %patch -P 3 -p1 -b .python_install_binary
+%patch -P 4 -p1 -b .ppc_macro
 
 pushd %{name}_contrib-%{version}
 #patch1 -p1 -b .install_cvv

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

only message in thread, other threads:[~2026-08-28 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:33 [rpms/opencv] opencv5: Add backport for ppc64le Nicolas Chauvet

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