pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/ham/freedv freedv: Fix building on NetBSD-current.
details: https://anonhg.NetBSD.org/pkgsrc/rev/1e3c5b5852f3
branches: trunk
changeset: 443223:1e3c5b5852f3
user: nia <nia%pkgsrc.org@localhost>
date: Wed Dec 09 10:38:04 2020 +0000
description:
freedv: Fix building on NetBSD-current.
diffstat:
ham/freedv/distinfo | 3 ++-
ham/freedv/patches/patch-src_fdmdv2__main.cpp | 18 ++++++++++++++++++
2 files changed, 20 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 5d456209f0ed -r 1e3c5b5852f3 ham/freedv/distinfo
--- a/ham/freedv/distinfo Wed Dec 09 10:36:18 2020 +0000
+++ b/ham/freedv/distinfo Wed Dec 09 10:38:04 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2020/11/29 23:14:20 dbj Exp $
+$NetBSD: distinfo,v 1.6 2020/12/09 10:38:04 nia Exp $
SHA1 (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = d3248a3b32b6772bc6c072d2f01bffaae6699dd8
RMD160 (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = 311c0e1022e28fd24361c2ef6f9276f68b5493c1
@@ -6,3 +6,4 @@
Size (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = 6177996 bytes
SHA1 (patch-cmake_FindPortaudio.cmake) = 1105012bc3287bd5044250ad6f1c4609cbf7c217
SHA1 (patch-src_CMakeLists.txt) = 05636fb3c3f836fb8287b16147f5e99a745fb265
+SHA1 (patch-src_fdmdv2__main.cpp) = b002f17ecbe8f3091a10bd6854b0400ce50d3105
diff -r 5d456209f0ed -r 1e3c5b5852f3 ham/freedv/patches/patch-src_fdmdv2__main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/freedv/patches/patch-src_fdmdv2__main.cpp Wed Dec 09 10:38:04 2020 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_fdmdv2__main.cpp,v 1.1 2020/12/09 10:38:04 nia Exp $
+
+src/fdmdv2_main.cpp:1026:37: error: 'isinf' was not declared in this scope; did you mean 'std::isinf'?
+ 1026 | if (!(isnan(g_stats.snr_est) || isinf(g_stats.snr_est))) {
+ | ^~~~~
+ | std::isinf
+
+--- src/fdmdv2_main.cpp.orig 2020-07-18 23:16:05.000000000 +0000
++++ src/fdmdv2_main.cpp
+@@ -1023,7 +1023,7 @@ void MainFrame::OnTimer(wxTimerEvent &ev
+
+ float snr_limited;
+ // some APIs pass us invalid values, so lets trap it rather than bombing
+- if (!(isnan(g_stats.snr_est) || isinf(g_stats.snr_est))) {
++ if (!(std::isnan(g_stats.snr_est) || std::isinf(g_stats.snr_est))) {
+ if (g_mode == -1) {
+ // no averaging of SNR for horus telemetry, just report latest and greatest
+ g_snr = g_stats.snr_est;
Home |
Main Index |
Thread Index |
Old Index