From 10a0fa3a19817ba3e8ab76f2885809b775d30e9a Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 13 Feb 2022 22:42:00 +0900 Subject: [PATCH] Disable some altivec vectorization optimization on ppc64le (bug 2051193) --- opencv.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/opencv.spec b/opencv.spec index 1cfe8c9..ce4512b 100644 --- a/opencv.spec +++ b/opencv.spec @@ -50,7 +50,7 @@ Name: opencv Version: 4.5.5 %global javaver %(foo=%{version}; echo ${foo//./}) %global abiver %(foo=%{version}; echo ${foo:0:3}) -Release: 3%{?dist} +Release: 4%{?dist} Summary: Collection of algorithms for computer vision # This is normal three clause BSD. License: BSD @@ -268,6 +268,11 @@ popd mkdir -p .cache/ade install -pm 0644 %{SOURCE4} .cache/ade/ +%ifarch ppc64le +# Disable some altivec vectorization optimization on ppc64le (bug 2051193) +sed -i modules/core/include/opencv2/core/hal/intrin.hpp \ + -e '\@ifdef CV_FORCE_SIMD128_CPP@i #define CV_FORCE_SIMD128_CPP' +%endif %build # enabled by default if libraries are presents at build time: @@ -483,6 +488,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope %{_libdir}/libopencv_xphoto.so.%{abiver}* %changelog +* Sun Feb 13 2022 Mamoru TASAKA - 4.5.5-4 +- Disable some altivec vectorization optimization on ppc64le (bug 2051193) + * Sat Feb 05 2022 Jiri Vanek - 4.5.5-3 - Rebuilt for java-17-openjdk as system jdk