commit:     d4e1967147fd9a9a9e1525179ea15693fce522ca
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Nov  8 16:17:34 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Nov  8 16:45:11 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4e19671

media-plugins/caps-plugins: Fix build with glibc-2.27

Closes: https://bugs.gentoo.org/647874
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../caps-plugins/caps-plugins-0.9.24.ebuild        |  7 ++--
 .../files/caps-plugins-0.9.24-glibc-2.27.patch     | 42 ++++++++++++++++++++++
 2 files changed, 47 insertions(+), 2 deletions(-)

diff --git a/media-plugins/caps-plugins/caps-plugins-0.9.24.ebuild 
b/media-plugins/caps-plugins/caps-plugins-0.9.24.ebuild
index 607d8447c91..f427ec2503b 100644
--- a/media-plugins/caps-plugins/caps-plugins-0.9.24.ebuild
+++ b/media-plugins/caps-plugins/caps-plugins-0.9.24.ebuild
@@ -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
index 00000000000..7c688d7f3bf
--- /dev/null
+++ b/media-plugins/caps-plugins/files/caps-plugins-0.9.24-glibc-2.27.patch
@@ -0,0 +1,42 @@
+From: Aurelien Jarno <[email protected]>
+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]);
+ 

Reply via email to