Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916192 - media-libs/libva -- libva-glx.so.2 now unavailable on Gentoo.
Summary: media-libs/libva -- libva-glx.so.2 now unavailable on Gentoo.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: VA-API Project
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-10-23 20:09 UTC by lperkins
Modified: 2025-04-11 01:38 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lperkins 2023-10-23 20:09:53 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-09 13:55:26 UTC
(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"
Comment 2 Larry the Git Cow gentoo-dev 2025-04-11 01:38:31 UTC
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(-)