commit: e71956edb8c90d8896ac1b77e977d95ed70dea01
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 08:49:39 2016 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 08:49:39 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e71956ed
media-video/mpv: fix build failure against glibc-2.23
Added missing <math.h> header for pow() function.
Package-Manager: portage-2.2.28
media-video/mpv/files/mpv-0.17.0-glibc-2.23.patch | 14 ++++++++++++++
media-video/mpv/mpv-0.17.0.ebuild | 3 ++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/media-video/mpv/files/mpv-0.17.0-glibc-2.23.patch
b/media-video/mpv/files/mpv-0.17.0-glibc-2.23.patch
new file mode 100644
index 0000000..ecd02aa
--- /dev/null
+++ b/media-video/mpv/files/mpv-0.17.0-glibc-2.23.patch
@@ -0,0 +1,14 @@
+Fixes build failure on glibc-2.23
+
+../video/out/opengl/lcms.c: In function 'get_vid_profile':
+../video/out/opengl/lcms.c:235:27: error: implicit declaration of function
'pow' [-Werror=implicit-function-declaration]
+ double binv = pow(src_black[i], 1.0/gamma);
+ ^
+diff --git a/video/out/opengl/lcms.c b/video/out/opengl/lcms.c
+index 7db8da6..3eb3d53 100644
+--- a/video/out/opengl/lcms.c
++++ b/video/out/opengl/lcms.c
+@@ -17,2 +17,3 @@
+
++#include <math.h> /* pow() */
+ #include <string.h>
diff --git a/media-video/mpv/mpv-0.17.0.ebuild
b/media-video/mpv/mpv-0.17.0.ebuild
index 4b22f41..7562eb5 100644
--- a/media-video/mpv/mpv-0.17.0.ebuild
+++ b/media-video/mpv/mpv-0.17.0.ebuild
@@ -126,7 +126,8 @@ RDEPEND="${COMMON_DEPEND}
selinux? ( sec-policy/selinux-mplayer )
"
-PATCHES=( "${FILESDIR}/${P}-fix-seeking-without-first-index-entry.patch" )
+PATCHES=( "${FILESDIR}/${P}-fix-seeking-without-first-index-entry.patch"
+ "${FILESDIR}/${P}-glibc-2.23.patch")
pkg_pretend() {
if [[ ${MERGE_TYPE} != "binary" ]] && ! tc-has-tls && use vaapi && use
egl; then