[med-svn] [mia] 06/08: add patch to correct build on powerpc

Gert Wollny gert-guest at moszumanska.debian.org
Fri Sep 5 09:59:05 UTC 2014


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

gert-guest pushed a commit to branch master
in repository mia.

commit e74d93302eb7b1bcfee592c0638fcb3375f7d9d1
Author: Gert Wollny <gw.fossdev at gmail.com>
Date:   Thu Sep 4 12:07:33 2014 +0200

    add patch to correct build on powerpc
---
 .../02_float_test_close_powerpc_accuracy.patch     | 22 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/02_float_test_close_powerpc_accuracy.patch b/debian/patches/02_float_test_close_powerpc_accuracy.patch
new file mode 100644
index 0000000..b933a50
--- /dev/null
+++ b/debian/patches/02_float_test_close_powerpc_accuracy.patch
@@ -0,0 +1,22 @@
+Description: Relax test accuracy for floating point values 
+ On powerpc the test failed because of comparing floating point 
+ values for equality, which is not reliable.  
+
+Author: Gert Wollny <gw.fossdev at gmail.com>
+
+diff --git a/mia/3d/test_stackdisttrans.cc b/mia/3d/test_stackdisttrans.cc
+index 36ef5d3..38186d8 100644
+--- a/mia/3d/test_stackdisttrans.cc
++++ b/mia/3d/test_stackdisttrans.cc
+@@ -154,9 +154,9 @@ BOOST_AUTO_TEST_CASE( test_anisotropic_data )
+ 	BOOST_REQUIRE(result0.size() == ref_result.size()); 
+ 	for( auto test = result0.begin(), ref = ref_result.begin(); test != result0.end(); 
+ 	     ++test, ++ref) {
+-		BOOST_CHECK_EQUAL(*test, *ref); 
++		BOOST_CHECK_EQUAL(test->point, ref->point); 
++		BOOST_CHECK_CLOSE(test->distance, ref->distance, 0.1); 
+ 	}
+ }
+ 
+ 
+-
diff --git a/debian/patches/series b/debian/patches/series
index 8526e67..36b62b5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01_disable-treeview-for-jquery-compatibility.patch
+02_float_test_close_powerpc_accuracy.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/mia.git



More information about the debian-med-commit mailing list