]> git.pld-linux.org Git - packages/vpb-driver.git/commitdiff
- fix building with gcc 8+
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 1 Dec 2019 16:14:51 +0000 (17:14 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 1 Dec 2019 16:14:51 +0000 (17:14 +0100)
gcc8.patch [new file with mode: 0644]
vpb-driver.spec

diff --git a/gcc8.patch b/gcc8.patch
new file mode 100644 (file)
index 0000000..ad0048c
--- /dev/null
@@ -0,0 +1,11 @@
+--- vpb-driver-4.2.58/src/utils/dtmfcheck.cpp.orig     2014-09-28 20:02:28.000000000 +0200
++++ vpb-driver-4.2.58/src/utils/dtmfcheck.cpp  2019-12-01 17:11:16.935351767 +0100
+@@ -49,7 +49,7 @@
+       printf("  --block size  Granularity of analysis.  Default is 16000 samples (2sec)\n");
+ } //}}}
+-static double dBFactor( double db ) { return pow10( db / 20.0 ); }
++static double dBFactor( double db ) { return pow( 10, db / 20.0 ); }
+ static inline void LinearGain( double gain, int16_t *buf, size_t len )
+ { //{{{
index a891a0618756c74444c4b14b3aa3337e0358b6d2..cd40bc02a3de2afcc0c559e0fa90b8091078ad24 100644 (file)
@@ -36,6 +36,7 @@ Patch0:               %{pname}-make.patch
 Patch1:                userspace-only.patch
 Patch2:                linux-4.12.patch
 Patch3:                kernel-4.14.patch
+Patch4:                gcc8.patch
 URL:           http://www.voicetronix.com.au/downloads.htm#linux
 BuildRequires: rpmbuild(macros) >= 1.701
 %{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -147,6 +148,7 @@ p=`pwd`\
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %if %{without kernel}
 %{__sed} -i -e 's,subdirs += $(srcdir)/vtcore $(srcdir)/vpb,,' src/Makefile.in
This page took 0.203003 seconds and 4 git commands to generate.