pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/ham/freedv
Module Name: pkgsrc
Committed By: nia
Date: Wed Dec 9 10:38:04 UTC 2020
Modified Files:
pkgsrc/ham/freedv: distinfo
Added Files:
pkgsrc/ham/freedv/patches: patch-src_fdmdv2__main.cpp
Log Message:
freedv: Fix building on NetBSD-current.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/ham/freedv/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/ham/freedv/patches/patch-src_fdmdv2__main.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/ham/freedv/distinfo
diff -u pkgsrc/ham/freedv/distinfo:1.5 pkgsrc/ham/freedv/distinfo:1.6
--- pkgsrc/ham/freedv/distinfo:1.5 Sun Nov 29 23:14:20 2020
+++ pkgsrc/ham/freedv/distinfo Wed Dec 9 10:38:04 2020
@@ -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 @@ SHA512 (freedv-1.4.2-bb9558cc496b7b253fb
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
Added files:
Index: pkgsrc/ham/freedv/patches/patch-src_fdmdv2__main.cpp
diff -u /dev/null pkgsrc/ham/freedv/patches/patch-src_fdmdv2__main.cpp:1.1
--- /dev/null Wed Dec 9 10:38:04 2020
+++ pkgsrc/ham/freedv/patches/patch-src_fdmdv2__main.cpp Wed Dec 9 10:38:04 2020
@@ -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