media-video/mpv: patch egl dep requirement
authorMikle Kolyada <zlogene@gentoo.org>
Fri, 25 Oct 2019 16:22:28 +0000 (19:22 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Fri, 25 Oct 2019 16:22:28 +0000 (19:22 +0300)
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
media-video/mpv/files/mpv-0.29.1-egl-bound.patch [new file with mode: 0644]
media-video/mpv/mpv-0.29.1-r1.ebuild

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 (file)
index 0000000..5a9be07
--- /dev/null
@@ -0,0 +1,27 @@
+From f726b368da87024a0cfe82627e0730ffe4578716 Mon Sep 17 00:00:00 2001
+From: Marvin Schmidt <marv@exherbo.org>
+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',
index e5ba10d835d332453bd2d4f740794036e3febcfb..0022e823df762435851243466de5286c3b5e0cda 100644 (file)
@@ -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() {