[packages/qt6] fix build on archs without simd

atler atler at pld-linux.org
Fri Nov 4 17:18:43 CET 2022


commit 92c02ab6fceba57b39588e40068acea64c4efbbe
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Nov 4 17:13:25 2022 +0100

    fix build on archs without simd
    
    dynamic instruction set does not seem to be supported in:
    - pffft.c inside qtmultimedia (use scalar version)
    - qtquick3dphysics whose hard dependency "physx" requires sse2 hence
      disable it entirely

 qt6.spec | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/qt6.spec b/qt6.spec
index b27dd3e..adf69f2 100644
--- a/qt6.spec
+++ b/qt6.spec
@@ -85,6 +85,13 @@
 %if %{without qtquick3d}
 %undefine	with_qtquick3dphysics
 %endif
+%ifarch %{x86_with_sse} %{arm_with_neon}
+%define		with_simd	1
+%endif
+%ifnarch %{x86_with_sse2} %{arm_with_neon}
+%undefine	with_qtquick3dphysics
+%endif
+%define		specflags	%{!?with_simd:-DDISABLE_SIMD -DPFFFT_SIMD_DISABLE}
 
 %define		icu_abi		71
 %define		next_icu_abi	%(echo $((%{icu_abi} + 1)))
@@ -181,7 +188,7 @@ BuildRequires:	python3
 BuildRequires:	python3-html5lib
 BuildRequires:	re2-devel
 BuildRequires:	rpm-build >= 4.6
-BuildRequires:	rpmbuild(macros) >= 1.752
+BuildRequires:	rpmbuild(macros) >= 2.007
 BuildRequires:	samurai
 BuildRequires:	sed >= 4.0
 BuildRequires:	snappy-devel
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/qt6.git/commitdiff/92c02ab6fceba57b39588e40068acea64c4efbbe



More information about the pld-cvs-commit mailing list