[packages/gstreamer0.10-plugins-base] - fix building on ix86

baggins baggins at pld-linux.org
Sun Mar 1 19:40:19 CET 2015


commit 04ff5de9da6f96c922cd625def63de44413a2761
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Mar 1 19:39:59 2015 +0100

    - fix building on ix86

 gstreamer0.10-plugins-base.spec |  2 ++
 sse-sse2-check.patch            | 21 +++++++++++++++++++++
 2 files changed, 23 insertions(+)
---
diff --git a/gstreamer0.10-plugins-base.spec b/gstreamer0.10-plugins-base.spec
index 861880e..70587c5 100644
--- a/gstreamer0.10-plugins-base.spec
+++ b/gstreamer0.10-plugins-base.spec
@@ -25,6 +25,7 @@ License:	LGPL v2+
 Group:		Libraries
 Source0:	http://gstreamer.freedesktop.org/src/gst-plugins-base/%{gstname}-%{version}.tar.xz
 # Source0-md5:	3d2337841b132fe996e5eb2396ac9438
+Patch0:		sse-sse2-check.patch
 URL:		http://gstreamer.freedesktop.org/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake >= 1:1.10
@@ -320,6 +321,7 @@ Wtyczka wyjścia obrazu Xvideo dla GStreamera.
 
 %prep
 %setup -q -n %{gstname}-%{version}
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/sse-sse2-check.patch b/sse-sse2-check.patch
new file mode 100644
index 0000000..5afdb0b
--- /dev/null
+++ b/sse-sse2-check.patch
@@ -0,0 +1,21 @@
+@@ -, +, @@ 
+ gst/audioresample/resample.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+--- a/gst/audioresample/resample.c	
++++ a/gst/audioresample/resample.c	
+@@ -77,13 +77,13 @@ 
+ #define EXPORT G_GNUC_INTERNAL
+ 
+ #ifdef _USE_SSE
+-#ifndef HAVE_XMMINTRIN_H
++#if !defined(__SSE__) || !defined(HAVE_XMMINTRIN_H)
+ #undef _USE_SSE
+ #endif
+ #endif
+ 
+ #ifdef _USE_SSE2
+-#ifndef HAVE_EMMINTRIN_H
++#if !defined(__SSE2__) || !defined(HAVE_XMMINTRIN_H)
+ #undef _USE_SSE2
+ #endif
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10-plugins-base.git/commitdiff/04ff5de9da6f96c922cd625def63de44413a2761



More information about the pld-cvs-commit mailing list