From ac8f7055a90e9ca42642329d618e0fc1eee7c896c7a2613c828c77b90b4b5a65 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 12 Feb 2014 09:12:12 +0000 Subject: [PATCH] Accepting request 221848 from home:bmwiedemann:branches:Base:System disable SSE2 on i586 (bnc#860779) OBS-URL: https://build.opensuse.org/request/show/221848 OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=20 --- dd_rescue.changes | 5 +++++ dd_rescue.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dd_rescue.changes b/dd_rescue.changes index 956b25a..c70ad6c 100644 --- a/dd_rescue.changes +++ b/dd_rescue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 11 14:00:38 UTC 2014 - bwiedemann@suse.com + +- disable SSE2 on i586 (bnc#860779) + ------------------------------------------------------------------- Thu Aug 18 23:52:41 CEST 2013 - kurt@garloff.de diff --git a/dd_rescue.spec b/dd_rescue.spec index 31d72a4..0f95816 100644 --- a/dd_rescue.spec +++ b/dd_rescue.spec @@ -1,7 +1,7 @@ # # spec file for package dd_rescue # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -54,7 +54,12 @@ sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/g" dd_rescue.c sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c %build -make RPM_OPT_FLAGS="%{optflags}" LIBDIR=%{_libdir} %{?_smp_mflags} +flags="%{optflags}" +%ifarch i386 i486 i586 i686 +sed -i 's/SSE = "-msse2"/SSE = "-DNO_SSE2"/' Makefile +flags="%{optflags} -DNO_SSE2" +%endif +make RPM_OPT_FLAGS="$flags" LIBDIR=%{_libdir} %{?_smp_mflags} %install make install DESTDIR=%{buildroot} INSTALLDIR=%{buildroot}/%{_bindir} \