commit: 824ce0e87ee4eff6cb4ebfb2a45e3fcaf784b9cd Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Jun 10 14:22:42 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Jun 10 14:23:26 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824ce0e8
media-libs/gst-plugins-bad: fix va Thanks to kostadin for reporting. Add in a bunch of stashed changes (like commenting out RESTRICT="test" again for now as I need to recheck that). Bug: https://bugs.gentoo.org/907479 Fixes: d8fdc47378f4d53b5c1ebcc0f821d5b9f1e4753e Signed-off-by: Sam James <sam <AT> gentoo.org> ....3-r2.ebuild => gst-plugins-bad-1.22.3-r3.ebuild} | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/media-libs/gst-plugins-bad/gst-plugins-bad-1.22.3-r2.ebuild b/media-libs/gst-plugins-bad/gst-plugins-bad-1.22.3-r3.ebuild similarity index 85% rename from media-libs/gst-plugins-bad/gst-plugins-bad-1.22.3-r2.ebuild rename to media-libs/gst-plugins-bad/gst-plugins-bad-1.22.3-r3.ebuild index b4aa92c77119..b3bfad99e2f5 100644 --- a/media-libs/gst-plugins-bad/gst-plugins-bad-1.22.3-r2.ebuild +++ b/media-libs/gst-plugins-bad/gst-plugins-bad-1.22.3-r3.ebuild @@ -18,6 +18,7 @@ IUSE="X bzip2 +egl gles2 gtk +introspection +opengl +orc vaapi vnc wayland qsv" # X11 is automagic for now, upstream #709530 - only used by librfb USE=vnc plugin # We mirror opengl/gles2 from -base to ensure no automagic openglmixers plugin (with "opengl?" it'd still get built with USE=-opengl here) # FIXME gtk? ( >=media-plugins/gst-plugins-gtk-${PV}:${SLOT}[${MULTILIB_USEDEP}] ) +# Baseline requirement for libva is 1.6, but 1.10 gets more features RDEPEND=" !media-plugins/gst-plugins-va !media-plugins/gst-transcoder @@ -37,6 +38,8 @@ RDEPEND=" orc? ( >=dev-lang/orc-0.4.33[${MULTILIB_USEDEP}] ) qsv? ( media-libs/oneVPL[wayland?,X?,${MULTILIB_USEDEP}] ) + + vaapi? ( >=media-libs/libva-1.10[${MULTILIB_USEDEP}] ) " DEPEND="${RDEPEND}" @@ -49,7 +52,7 @@ BDEPEND=" DOCS=( AUTHORS ChangeLog NEWS README.md RELEASE ) # FIXME: gstharness.c:889:gst_harness_new_with_padnames: assertion failed: (element != NULL) -#RESTRICT="test" +RESTRICT="test" PATCHES=( "${FILESDIR}"/0001-meson-Fix-libdrm-and-vaapi-configure-checks.patch @@ -68,7 +71,6 @@ multilib_src_configure() { -Dshm=enabled -Dipcpipeline=enabled -Dhls=disabled - $(meson_feature vaapi va) $(meson_feature vnc librfb) $(meson_feature wayland) ) @@ -82,13 +84,15 @@ multilib_src_configure() { emesonargs+=( -Dmsdk=disabled ) fi - if use opengl || use gles2; then - myconf+=( -Dgl=enabled ) - else - myconf+=( -Dgl=disabled ) - fi + # XXX: See comment above IUSE wrt egl; this was actually typo'd with + # myconf for ages and nothing exploded. + #if use opengl || use gles2; then + # emesonargs+=( -Dgl=enabled ) + #else + # emesonargs+=( -Dgl=disabled ) + #fi - gstreamer_multilib_src_configure + gstreamer_multilib_src_configure "$(meson_feature vaapi va)" } multilib_src_test() {