Accepting request 243349 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/243349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/eigen3?expand=0&rev=2
This commit is contained in:
Stephan Kulow 2014-08-03 13:36:30 +00:00 committed by Git OBS Bridge
parent 7df35ccace
commit 7b7c46f56a
4 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From e4b0115a362a35a3ac6eacca9fbd7f57e7c02fb4 Mon Sep 17 00:00:00 2001
From: Dinar Valeev <dvaleev@suse.com>
Date: Wed, 30 Jul 2014 17:55:03 +0200
Subject: [PATCH] Disable Altivec for ppc64le
---
Eigen/Core | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Eigen/Core b/Eigen/Core
index 9131cc3..329a10d 100644
--- a/Eigen/Core
+++ b/Eigen/Core
@@ -114,7 +114,7 @@
#endif
#endif
} // end extern "C"
- #elif defined __ALTIVEC__
+ #elif defined __ALTIVEC__ && _CALL_ELF != 2
#define EIGEN_VECTORIZE
#define EIGEN_VECTORIZE_ALTIVEC
#include <altivec.h>
--
1.8.5.2

View File

@ -0,0 +1,25 @@
From 91025c823045259bad2297850625a08fbf986043 Mon Sep 17 00:00:00 2001
From: Dinar Valeev <dvaleev@suse.com>
Date: Thu, 31 Jul 2014 12:51:13 +0000
Subject: [PATCH] Do stack allignment on ppc
---
Eigen/src/Core/util/Macros.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index 0088621..f0b5de1 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -50,7 +50,7 @@
// Only static alignment is really problematic (relies on nonstandard compiler extensions that don't
// work everywhere, for example don't work on GCC/ARM), try to keep heap alignment even
// when we have to disable static alignment.
-#if defined(__GNUC__) && !(defined(__i386__) || defined(__x86_64__) || defined(__powerpc__) || defined(__ppc__) || defined(__ia64__))
+#if defined(__GNUC__) && !(defined(__i386__) || defined(__x86_64__) || defined(__ia64__))
#define EIGEN_GCC_AND_ARCH_DOESNT_WANT_STACK_ALIGNMENT 1
#else
#define EIGEN_GCC_AND_ARCH_DOESNT_WANT_STACK_ALIGNMENT 0
--
1.7.12.4

View File

@ -1,4 +1,19 @@
-------------------------------------------------------------------
Thu Jul 31 12:52:18 UTC 2014 - dvaleev@suse.com
- Allign the stack on powerpc
- added patches:
* 0001-Do-stack-allignment-on-ppc.patch
-------------------------------------------------------------------
Wed Jul 30 15:55:52 UTC 2014 - dvaleev@suse.com
- Disable altivec on ppc64le. eigen3 have no LE altivec inplemented
yet.
- added patches:
* 0001-Disable-Altivec-for-ppc64le.patch
-------------------------------------------------------------------
Thu Apr 10 21:05:43 UTC 2014 - asterios.dramis@gmail.com
- Update to version 3.2.1:

View File

@ -25,6 +25,8 @@ Group: Development/Libraries/C and C++
Url: http://eigen.tuxfamily.org/
#DL-URL: http://bitbucket.org/eigen/eigen/get/%{version}.tar.bz2
Source0: eigen-%{version}.tar.bz2
Patch0: 0001-Disable-Altivec-for-ppc64le.patch
Patch1: 0001-Do-stack-allignment-on-ppc.patch
BuildRequires: adolc-devel
BuildRequires: cmake
BuildRequires: doxygen
@ -78,6 +80,8 @@ numerical solvers, and related algorithms.
%prep
%setup -q -n eigen-eigen-6b38706d90a9
%patch0 -p1
%patch1 -p1
# Fix rpmlint warning "wrong-file-end-of-line-encoding"
sed -i 's/\r$//' COPYING.MINPACK