Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 673376 - x11-libs/libva-vdpau-driver-0.7.4_p7 version bump (add Debian patches)
Summary: x11-libs/libva-vdpau-driver-0.7.4_p7 version bump (add Debian patches)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL: https://bugs.debian.org/cgi-bin/bugre...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-18 05:09 UTC by John5788
Modified: 2019-06-13 19:59 UTC (History)
2 users (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 John5788 2018-12-18 05:09:17 UTC
I am chasing down a bug with VAAPI and VDPAU and found the linked bug post on Debian's bug tracker. I am seeing exactly what the original bug poster reported and the solution was an update to libva-vdpau-driver to 0.7.4-7 from an older version.

Can we get a version bump on libva-vdpau-driver to the latest?

Reproducible: Always

Steps to Reproduce:
1. Install nvidia-drivers
2. Unmask and install x11-libs/libva-2.3.0
3. run `vainfo`
Actual Results:  
Errors out saying the driver doesn't have a function

$ vainfo
libva info: VA-API version 1.3.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/nvidia_drv_video.so
libva error: /usr/lib64/va/drivers/nvidia_drv_video.so has no function __vaDriverInit_1_0
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Expected Results:  
Information about video acceleration capabilities of nvidia driver via VDPAU like in the older versions of libva:

$ vainfo 
libva info: VA-API version 0.39.4 
libva info: va_getDriverName() returns 0 
libva info: User requested driver 'vdpau' 
libva info: Trying to open /usr/lib64/va/drivers/vdpau_drv_video.so 
libva info: Found init function __vaDriverInit_0_39 
libva info: va_openDriver() returns 0 
vainfo: VA-API version: 0.39 (libva 1.7.3) 
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4 
vainfo: Supported profile and entrypoints 
      VAProfileMPEG2Simple            :   VAEntrypointVLD 
      VAProfileMPEG2Main              :   VAEntrypointVLD 
      VAProfileMPEG4Simple            :   VAEntrypointVLD 
      VAProfileMPEG4AdvancedSimple    :   VAEntrypointVLD 
      VAProfileH264Baseline           :   VAEntrypointVLD 
      VAProfileH264Main               :   VAEntrypointVLD 
      VAProfileH264High               :   VAEntrypointVLD 
      VAProfileVC1Simple              :   VAEntrypointVLD 
      VAProfileVC1Main                :   VAEntrypointVLD 
      VAProfileVC1Advanced            :   VAEntrypointVLD
Comment 1 Matt Turner gentoo-dev 2019-06-13 19:39:40 UTC
We have three of Debian's four patches already. The Debian bug report's solution was rebuilding vdpau-video against libva2. We could add a slot dependency, but I'm not sure it's worth the trouble.

Just try rebuilding this package after libva-2.
Comment 2 Larry the Git Cow gentoo-dev 2019-06-13 19:59:46 UTC
The bug has been closed via the following commit(s):

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

commit 0fe323bf48050358c9e2a7be98421c108978bf12
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2019-06-13 19:42:00 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2019-06-13 19:59:23 +0000

    x11-libs/libva-vdpau-driver: Port to EAPI=7
    
    And fix s/DEPEND/RDEPEND/ typo (bug 687780), add missing libva slot
    dep (bug 673376), and add a patch from Debian while we're here.
    
    Closes: https://bugs.gentoo.org/673376
    Closes: https://bugs.gentoo.org/687780
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 .../libva-vdpau-driver-0.7.4-libvdpau-0.8.patch    |  4 +-
 .../libva-vdpau-driver-0.7.4-sigfpe-crash.patch    | 21 ++++++++++
 .../libva-vdpau-driver-0.7.4-r5.ebuild             | 47 ++++++++++++++++++++++
 3 files changed, 70 insertions(+), 2 deletions(-)