https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9eaf08653a2ada19b94c9807a6b85008a125b3c This commit hardcoded the glx backend for libva to off to eliminate an annoying circular dependency. Unfortunately, even though Gentoo trivially uses a different backend to eliminate the need for this library, most other distros still have it, and so running binaries compiled on other distros can be problematic. In my case specifically a video program that embeds a copy of ffmpeg. Is it possible to get a USE flag for this? I'd rather not maintain my own fork of the ebuild for something so trivially simple, and there are enough bug reports on other distros that turned out to be this library missing for running things like Steam games that having it locked to off may cause more trouble than it solves in the long-run. Reproducible: Always Steps to Reproduce: 1. Install media-libs/libva Actual Results: libva-glx.so.2 is built but not installed. Expected Results: libva-glx.so.2 should be installable if desired.
(In reply to lperkins from comment #0) > Is it possible to get a USE flag for this? I'd rather not maintain my own > fork of the ebuild for something so trivially simple MYMESONARGS="-Dwith_glx=yes"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32f681c4c3fa986e5aacebf53621e277215c8854 commit 32f681c4c3fa986e5aacebf53621e277215c8854 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2025-04-09 14:13:27 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2025-04-11 01:38:27 +0000 media-libs/libva: add USE=glx Unbreaks pre-compiled binaries that were linked against that library. This was originally disabled in e9eaf08653a2ada19b94c9807a6b85008a125b3c to break a libva -> virtual/opengl -> mesa -> libva circular dependency. With 7c3a6d4e46909e5fe81284e29265d70fcd18f293 and 6208af8875d0e69b7b8bb9f2b7497f0cc858c438 virtual/opengl depends on libglvnd and the circular dependency can no longer occur. We use glx as a separate USE flag as this is only needed for prebuilt binaries we do not control. Closes: https://bugs.gentoo.org/916192 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/41512 Signed-off-by: Matt Turner <mattst88@gentoo.org> media-libs/libva/libva-2.22.0-r1.ebuild | 73 +++++++++++++++++++++++++++++++++ media-libs/libva/libva-9999.ebuild | 12 ++++-- media-libs/libva/metadata.xml | 3 ++ 3 files changed, 85 insertions(+), 3 deletions(-)