diff options
Diffstat (limited to 'sci-biology/lagan/files/lagan-2.0-ambiguous-end.patch')
-rw-r--r-- | sci-biology/lagan/files/lagan-2.0-ambiguous-end.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/sci-biology/lagan/files/lagan-2.0-ambiguous-end.patch b/sci-biology/lagan/files/lagan-2.0-ambiguous-end.patch new file mode 100644 index 000000000000..945120b1fc47 --- /dev/null +++ b/sci-biology/lagan/files/lagan-2.0-ambiguous-end.patch @@ -0,0 +1,49 @@ +Author: Steffen Moeller +Last-Update: 2018-09-07 15:08:19 +0200 +Description: Fix build issue + +Index: lagan/src/glocal/rightinfluence.cpp +=================================================================== +--- lagan.orig/src/glocal/rightinfluence.cpp ++++ lagan/src/glocal/rightinfluence.cpp +@@ -1,6 +1,6 @@ + #include <rightinfluence.h> + +-Fragment origin, end; ++static Fragment originFrag, endFrag; + + // Sets the first default owner of the whole region + void initRI(RI *RightInfluence, long long int scoreIndex) { +@@ -13,22 +13,22 @@ void initRI(RI *RightInfluence, long lon + } + + // will lose to anyone +- origin.seq1End = 0; origin.seq2End = 0; +- origin.seq1Start = 0; origin.seq2Start = 0; ++ originFrag.seq1End = 0; originFrag.seq2End = 0; ++ originFrag.seq1Start = 0; originFrag.seq2Start = 0; + + // hack to aid winner selection +- origin.score = -1; +- end.score = -2; +- origin.totalScore = end.totalScore = 0; ++ originFrag.score = -1; ++ endFrag.score = -2; ++ originFrag.totalScore = endFrag.totalScore = 0; + + // will win against anyone +- end.seq1End = 0; end.seq2End = 0; +- end.seq1Start = 0; end.seq2Start = 0; ++ endFrag.seq1End = 0; endFrag.seq2End = 0; ++ endFrag.seq1Start = 0; endFrag.seq2Start = 0; + +- origin.back = NULL; ++ originFrag.back = NULL; + +- RightInfluence->act[-INF] = &origin; +- RightInfluence->act[+INF] = &end; ++ RightInfluence->act[-INF] = &originFrag; ++ RightInfluence->act[+INF] = &endFrag; + } + + |