pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/libkeyfinder libkeyfinder: avoid ambiguous pow(3)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5114b9fc3ceb
branches:  trunk
changeset: 377935:5114b9fc3ceb
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Apr 25 13:49:49 2022 +0000

description:
libkeyfinder: avoid ambiguous pow(3)

diffstat:

 audio/libkeyfinder/distinfo                              |   3 ++-
 audio/libkeyfinder/patches/patch-src_windowfunctions.cpp |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 41bf748666f8 -r 5114b9fc3ceb audio/libkeyfinder/distinfo
--- a/audio/libkeyfinder/distinfo       Mon Apr 25 13:36:38 2022 +0000
+++ b/audio/libkeyfinder/distinfo       Mon Apr 25 13:49:49 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1 2021/11/20 18:09:45 nia Exp $
+$NetBSD: distinfo,v 1.2 2022/04/25 13:49:49 tnn Exp $
 
 BLAKE2s (libkeyfinder-2.2.5.tar.gz) = 37abe2a1057e320df231cbfcceb0bd39fe8b58f12e1ce5a21cd962e3df5dc611
 SHA512 (libkeyfinder-2.2.5.tar.gz) = 54463d1f1111dc474d3e43723fddd5579ea1a3842f99f43e50e85622a1d6ee6fe42b22c300ce5ba5807cf6b2d7067af741773af95974a42c5d863c53165893eb
 Size (libkeyfinder-2.2.5.tar.gz) = 79220 bytes
+SHA1 (patch-src_windowfunctions.cpp) = f3eb1a4bd739fa41e56aecddde1ce85a745df5a6
diff -r 41bf748666f8 -r 5114b9fc3ceb audio/libkeyfinder/patches/patch-src_windowfunctions.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/libkeyfinder/patches/patch-src_windowfunctions.cpp  Mon Apr 25 13:49:49 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_windowfunctions.cpp,v 1.1 2022/04/25 13:49:49 tnn Exp $
+
+Explicitly use std::pow, avoids ambiguous reference on SunOS.
+
+--- src/windowfunctions.cpp.orig       2021-07-17 22:04:12.000000000 +0000
++++ src/windowfunctions.cpp
+@@ -21,6 +21,8 @@
+ 
+ #include "windowfunctions.h"
+ 
++using std::pow;
++
+ namespace KeyFinder {
+ 
+   double WindowFunction::window(temporal_window_t windowType, int n, int N) const {



Home | Main Index | Thread Index | Old Index