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: Add backport for ppc64le
Date: Fri, 28 Aug 2026 13:33:18 GMT	[thread overview]
Message-ID: <178792399819.1.360767129647462259.rpms-opencv-05e0976b44ae@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-08-28 13:33 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=178792399819.1.360767129647462259.rpms-opencv-05e0976b44ae@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