[packages/vpb-driver] - fix building with gcc 8+

baggins baggins at pld-linux.org
Sun Dec 1 17:15:25 CET 2019


commit d201079573e889ff70232ef4779d3cdb667c58e4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Dec 1 17:14:51 2019 +0100

    - fix building with gcc 8+

 gcc8.patch      | 11 +++++++++++
 vpb-driver.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/vpb-driver.spec b/vpb-driver.spec
index a891a06..cd40bc0 100644
--- a/vpb-driver.spec
+++ b/vpb-driver.spec
@@ -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
diff --git a/gcc8.patch b/gcc8.patch
new file mode 100644
index 0000000..ad0048c
--- /dev/null
+++ b/gcc8.patch
@@ -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 )
+ { //{{{
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vpb-driver.git/commitdiff/bb5e950e6616083f26ad3fb6e39d60eba0ca99c1



More information about the pld-cvs-commit mailing list