git: 4926ad2b6f94 - main - science/cdo: Unbreak build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 17 Sep 2022 16:38:17 UTC
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=4926ad2b6f945d6f6cb2a843147df7eef0c33fbf commit 4926ad2b6f945d6f6cb2a843147df7eef0c33fbf Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-09-17 16:37:21 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-09-17 16:38:15 +0000 science/cdo: Unbreak build ... by fixing the C++ error. Reported by: fallout Approved by: portmgr (unbreak) --- science/cdo/files/patch-src_cdo__fft.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/science/cdo/files/patch-src_cdo__fft.cc b/science/cdo/files/patch-src_cdo__fft.cc new file mode 100644 index 000000000000..a56fcd9d6428 --- /dev/null +++ b/science/cdo/files/patch-src_cdo__fft.cc @@ -0,0 +1,13 @@ +- workaround for: https://code.mpimet.mpg.de/issues/10967 +- this fixes compilation failure when std::swap isn't completely defined and it fails with: +- ld: error: undefined hidden symbol: std::__1::enable_if<(is_move_constructible<double>::value) && (is_move_assignable<double>::value), void>::type std::__1::swap<double>(double&, double&) + +--- src/cdo_fft.cc.orig 2022-09-17 16:10:25 UTC ++++ src/cdo_fft.cc +@@ -1,5 +1,6 @@ + // This source code is copied from PINGO version 1.5 + ++#include <algorithm> + #include <cmath> + + namespace cdo