rpms/motion/F-18 motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch, NONE, 1.1 motion.spec, 1.18, 1.19

Tomasz Torcz ttorcz at rpmfusion.org
Mon Dec 3 19:49:28 CET 2012


Author: ttorcz

Update of /cvs/free/rpms/motion/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv10315

Modified Files:
	motion.spec 
Added Files:
	motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch 
Log Message:
* Mon Dec 03 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 3.3.0-trunkREV557.1
- add patch to hopefuly fix ARM compilation


motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch:
 ffmpeg.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- NEW FILE motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch ---
>From dcb186cb3ad6666d66aba6453031203ba1f6c15a Mon Sep 17 00:00:00 2001
From: Tomasz Torcz <tomek at pipebreaker.pl>
Date: Mon, 3 Dec 2012 14:25:50 +0100
Subject: [PATCH] emit asm "emms" only on x86 and amd64 arches 

Fixes compilation error on ARM: 
armv5tel - Error: bad instruction `emms`

---
 ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 1c2ae47..57eeda4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1000,7 +1000,7 @@ void ffmpeg_deinterlace(unsigned char *img, int width, int height)
     /* We assume using 'PIX_FMT_YUV420P' always */
     avpicture_deinterlace(&picture, &picture, PIX_FMT_YUV420P, width, height);
 
-#ifndef __SSE_MATH__
+#if !defined(__SSE_MATH__) && (defined(__i386__) || defined(__x86_64__))
     __asm__ __volatile__ ( "emms");
 #endif
 
-- 
1.7.11.7



Index: motion.spec
===================================================================
RCS file: /cvs/free/rpms/motion/F-18/motion.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- motion.spec	2 Dec 2012 15:13:46 -0000	1.18
+++ motion.spec	3 Dec 2012 18:49:28 -0000	1.19
@@ -1,12 +1,13 @@
 Name:           motion
 Version:        3.3.0
-Release:        trunkREV557%{?dist}
+Release:        trunkREV557.1%{?dist}
 Summary:        A motion detection system
 
 Group:          Applications/Multimedia
 License:        GPLv2+
 URL:            http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
 Source0:        http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Patch0:         motion-0001-emit-asm-emms-only-on-x86-and-amd64-arches.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  libjpeg-devel ffmpeg-devel zlib-devel
@@ -26,6 +27,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure --sysconfdir=%{_sysconfdir}/%{name} --without-optimizecpu --with-ffmpeg --without-mysql --without-pgsql
@@ -95,6 +97,9 @@
 %attr(0755,root,root) %{_initrddir}/%{name}
 
 %changelog
+* Mon Dec 03 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 3.3.0-trunkREV557.1
+- add patch to hopefuly fix ARM compilation
+
 * Sun Dec 02 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 3.3.0-trunkREV557
 - package newest trunk, fixing #2586 
 


More information about the rpmfusion-commits mailing list