From 05b9a61ca6032a9ba4506ad114942390640ab09e Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Fri, 13 May 2016 12:12:11 -0500 Subject: [PATCH] fix FTBFS on i686 avoid use of sse2 --- webrtc-audio-processing-0.2-no_sse2_x86-ac.patch | 12 ++++++++++++ webrtc-audio-processing-0.2-no_sse2_x86.patch | 12 ++++++++++++ webrtc-audio-processing.spec | 5 +++++ 3 files changed, 29 insertions(+) create mode 100644 webrtc-audio-processing-0.2-no_sse2_x86-ac.patch create mode 100644 webrtc-audio-processing-0.2-no_sse2_x86.patch diff --git a/webrtc-audio-processing-0.2-no_sse2_x86-ac.patch b/webrtc-audio-processing-0.2-no_sse2_x86-ac.patch new file mode 100644 index 0000000..66a30ff --- /dev/null +++ b/webrtc-audio-processing-0.2-no_sse2_x86-ac.patch @@ -0,0 +1,12 @@ +diff -up webrtc-audio-processing-0.2/configure.ac.no_sse2_x86 webrtc-audio-processing-0.2/configure.ac +--- webrtc-audio-processing-0.2/configure.ac.no_sse2_x86 2015-11-04 01:49:34.000000000 -0600 ++++ webrtc-audio-processing-0.2/configure.ac 2016-05-13 11:55:30.199168174 -0500 +@@ -56,7 +56,7 @@ AS_CASE(["${host}"], + AC_SUBST(PLATFORM_CFLAGS) + + AS_CASE(["${host_cpu}"], +- [i?86|x86_64], ++ [x86_64], + [ + HAVE_X86=1 + ], diff --git a/webrtc-audio-processing-0.2-no_sse2_x86.patch b/webrtc-audio-processing-0.2-no_sse2_x86.patch new file mode 100644 index 0000000..28759a0 --- /dev/null +++ b/webrtc-audio-processing-0.2-no_sse2_x86.patch @@ -0,0 +1,12 @@ +diff -up webrtc-audio-processing-0.2/configure.no_sse2_x86 webrtc-audio-processing-0.2/configure +--- webrtc-audio-processing-0.2/configure.no_sse2_x86 2015-11-04 01:50:11.000000000 -0600 ++++ webrtc-audio-processing-0.2/configure 2016-05-13 11:55:38.964203868 -0500 +@@ -16104,7 +16104,7 @@ esac + + + case "${host_cpu}" in #( +- i?86|x86_64) : ++ x86_64) : + + HAVE_X86=1 + ;; #( diff --git a/webrtc-audio-processing.spec b/webrtc-audio-processing.spec index 88a9f8e..e552527 100644 --- a/webrtc-audio-processing.spec +++ b/webrtc-audio-processing.spec @@ -8,6 +8,10 @@ License: BSD URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/ Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz Patch0: webrtc-fix-typedefs-on-other-arches.patch +# can't use sse2 on %%ix86 in fedora +Patch1: webrtc-audio-processing-0.2-no_sse2_x86.patch +# match for patch1 when autoreconf'ing (unused, so far) +Patch2: webrtc-audio-processing-0.2-no_sse2_x86-ac.patch %description %{name} is a library derived from Google WebRTC project that @@ -25,6 +29,7 @@ files for developing applications that use %{name}. %prep %setup -q %patch0 -p1 -b .typedef +%patch1 -p1 -b .no_sse2_x86 %build %configure \