fix FTBFS on i686

avoid use of sse2
This commit is contained in:
Rex Dieter 2016-05-13 12:12:11 -05:00
parent f47ea05d57
commit 05b9a61ca6
3 changed files with 29 additions and 0 deletions

View File

@ -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
],

View File

@ -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
;; #(

View File

@ -8,6 +8,10 @@ License: BSD
URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/ URL: http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz Source0: http://freedesktop.org/software/pulseaudio/webrtc-audio-processing/%{name}-%{version}.tar.xz
Patch0: webrtc-fix-typedefs-on-other-arches.patch 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 %description
%{name} is a library derived from Google WebRTC project that %{name} is a library derived from Google WebRTC project that
@ -25,6 +29,7 @@ files for developing applications that use %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .typedef %patch0 -p1 -b .typedef
%patch1 -p1 -b .no_sse2_x86
%build %build
%configure \ %configure \