commit 9ab6800426d68e9dea6ebcc888c22e83a81045cf
Author: Jakub Bogusz <qbo...@pld-linux.org>
Date:   Wed Sep 25 20:07:24 2024 +0200

    - added no-sse patch to fix x86 build without sse forced

 audacity-no-sse.patch | 9 +++++++++
 audacity.spec         | 2 ++
 2 files changed, 11 insertions(+)
---
diff --git a/audacity.spec b/audacity.spec
index 436be52..4875ac1 100644
--- a/audacity.spec
+++ b/audacity.spec
@@ -33,6 +33,7 @@ Source0:      
https://github.com/audacity/audacity/releases/download/Audacity-%{versi
 # Source0-md5: 4c108f61b855d947dd03a0e148a49876
 Source1:       
https://github.com/audacity/audacity-manual/releases/download/v%{version}/%{name}-manual-%{version}.tar.gz
 # Source1-md5: 323c6fcd523bd98cf6bd9e3162ca02be
+Patch0:                %{name}-no-sse.patch
 URL:           http://audacityteam.org/
 BuildRequires: alsa-lib-devel
 BuildRequires: chrpath
@@ -127,6 +128,7 @@ Audacity - это звуковой редактор, позволяющий ра
 
 %prep
 %setup -q -n %{name}-sources-%{version}
+%patch0 -p1
 
 # Make sure we use the system versions.
 %{__rm} -r lib-src/{lv2,soundtouch,libsoxr,twolame,libvamp}/
diff --git a/audacity-no-sse.patch b/audacity-no-sse.patch
new file mode 100644
index 0000000..d3a9da0
--- /dev/null
+++ b/audacity-no-sse.patch
@@ -0,0 +1,9 @@
+--- audacity-sources-3.6.0/cmake-proxies/pffft/CMakeLists.txt.orig     
2024-07-16 17:29:09.000000000 +0200
++++ audacity-sources-3.6.0/cmake-proxies/pffft/CMakeLists.txt  2024-09-25 
19:51:44.282467164 +0200
+@@ -14,3 +14,6 @@ set_target_properties( ${TARGET} PROPERT
+ target_sources( ${TARGET} PRIVATE ${SOURCES} )
+ target_include_directories( ${TARGET} PUBLIC ${INCLUDES} )
+ set_property(TARGET ${TARGET} PROPERTY POSITION_INDEPENDENT_CODE ON)
++if( CMAKE_SYSTEM_PROCESSOR MATCHES "i.86" AND NOT HAVE_SSE AND NOT IS_64_BIT )
++  target_compile_definitions( ${TARGET} PRIVATE PFFFT_SIMD_DISABLE )
++endif()
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/audacity.git/commitdiff/9ab6800426d68e9dea6ebcc888c22e83a81045cf

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to