Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947518 - media-plugins/gst-plugins-vaapi-1.24.10: missing dep on libva-wayland
Summary: media-plugins/gst-plugins-vaapi-1.24.10: missing dep on libva-wayland
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-01-05 06:55 UTC by Patrick Lauer
Modified: 2025-01-06 17:56 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
meson-log.txt (meson-log.txt,38.89 KB, text/plain)
2025-01-05 19:59 UTC, Nikita Kostovsky
Details
build.log (build.log,5.96 KB, text/x-log)
2025-01-05 20:01 UTC, Nikita Kostovsky
Details
build.log (build.log,6.88 KB, text/plain)
2025-01-05 20:03 UTC, Albert W. Hopkins
Details
meson-log.txt (meson-log.txt,40.75 KB, text/plain)
2025-01-05 20:04 UTC, Albert W. Hopkins
Details
Patch to fix meson dependencies (gst-plugins-vaapi-1.24.10-make-deps-optional.patch,858 bytes, patch)
2025-01-06 09:07 UTC, Kim Nilsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2025-01-05 06:55:27 UTC
Run-time dependency libva found: YES 1.22.0
Run-time dependency libva-drm found: YES 1.22.0
Found CMake: /usr/bin/cmake (3.31.3)
Run-time dependency libva-wayland found: NO (tried pkgconfig and cmake)

../gstreamer-vaapi-1.24.10/meson.build:84:20: ERROR: Dependency "libva-wayland" not found, tried pkgconfig and cmake

A full log can be found at /var/tmp/portage/media-plugins/gst-plugins-vaapi-1.24.10/work/gstreamer-vaapi-1.24.10-abi_x86_32.x86/meson-logs/meson-log.txt
 * ERROR: media-plugins/gst-plugins-vaapi-1.24.10::gentoo failed (configure phase):
 *   configure failed

Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr, gcc-14, glibc-2.40-r7, 6.12.7-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.12.7-gentoo-x86_64-x86_64-AMD_Ryzen_9_5900X_12-Core_Processor-with-glibc2.40
KiB Mem:    65778064 total,   2968432 free
KiB Swap:   20971516 total,  20971260 free
Head commit of repository gentoo: 2af3b9cbea031f19d22a5f29b9ca6f4fc6833af6

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake:           3.31.3::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.1::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.11.11_p1::gentoo, 3.12.8_p1::gentoo, 3.13.1_p1::gentoo
dev-lang/rust:             1.83.0-r1::gentoo
llvm-core/clang:           18.1.8-r6::gentoo, 19.1.6::gentoo
llvm-core/lld:             18.1.8::gentoo, 19.1.6::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.6::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.56::gentoo
sys-apps/sandbox:          2.42::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241220::gentoo, 14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r7::gentoo
Repositories:

gentoo
    location: /home/me/code/gentoo
    sync-type: git
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3"
DISTDIR="/tablespace/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native -flto=8 -fuse-linker-plugin -ggdb3"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo"
INSTALL_MASK="/etc/X11/xinit/xinitrc.d/80-dbus /usr/bin/dbus-launch"
LANG="C.UTF8"
LDFLAGS="-O2 -flto=8"
LEX="flex"
MAKEOPTS="-j24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="X acl alsa amd64 apng bpf bzip2 cet crypt cups dri ffmpeg gdbm glamor gmp gpo iconv icu ipv6 lapack libtirpc lto minizip multilib ncurses nls opencl opengl openmp pam pcre pgo readline seccomp split-usr sqlite ssl system-llvm test-rust truetype udev unicode vaapi vdpau vulkan xattr xvmc zlib" ABI_X86="64 32" ADA_TARGET="gcc_13" AMDGPU_TARGETS="gfx1102" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby27 ruby30" VIDEO_CARDS="radeon r600 radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Marcin Deranek 2025-01-05 10:25:05 UTC
I would say wayland USE flag has not effect here.
Comment 2 publiccontact2020 2025-01-05 16:21:34 UTC
Attempted same with two different compilers, fail to build and install.

Run-time dependency libva-wayland found: NO (tried pkgconfig and cmake)

../gstreamer-vaapi-1.24.10/meson.build:84:20: ERROR: Dependency "libva-wayland" not found, tried pkgconfig and cmake

 [31;01m*[0m ERROR: media-plugins/gst-plugins-vaapi-1.24.10::gentoo failed (configure phase):
 [31;01m*[0m   configure failed

 [31;01m*[0m   environment, line 2317:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       [[ ${rv} -eq 0 ]] || die -n "configure failed";

Note: attempting to emerge gst-plugins-vaapi pulls in gst-plugins-meta.  gst-plugins-vaapi fails and subsequently outputs:

* The following 2 packages have failed to build, install, or execute
 * postinst:
 * 
 *  (media-plugins/gst-plugins-vaapi-1.24.10:1.0/1.0::gentoo, ebuild scheduled for merge), Log file:
 *   '/usr/portage/logs/media-plugins:gst-plugins-vaapi-1.24.10:20250105-013710.log'
 *  (media-plugins/gst-plugins-meta-1.24.10:1.0/1.0::gentoo, ebuild scheduled for merge)

gst-plugins-vaapi failed to build and install with following compilers:

[1] x86_64-pc-linux-gnu-13
[2] x86_64-pc-linux-gnu-14
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-05 19:47:55 UTC
A build.log and /var/tmp/portage/media-plugins/gst-plugins-vaapi-1.24.10/work/gstreamer-vaapi-1.24.10-abi_x86_32.x86/meson-logs/meson-log.txt would be appreciated.
Comment 4 Nikita Kostovsky 2025-01-05 19:59:56 UTC
Created attachment 915951 [details]
meson-log.txt

attaching meson-log.txt from x86_64 machine:

/var/tmp/portage/media-plugins/gst-plugins-vaapi-1.24.10/work/gstreamer-vaapi-1.24.10-abi_x86_64.amd64/meson-logs/meson-log.txt
Comment 5 Nikita Kostovsky 2025-01-05 20:01:53 UTC
Created attachment 915952 [details]
build.log
Comment 6 Albert W. Hopkins 2025-01-05 20:03:24 UTC
Created attachment 915953 [details]
build.log

I'm not the reporter but here's my build.log
Comment 7 Albert W. Hopkins 2025-01-05 20:04:07 UTC
Created attachment 915954 [details]
meson-log.txt
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-05 20:05:35 UTC
Thanks both, I'm going to do a pass over gstreamer bugs this evening (as in: next few hours).
Comment 9 Gary E. Miller 2025-01-05 21:07:06 UTC
#MeToo
Comment 10 Larry the Git Cow gentoo-dev 2025-01-05 23:53:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5045b39f939774854e7bf1f824ecf02fbbb337e5

commit 5045b39f939774854e7bf1f824ecf02fbbb337e5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-05 23:52:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-05 23:53:23 +0000

    media-plugins/gst-plugins-vaapi: depend on libva[wayland]
    
    Closes: https://bugs.gentoo.org/947518
    Signed-off-by: Sam James <sam@gentoo.org>

 ...ugins-vaapi-1.24.10.ebuild => gst-plugins-vaapi-1.24.10-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 11 Gary E. Miller 2025-01-06 02:03:21 UTC
Thanks Sam!  Happy New Year!
Comment 12 Gary E. Miller 2025-01-06 02:10:16 UTC
Maybe I spoke too soon?  Now if I want gst-plugins-meta I need to enable USE=wayland?

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by media-plugins/gst-plugins-vaapi-1.24.10-r1::gentoo
# required by media-plugins/gst-plugins-meta-1.24.10::gentoo[vaapi]
# required by media-sound/strawberry-1.2.3-r2::gentoo
# required by @selected
# required by @world (argument)
>=media-libs/libva-2.22.0 wayland

That pulls in:

[ebuild  N     ] dev-util/wayland-scanner-1.23.1 
[ebuild  N     ] dev-libs/wayland-1.23.1  USE="-doc -test" ABI_X86="(64) -32 (-x32)" 


Looks like a camel nose to me?
Comment 13 Kim Nilsson 2025-01-06 09:07:22 UTC
Created attachment 915977 [details, diff]
Patch to fix meson dependencies
Comment 14 Kim Nilsson 2025-01-06 09:09:39 UTC
The solution here is probably to tell meson that the x11/drm/wayland dependencies  are required only when their respective options are enabled. See my attachment for a proposed patch.

I've only tested that it builds successfully with -wayland so there may still be dragons at runtime.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-06 09:12:26 UTC
(In reply to Gary E. Miller from comment #12)
> 
> Looks like a camel nose to me?

For now, the dep is right -- I can look at Kim's suggestion later to see if it works out, but got other things to look at first.
Comment 16 Larry the Git Cow gentoo-dev 2025-01-06 09:18:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb790a9243a0085e5590016b36fc6c2701af3b94

commit fb790a9243a0085e5590016b36fc6c2701af3b94
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-06 09:17:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-06 09:17:29 +0000

    media-plugins/gst-plugins-vaapi: backport patch to fix wayland optionality
    
    Closes: https://bugs.gentoo.org/947518
    Signed-off-by: Sam James <sam@gentoo.org>

 ...plugins-vaapi-1.24.10-wayland-optionality.patch | 35 ++++++++++++++++++++++
 ....ebuild => gst-plugins-vaapi-1.24.10-r2.ebuild} |  6 +++-
 2 files changed, 40 insertions(+), 1 deletion(-)
Comment 17 Mart Raudsepp gentoo-dev 2025-01-06 17:44:28 UTC
(In reply to Gary E. Miller from comment #12)
> Maybe I spoke too soon?  Now if I want gst-plugins-meta I need to enable
> USE=wayland?

(In reply to publiccontact2020 from comment #2)
> Note: attempting to emerge gst-plugins-vaapi pulls in gst-plugins-meta. 
> gst-plugins-vaapi fails and subsequently outputs:


Please note that with 1.24 you want gst-plugins-bad[vaapi] instead of gst-plugins-vaapi for VAAPI accelerated decoding for playbin (which is what gst-plugins-meta is for). The meta still needs a revbump to fix this.
gst-plugins-vaapi itself is a last rites candidate soon, it's only used if the elements are created by name by some program or via gst-launch-1.0 on the command line, gst-play-1.0 and playbin/playbin3 using applications do not use gst-plugins-vaapi-1.24 anymore because the elements rank was set to NONE, at the same time as gst-plugins-bad[vaapi] shipped ones got a rank instead of NONE.
Comment 18 Larry the Git Cow gentoo-dev 2025-01-06 17:56:31 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8ca1f409b102583df503599ff3e722d6b6d1135

commit e8ca1f409b102583df503599ff3e722d6b6d1135
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-06 17:49:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-06 17:55:56 +0000

    media-plugins/gst-plugins-meta: switch USE=vaapi to va plugin
    
    media-plugins/gst-plugins-vaapi is on the way out and isn't preferred
    upstream by automatic detection (rank). Swap to the modern va plugin
    which we package as gst-plugins-bad[vaapi].
    
    Also, do EAPI 8 which I should've done earlier.
    
    Bug: https://bugs.gentoo.org/947518
    Signed-off-by: Sam James <sam@gentoo.org>

 ...ugins-meta-1.24.10.ebuild => gst-plugins-meta-1.24.10-r1.ebuild} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)