pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/ham/freedv ham/freedv: Patch undefined constant, likel...
details: https://anonhg.NetBSD.org/pkgsrc/rev/94b85562e6c5
branches: trunk
changeset: 771202:94b85562e6c5
user: gdt <gdt%pkgsrc.org@localhost>
date: Tue Dec 14 23:56:56 2021 +0000
description:
ham/freedv: Patch undefined constant, likely from hamlib
freedv uses FILPATHLEN, which is undefined, and not apparently POSIX.
hamlib defines HAMLIB_FILPATHLEN. Speculate that hamlib used to not
namespace the constant, that hamlib has been updated, and freedv not,
and patch freedv to match. freedv is due for an update anyway, and
this can be upstreamed then if it is still an issue.
diffstat:
ham/freedv/distinfo | 3 ++-
ham/freedv/patches/patch-src_hamlib.cpp | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 3001d2074775 -r 94b85562e6c5 ham/freedv/distinfo
--- a/ham/freedv/distinfo Tue Dec 14 22:16:33 2021 +0000
+++ b/ham/freedv/distinfo Tue Dec 14 23:56:56 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 10:48:38 nia Exp $
+$NetBSD: distinfo,v 1.9 2021/12/14 23:56:56 gdt Exp $
BLAKE2s (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) = 99e09f474f7c41b23aac1be374d06a6e1295ad3e658152dead9adc7778096e8c
SHA512 (freedv-1.4.2-bb9558cc496b7b253fb54bb28486b0bcd7516ae5.tar.gz) =
fc7589606a208938129ad622966fa108e4c1ee84a86273a1b33705331282e811f7891bbc47528e475742a9b78f4dbc78cc1d84c13e1784b7923de9babf60171d
@@ -6,3 +6,4 @@
SHA1 (patch-cmake_FindPortaudio.cmake) = 1105012bc3287bd5044250ad6f1c4609cbf7c217
SHA1 (patch-src_CMakeLists.txt) = 05636fb3c3f836fb8287b16147f5e99a745fb265
SHA1 (patch-src_fdmdv2__main.cpp) = b002f17ecbe8f3091a10bd6854b0400ce50d3105
+SHA1 (patch-src_hamlib.cpp) = fb70eea89bee4df588159018d7ddf2462eff988d
diff -r 3001d2074775 -r 94b85562e6c5 ham/freedv/patches/patch-src_hamlib.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ham/freedv/patches/patch-src_hamlib.cpp Tue Dec 14 23:56:56 2021 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_hamlib.cpp,v 1.1 2021/12/14 23:56:56 gdt Exp $
+
+Fix semi-obvious use of wrong constant. Perhaps hamlib has prefixed the
+constant to avoid collisions, since this freedv release. Not reported
+upstream because the package is not up to date.
+
+--- src/hamlib.cpp.orig 2020-07-18 23:16:05.000000000 +0000
++++ src/hamlib.cpp
+@@ -114,7 +114,7 @@ bool Hamlib::connect(unsigned int rig_in
+
+ /* TODO we may also need civaddr for Icom */
+
+- strncpy(m_rig->state.rigport.pathname, serial_port, FILPATHLEN - 1);
++ strncpy(m_rig->state.rigport.pathname, serial_port, HAMLIB_FILPATHLEN - 1);
+ if (serial_rate) {
+ fprintf(stderr, "hamlib: setting serial rate: %d\n", serial_rate);
+ m_rig->state.rigport.parm.serial.rate = serial_rate;
Home |
Main Index |
Thread Index |
Old Index