[clasp] 03/04: fix FTBFS on alpha

Thomas Krennwallner tkren-guest at moszumanska.debian.org
Sat Dec 17 09:11:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

tkren-guest pushed a commit to branch devel
in repository clasp.

commit 8ff6aadbdfed8f1fd93d888b74e74032d31ac466
Author: Thomas Krennwallner <tkren at kr.tuwien.ac.at>
Date:   Sat Dec 17 07:41:47 2016 +0100

    fix FTBFS on alpha
    
    do not define FPU_SWITCH_DOUBLE on alpha, _FPU_GETCW and friends are
    undefined on this arch
---
 debian/patches/clasp-alpha-fpu-getcw.patch | 23 +++++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/clasp-alpha-fpu-getcw.patch b/debian/patches/clasp-alpha-fpu-getcw.patch
new file mode 100644
index 0000000..8ae8934
--- /dev/null
+++ b/debian/patches/clasp-alpha-fpu-getcw.patch
@@ -0,0 +1,23 @@
+From: Thomas Krennwallner <tkren at kr.tuwien.ac.at>
+Date: Sat, 17 Dec 2016 07:27:31 +0100
+Subject: alpha FTBFS: _FPU_GETCW is undefined
+Forwarded: https://github.com/potassco/clasp/pull/3
+
+===================================================================
+---
+ app/clasp_app.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/app/clasp_app.cpp b/app/clasp_app.cpp
+index 31f2b70..cb4294e 100644
+--- a/app/clasp_app.cpp
++++ b/app/clasp_app.cpp
+@@ -32,7 +32,7 @@
+ #endif
+ #include <clasp/clause.h>
+ 
+-#if defined( __linux__ )
++#if defined( __linux__ ) && !defined(__alpha__)
+ #include <fpu_control.h>
+ #if defined(_FPU_EXTENDED) && defined(_FPU_SINGLE) && defined(_FPU_DOUBLE)
+ #define FPU_SWITCH_DOUBLE(oldW) _FPU_GETCW(oldW);\
diff --git a/debian/patches/series b/debian/patches/series
index 6616739..47fbc48 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 reproducible-build.patch
 clasp-manpage.patch
+clasp-alpha-fpu-getcw.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clasp.git



More information about the debian-science-commits mailing list