[med-svn] [libbpp-phyl] 01/01: Fix build time issues for remaining architectures

Andreas Tille tille at debian.org
Tue Jun 27 09:19:00 UTC 2017


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

tille pushed a commit to branch master
in repository libbpp-phyl.

commit b086c0715f675e6126c898ea7153ea55257cfea1
Author: Andreas Tille <tille at debian.org>
Date:   Tue Jun 27 11:16:22 2017 +0200

    Fix build time issues for remaining architectures
---
 debian/changelog                                     |  7 +++++++
 ...-threshold-for-application-to-a-broader-ran.patch | 20 ++++++++++++++++++++
 ...ed-unit-tests-compilation-on-some-platforms.patch | 19 +++++++++++++++++++
 debian/patches/series                                |  2 ++
 4 files changed, 48 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 30e1b84..ce0d678 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+libbpp-phyl (2.3.1-5) unstable; urgency=medium
+
+  * Fix build time issues for remaining architectures
+    Closes: #865552
+
+ -- Andreas Tille <tille at debian.org>  Tue, 27 Jun 2017 11:16:14 +0200
+
 libbpp-phyl (2.3.1-4) unstable; urgency=medium
 
   * Relax timeout for tests.
diff --git a/debian/patches/0001-Decreased-threshold-for-application-to-a-broader-ran.patch b/debian/patches/0001-Decreased-threshold-for-application-to-a-broader-ran.patch
new file mode 100644
index 0000000..4ed4a7c
--- /dev/null
+++ b/debian/patches/0001-Decreased-threshold-for-application-to-a-broader-ran.patch
@@ -0,0 +1,20 @@
+From: "Julien Y. Dutheil" <dutheil at evolbio.mpg.de>
+Date: Mon, 26 Jun 2017 21:00:35 +0200
+Subject: [PATCH 1/2] Decreased threshold for application to a broader range of
+ architecture.
+
+---
+ test/test_likelihood_clock.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/test/test_likelihood_clock.cpp
++++ b/test/test_likelihood_clock.cpp
+@@ -69,7 +69,7 @@ void fitModelH(SubstitutionModel* model,
+   cout << setprecision(20) << tl.getValue() << endl;
+   ApplicationTools::displayResult("* likelihood after full optimization", tl.getValue());
+   tl.getParameters().printParameters(cout);
+-  if (abs(tl.getValue() - finalValue) > 0.0001)
++  if (abs(tl.getValue() - finalValue) > 0.001)
+     throw Exception("Incorrect final value.");
+ }
+ 
diff --git a/debian/patches/0002-Fixed-unit-tests-compilation-on-some-platforms.patch b/debian/patches/0002-Fixed-unit-tests-compilation-on-some-platforms.patch
new file mode 100644
index 0000000..e576257
--- /dev/null
+++ b/debian/patches/0002-Fixed-unit-tests-compilation-on-some-platforms.patch
@@ -0,0 +1,19 @@
+From 40b4ee6fb20750e6aacbeaf67cba4f87ed88972a Mon Sep 17 00:00:00 2001
+From: "Julien Y. Dutheil" <dutheil at evolbio.mpg.de>
+Date: Tue, 27 Jun 2017 10:45:09 +0200
+Subject: [PATCH 2/2] Fixed unit tests compilation on some platforms.
+
+---
+ test/CMakeLists.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -16,6 +16,7 @@ foreach (test_cpp_file ${test_cpp_files}
+   get_filename_component (test_name ${test_cpp_file} NAME_WE)
+   add_executable (${test_name} ${test_cpp_file})
+   target_link_libraries (${test_name} ${PROJECT_NAME}-shared)
++  set_target_properties (${test_name} PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
+   add_test (
+     NAME ${test_name}
+     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
diff --git a/debian/patches/series b/debian/patches/series
index cf6375e..0bc967d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,3 @@
 relax_test_timeout.patch
+0001-Decreased-threshold-for-application-to-a-broader-ran.patch
+0002-Fixed-unit-tests-compilation-on-some-platforms.patch

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



More information about the debian-med-commit mailing list