[med-svn] [clustalo] 01/02: Turn suspicious definitions into comments after #ifndef HAS_LOG2 failed

Andreas Tille tille at debian.org
Tue Aug 30 07:59:02 UTC 2016


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

tille pushed a commit to branch master
in repository clustalo.

commit cb909f79bba1e6880cfd3fe44477a349ec6c072d
Author: Andreas Tille <tille at debian.org>
Date:   Tue Aug 30 09:46:24 2016 +0200

    Turn suspicious definitions into comments after #ifndef HAS_LOG2 failed
---
 debian/patches/log2.patch | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/debian/patches/log2.patch b/debian/patches/log2.patch
index 05b3a86..68b2f33 100644
--- a/debian/patches/log2.patch
+++ b/debian/patches/log2.patch
@@ -1,17 +1,33 @@
 Author: Andreas Tille <tille at debian.org>
 Last-Update: Tue, 30 Aug 2016 08:25:06 +0200
 Bug-Debian: https://bugs.debian.org/835074
-Description: Try to deal with duplicate definition of log2 but failed
+Description: Deal with duplicate definition of log2
+ Remark: Even after including config.h
+      #ifndef CLUSTAL_OMEGA_HAVE_LOG2
+ worked in src/hhalign/util-C.h - no idea why.  So the definitions
+ were simply turned into comments.
 
 --- a/src/hhalign/util-C.h
 +++ b/src/hhalign/util-C.h
-@@ -51,7 +51,9 @@ inline int iround(double x) {return int(
+@@ -51,8 +51,10 @@ inline int iround(double x) {return int(
  inline double fmean(double x, double y, double d) { return pow( (pow(x,d)+pow(y,d))/2 ,1./d);}
  
  // log base 2
-+#ifndef HAVE_LOG2
++/*
  inline float log2(float x)  {return (x<=0? (float)(-100000):1.442695041*log(x));}
-+#endif
  inline float log10(float x) {return (x<=0? (float)(-100000):0.434294481*log(x));}
++*/
  
  
+ /////////////////////////////////////////////////////////////////////////////////////
+--- a/src/clustal/mbed.c
++++ b/src/clustal/mbed.c
+@@ -88,7 +88,7 @@ static const int RESTARTS_PER_SPLIT = 10
+ #define USE_KMEANS_LLOYDS 0
+ 
+ 
+-#ifndef HAVE_LOG2
++#ifndef CLUSTAL_OMEGA_HAVE_LOG2
+ #define log2(x)  (log(x) / 0.69314718055994530942)
+ #endif
+ #define NUMBER_OF_SEEDS(n) pow(log2(((double)n)), 2)

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



More information about the debian-med-commit mailing list