commit:     e6cc0a2583c4a5172e47df809363389512937463
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu May  4 15:46:22 2023 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu May  4 15:48:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6cc0a25

media-video/qmplay2: fix dependency on libva-glx

This is used as one of the fallback backends. Already built
installations continue to work (one of the reasons we missed this
bug for ~3 month since an action), so no need to revbump to rebuild.

Closes: https://bugs.gentoo.org/905453
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../qmplay2/files/qmplay2-23.02.05-fix-libva-glx.patch      | 13 +++++++++++++
 media-video/qmplay2/qmplay2-23.02.05.ebuild                 |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/media-video/qmplay2/files/qmplay2-23.02.05-fix-libva-glx.patch 
b/media-video/qmplay2/files/qmplay2-23.02.05-fix-libva-glx.patch
new file mode 100644
index 000000000000..e47aacf22a5f
--- /dev/null
+++ b/media-video/qmplay2/files/qmplay2-23.02.05-fix-libva-glx.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/905453
+
+--- a/src/modules/FFmpeg/CMakeLists.txt
++++ b/src/modules/FFmpeg/CMakeLists.txt
+@@ -67,7 +67,7 @@ if(USE_FFMPEG_VAAPI OR USE_FFMPEG_VDPAU OR USE_FFMPEG_DXVA2 
OR USE_FFMPEG_D3D11V
+             list(APPEND FFmpeg_HDR VAAPIVulkan.hpp)
+             list(APPEND FFmpeg_SRC VAAPIVulkan.cpp)
+         endif()
+-        pkg_check_modules(LBVA REQUIRED libva libva-glx libva-drm egl)
++        pkg_check_modules(LBVA REQUIRED libva libva-drm egl)
+         include_directories(${LBVA_INCLUDE_DIRS})
+         link_directories(${LBVA_LIBRARY_DIRS})
+         list(APPEND FFmpeg_LIBS ${LBVA_LIBRARIES})

diff --git a/media-video/qmplay2/qmplay2-23.02.05.ebuild 
b/media-video/qmplay2/qmplay2-23.02.05.ebuild
index 83acd1b1df36..04d454c891d3 100644
--- a/media-video/qmplay2/qmplay2-23.02.05.ebuild
+++ b/media-video/qmplay2/qmplay2-23.02.05.ebuild
@@ -66,6 +66,10 @@ RDEPEND="
 DEPEND="${RDEPEND}"
 BDEPEND="dev-qt/linguist-tools:5"
 
+PATCHES=(
+       "${FILESDIR}/${PN}-23.02.05-fix-libva-glx.patch"
+)
+
 src_prepare() {
        # disable compress man pages
        sed -r \

Reply via email to