public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Add upstream patch to fix build on PPC64LE with GCC 15
Date: Fri, 28 Aug 2026 13:32:54 GMT [thread overview]
Message-ID: <178792397437.1.14823237872054403540.rpms-opencv-392683e0c64c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : 392683e0c64c19b94346d165f883e1bdcdf44f6f
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2025-01-18T00:19:28+00:00
Stats : +38/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/392683e0c64c19b94346d165f883e1bdcdf44f6f?branch=opencv5
Log:
Add upstream patch to fix build on PPC64LE with GCC 15
---
diff --git a/26786.patch b/26786.patch
new file mode 100644
index 0000000..3ae3d3e
--- /dev/null
+++ b/26786.patch
@@ -0,0 +1,35 @@
+From 63ef786a3a0afcd44bf842f967656052d52dde09 Mon Sep 17 00:00:00 2001
+From: Maksim Shabunin <maksim.shabunin@gmail.com>
+Date: Thu, 16 Jan 2025 23:48:29 +0300
+Subject: [PATCH] core: fixed VSX build with GCC 15
+
+---
+ modules/core/include/opencv2/core/vsx_utils.hpp | 8 ++------
+ 1 file changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/modules/core/include/opencv2/core/vsx_utils.hpp b/modules/core/include/opencv2/core/vsx_utils.hpp
+index 79a1074d59ff..4d5a694bae8e 100644
+--- a/modules/core/include/opencv2/core/vsx_utils.hpp
++++ b/modules/core/include/opencv2/core/vsx_utils.hpp
+@@ -257,8 +257,8 @@ VSX_IMPL_1VRG(vec_udword2, vec_udword2, vpopcntd, vec_popcntu)
+ VSX_IMPL_1VRG(vec_udword2, vec_dword2, vpopcntd, vec_popcntu)
+
+ // converts between single and double-precision
+-VSX_REDIRECT_1RG(vec_float4, vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
+-VSX_REDIRECT_1RG(vec_double2, vec_float4, vec_cvfo, __builtin_vsx_xvcvspdp)
++VSX_REDIRECT_1RG(vec_float4, vec_double2, vec_cvfo, vec_floate)
++VSX_REDIRECT_1RG(vec_double2, vec_float4, vec_cvfo, vec_doubleo)
+
+ // converts word and doubleword to double-precision
+ #undef vec_ctd
+@@ -399,10 +399,6 @@ VSX_REDIRECT_1RG(vec_ushort8, vec_ushort8, vec_popcntu, vec_popcnt)
+ VSX_REDIRECT_1RG(vec_uint4, vec_uint4, vec_popcntu, vec_popcnt)
+ VSX_REDIRECT_1RG(vec_udword2, vec_udword2, vec_popcntu, vec_popcnt)
+
+-// converts between single and double precision
+-VSX_REDIRECT_1RG(vec_float4, vec_double2, vec_cvfo, __builtin_vsx_xvcvdpsp)
+-VSX_REDIRECT_1RG(vec_double2, vec_float4, vec_cvfo, __builtin_vsx_xvcvspdp)
+-
+ // converts word and doubleword to double-precision
+ #ifdef vec_ctd
+ # undef vec_ctd
diff --git a/opencv.spec b/opencv.spec
index 5a69999..294588f 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -104,6 +104,7 @@ Source6: https://github.com/WeChatCV/opencv_3rdparty/archive/%{wechat_com
Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
Patch3: opencv.python.patch
+Patch5: https://github.com/opencv/opencv/pull/26786.patch
BuildRequires: gcc-c++
BuildRequires: cmake >= 2.6.3
@@ -403,6 +404,7 @@ popd &>/dev/null
%patch -P 0 -p1 -b .install_3rdparty_licenses
%patch -P 3 -p1 -b .python_install_binary
+%patch -P 5 -p1 -b .GCC15
pushd %{name}_contrib-%{version}
#patch1 -p1 -b .install_cvv
@@ -581,6 +583,7 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
%changelog
* Fri Jan 17 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.10.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+- Add upstream patch to fix build on PPC64LE with GCC 15
* Mon Dec 23 2024 Orion Poplawski <orion@nwra.com> - 4.10.0-8
- Rebuild with numpy 2.x (rhbz#2333781)
reply other threads:[~2026-08-28 13:32 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=178792397437.1.14823237872054403540.rpms-opencv-392683e0c64c@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