1 |
commit: 71fb540e91fd211248ed97daee867d9bfe77fa4d |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 18:11:32 2016 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 5 18:11:49 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71fb540e |
7 |
|
8 |
sci-biology/allpathslg: replace isnan macro with proper std::isnan function |
9 |
|
10 |
Gentoo-Bug: 580086 |
11 |
|
12 |
Package-Manager: portage-2.2.28 |
13 |
|
14 |
.../allpathslg-52488_remove-namespace-std.patch | 22 +++++++++++++++++++++- |
15 |
1 file changed, 21 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/sci-biology/allpathslg/files/allpathslg-52488_remove-namespace-std.patch b/sci-biology/allpathslg/files/allpathslg-52488_remove-namespace-std.patch |
18 |
index a094c53..56d0406 100644 |
19 |
--- a/sci-biology/allpathslg/files/allpathslg-52488_remove-namespace-std.patch |
20 |
+++ b/sci-biology/allpathslg/files/allpathslg-52488_remove-namespace-std.patch |
21 |
@@ -890,10 +890,12 @@ https://bugs.gentoo.org/show_bug.cgi?id=568440 |
22 |
bool IsBubbleEdge(int eid, const HyperBasevector& hb, const vec<int>& to_left, |
23 |
--- allpathslg-52488/src/paths/long/VariantReadSupport.cc |
24 |
+++ allpathslg-52488/src/paths/long/VariantReadSupport.cc |
25 |
-@@ -23,6 +23,11 @@ |
26 |
+@@ -23,6 +23,13 @@ |
27 |
#include "paths/long/ReadOriginTracker.h" |
28 |
#include "paths/long/EvalByReads.h" |
29 |
|
30 |
++#include <cmath> |
31 |
++ |
32 |
+using std::get; |
33 |
+using std::make_tuple; |
34 |
+using std::ignore; |
35 |
@@ -902,6 +904,24 @@ https://bugs.gentoo.org/show_bug.cgi?id=568440 |
36 |
namespace { |
37 |
void CalcLengthProbSimple(vec<double>&vOut,const double dProbIns_len, const double dProbDel_len, const uint64_t org_length){ |
38 |
const double dProbIns=dProbIns_len; |
39 |
+@@ -158,7 +165,7 @@ |
40 |
+ for(uint64_t ff=1;ff<nFlavors;++ff){ |
41 |
+ for( size_t ll = 2 ; ll <= get<0>(n_q_len[ff]) ; ++ll){ dFactor /= (long double)(ll); } |
42 |
+ } |
43 |
+- if( dFactor==std::numeric_limits<long double>::infinity() || isnan(dFactor) ){ dFactor=1.0; } |
44 |
++ if( dFactor==std::numeric_limits<long double>::infinity() || std::isnan(dFactor) ){ dFactor=1.0; } |
45 |
+ if(verbosity>0) std::cout << "dFactor " << dFactor << std::endl; |
46 |
+ |
47 |
+ long double dDenom=0.0; |
48 |
+@@ -193,7 +200,7 @@ |
49 |
+ } |
50 |
+ } |
51 |
+ if(verbosity>0) std::cout <<"denom: " << dDenom<< std::endl; |
52 |
+- if( dDenom < std::numeric_limits<long double>::epsilon() * 100 || isnan(dDenom)) return; |
53 |
++ if( dDenom < std::numeric_limits<long double>::epsilon() * 100 || std::isnan(dDenom)) return; |
54 |
+ ForceAssert(dDenom>0); |
55 |
+ if(verbosity>0){ |
56 |
+ for( uint64_t row=0;row<nFlavors;++row){ |
57 |
--- allpathslg-52488/src/paths/long/VariantReadSupport.h |
58 |
+++ allpathslg-52488/src/paths/long/VariantReadSupport.h |
59 |
@@ -5,6 +5,8 @@ |