From 5de9565fd8511028428e1d9d42bdf866671a5290 Mon Sep 17 00:00:00 2001 From: Gijs Molenaar Date: Mon, 19 Mar 2018 12:49:10 +0000 Subject: [PATCH] add pow10 patch --- debian/patches/Declare-pow10.patch | 28 ++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 29 insertions(+) create mode 100644 debian/patches/Declare-pow10.patch diff --git a/debian/patches/Declare-pow10.patch b/debian/patches/Declare-pow10.patch new file mode 100644 index 0000000..073d9b7 --- /dev/null +++ b/debian/patches/Declare-pow10.patch @@ -0,0 +1,28 @@ +Description: fix missing pow10 + +--- aoflagger-2.10.0.orig/src/quality/loghistogram.h ++++ aoflagger-2.10.0/src/quality/loghistogram.h +@@ -10,10 +10,7 @@ + + #include "../util/serializable.h" + +-//# pow10 seems to be undefined on OS-X +-#ifdef __APPLE__ + # define pow10(x) pow(10., (x)) +-#endif + + + class LogHistogram : public Serializable +--- aoflagger-2.10.0.orig/src/util/numberparser.h ++++ aoflagger-2.10.0/src/util/numberparser.h +@@ -2,10 +2,7 @@ + + #include + +-//# pow10 seems to be undefined on OS-X +-#ifdef __APPLE__ + # define pow10(x) pow(10., (x)) +-#endif + + + class NumberParsingException : public std::runtime_error diff --git a/debian/patches/series b/debian/patches/series index 1637e8c..441c64b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ Build-shared-lib-with-SONAME-and-SOVERSION.patch Disable-special-RPATH-handling.patch +Declare-pow10.patch #Support-Python-3.x.patch -- GitLab