Skip to content

Commit

Permalink
media-video/mpv: replace math.h patch with upstream equivalent in 0.17.0
Browse files Browse the repository at this point in the history
It's the very same patch, but with an upstream commit reference.

Closes: gentoo#1341
Package-Manager: portage-2.2.28

Signed-off-by: Patrice Clement <[email protected]>
  • Loading branch information
Coacher authored and monsieurp committed Apr 25, 2016
1 parent 2ade38c commit 0a9e410
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
21 changes: 21 additions & 0 deletions media-video/mpv/files/mpv-0.17.0-add-missing-math-include.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
commit b735c0e2077cb37df6764350472cbc68a9142d91
Author: wm4 <wm4@nowhere>
Date: Fri Apr 15 13:58:41 2016 +0200

lcms: include math.h

Fixes #3053.
---

diff --git a/video/out/opengl/lcms.c b/video/out/opengl/lcms.c
index 7db8da6..a2030d3 100644
--- a/video/out/opengl/lcms.c
+++ b/video/out/opengl/lcms.c
@@ -16,6 +16,7 @@
*/

#include <string.h>
+#include <math.h>

#include "mpv_talloc.h"

14 changes: 0 additions & 14 deletions media-video/mpv/files/mpv-0.17.0-glibc-2.23.patch

This file was deleted.

6 changes: 4 additions & 2 deletions media-video/mpv/mpv-0.17.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ RDEPEND="${COMMON_DEPEND}
selinux? ( sec-policy/selinux-mplayer )
"

PATCHES=( "${FILESDIR}/${P}-fix-seeking-without-first-index-entry.patch"
"${FILESDIR}/${P}-glibc-2.23.patch")
PATCHES=(
"${FILESDIR}/${P}-fix-seeking-without-first-index-entry.patch"
"${FILESDIR}/${P}-add-missing-math-include.patch"
)

pkg_pretend() {
if [[ ${MERGE_TYPE} != "binary" ]] && ! tc-has-tls && use vaapi && use egl; then
Expand Down

0 comments on commit 0a9e410

Please sign in to comment.