From 41649a7fc71d6abd6a6eca5b0f99257dd247c7f4 Mon Sep 17 00:00:00 2001 From: Mikle Kolyada Date: Fri, 25 Oct 2019 19:22:28 +0300 Subject: media-video/mpv: patch egl dep requirement Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Mikle Kolyada --- media-video/mpv/files/mpv-0.29.1-egl-bound.patch | 27 ++++++++++++++++++++++++ media-video/mpv/mpv-0.29.1-r1.ebuild | 1 + 2 files changed, 28 insertions(+) create mode 100644 media-video/mpv/files/mpv-0.29.1-egl-bound.patch (limited to 'media-video') diff --git a/media-video/mpv/files/mpv-0.29.1-egl-bound.patch b/media-video/mpv/files/mpv-0.29.1-egl-bound.patch new file mode 100644 index 000000000000..5a9be073fbfa --- /dev/null +++ b/media-video/mpv/files/mpv-0.29.1-egl-bound.patch @@ -0,0 +1,27 @@ +From f726b368da87024a0cfe82627e0730ffe4578716 Mon Sep 17 00:00:00 2001 +From: Marvin Schmidt +Date: Wed, 18 Sep 2019 17:07:29 +0200 +Subject: [PATCH] build: lower version requirement for EGL + +`egl.pc` can be provided either by mesa or libglvnd. The latter doesn't +follow the same version scheme as mesa but instead uses the API version +that the library exposes, which is 1.5 for EGL[1] + +[1] https://github.com/NVIDIA/libglvnd/commit/0dfaea2bcb7cdcc785f95e244223bd004a2d7fba#diff-b58a140c00ea99fb9a708e15afaade62R8 +--- + wscript | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/wscript b/wscript +index 3569dbf060..97a4d9196b 100644 +--- a/wscript ++++ b/wscript +@@ -636,7 +636,7 @@ video_output_features = [ + 'deps': 'wayland', + 'groups': [ 'gl' ], + 'func': check_pkg_config('wayland-egl', '>= 9.0.0', +- 'egl', '>= 9.0.0') ++ 'egl', '>= 1.5') + } , { + 'name': '--gl-win32', + 'desc': 'OpenGL Win32 Backend', diff --git a/media-video/mpv/mpv-0.29.1-r1.ebuild b/media-video/mpv/mpv-0.29.1-r1.ebuild index e5ba10d835d3..0022e823df76 100644 --- a/media-video/mpv/mpv-0.29.1-r1.ebuild +++ b/media-video/mpv/mpv-0.29.1-r1.ebuild @@ -138,6 +138,7 @@ RDEPEND="${COMMON_DEPEND} PATCHES=( "${FILESDIR}/${PN}-0.29.0-make-ffmpeg-version-check-non-fatal.patch" + "${FILESDIR}/${PN}-0.29.1-egl-bound.patch" ) src_prepare() { -- cgit v1.2.3-65-gdbad