media-plugins/caps-plugins: Fix build with glibc-2.27
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 8 Nov 2018 16:17:34 +0000 (17:17 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 8 Nov 2018 16:45:11 +0000 (17:45 +0100)
Closes: https://bugs.gentoo.org/647874
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-plugins/caps-plugins/caps-plugins-0.9.24.ebuild
media-plugins/caps-plugins/files/caps-plugins-0.9.24-glibc-2.27.patch [new file with mode: 0644]

index 607d8447c910fc880814162fd210ca82aae419d7..f427ec2503bbcca93215138c7152a4f63b6405d5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,7 +20,10 @@ RDEPEND=""
 
 S="${WORKDIR}/${MY_P}"
 
-PATCHES=( "${FILESDIR}/${PN}-0.9.15-fix-c++14.patch" )
+PATCHES=(
+       "${FILESDIR}/${PN}-0.9.15-fix-c++14.patch"
+       "${FILESDIR}/${P}-glibc-2.27.patch" # bug 647874
+)
 
 src_prepare() {
        default
diff --git a/media-plugins/caps-plugins/files/caps-plugins-0.9.24-glibc-2.27.patch b/media-plugins/caps-plugins/files/caps-plugins-0.9.24-glibc-2.27.patch
new file mode 100644 (file)
index 0000000..7c688d7
--- /dev/null
@@ -0,0 +1,42 @@
+From: Aurelien Jarno <aurel32@debian.org>
+Date: Tue, 20 Mar 2018 18:29:34 -0300
+Subject: Use standard exp10f instead of pow10f
+
+Starting with glibc 2.27, the latter is no longer supported
+
+Bug-Debian: https://bugs.debian.org/890633
+---
+ dsp/v4f_IIR2.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/dsp/v4f_IIR2.h b/dsp/v4f_IIR2.h
+index a68ecf5..9682f7b 100644
+--- a/dsp/v4f_IIR2.h
++++ b/dsp/v4f_IIR2.h
+@@ -33,7 +33,7 @@
+ namespace DSP {
+ #ifdef __APPLE__
+-inline float pow10f(float f) {return pow(10,f);}
++inline float exp10f(float f) {return pow(10,f);}
+ #endif
+ class RBJv4
+@@ -142,7 +142,7 @@ class IIR2v4
+                               /* A = pow (10, gain / 40) */
+                               v4f_t A = (v4f_t) {.025,.025,.025,.025};
+                               A *= gain;
+-                              A = v4f_map<pow10f> (A);
++                              A = v4f_map<exp10f> (A);
+                               RBJv4 p (f, Q);
+@@ -429,7 +429,7 @@ class IIR2v4Bank
+                                       /* A = pow (10, gain / 40) */
+                                       v4f_t A = (v4f_t) {.025,.025,.025,.025};
+                                       A *= gain[i];
+-                                      A = v4f_map<pow10f> (A);
++                                      A = v4f_map<exp10f> (A);
+                                       RBJv4 p (f[i], Q[i]);