Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to upgrade libva, a video acceleration API
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Goodtobegrateful
n00b
n00b


Joined: 31 May 2018
Posts: 5

PostPosted: Sat Sep 29, 2018 5:50 pm    Post subject: How to upgrade libva, a video acceleration API Reply with quote

Could you please state the steps for the safest way to upgrade x11-libs/libva from version 1.7.3 to version 2.1.0?

This has been a kind suggestion in order to be able to run the latest in development version of ungoogled-chromium, which is a more private spin of chromium. I am unfamiliar on what might need to be masked and how, etc.

I am using a derivative of Gentoo called Calculate Linux.

Note that my PC has AMD graphics (not AMDGPU nor Intel), and please consider whether I should upgrade to version 1.8.3 first:

Code:
$ uname -a
Linux thishost 4.18.9-calculate #1 SMP PREEMPT Thu Sep 20 14:36:36 UTC 2018 x86_64 AMD A10-4600M APU with Radeon(tm) HD Graphics AuthenticAMD GNU/Linux

$ eix x11-libs/libva
[I] x11-libs/libva
     Available versions:  1.7.3 ~1.8.3 ~2.1.0(0/2) ~2.2.0(0/2) **9999(0/9999) {X +drm egl opengl utils vdpau wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" VIDEO_CARDS="dummy i965 intel nouveau nvidia"}
     Installed versions:  1.7.3(09:32:52 PM 05/13/2018)(X drm opengl vdpau -egl -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" VIDEO_CARDS="i965 intel nouveau nvidia -dummy")
     Homepage:            https://01.org/linuxmedia/vaapi
     Description:         Video Acceleration (VA) API for Linux

[I] x11-libs/libva-intel-driver
     Available versions:  1.7.3 ~1.8.3 ~2.1.0 ~2.2.0 **9999 {X +drm wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  1.7.3(09:43:39 PM 05/13/2018)(X drm -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://github.com/intel/intel-vaapi-driver
     Description:         HW video decode support for Intel integrated graphics

[I] x11-libs/libva-vdpau-driver
     Available versions:  0.7.4-r4 {debug opengl ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
     Installed versions:  0.7.4-r4(09:43:05 PM 05/13/2018)(opengl -debug ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
     Homepage:            https://www.freedesktop.org/wiki/Software/vaapi
     Description:         VDPAU Backend for Video Acceleration (VA) API

Thank you for any assistance!
Back to top
View user's profile Send private message
newcomer
n00b
n00b


Joined: 19 Nov 2017
Posts: 11

PostPosted: Thu Oct 04, 2018 1:59 am    Post subject: Reply with quote

Did you try this?
Quote:
emerge =libva-2.2.0
Back to top
View user's profile Send private message
Goodtobegrateful
n00b
n00b


Joined: 31 May 2018
Posts: 5

PostPosted: Sat Oct 06, 2018 2:46 am    Post subject: Reply with quote

Thanks a lot for your question, @newcomer! It gave me to encouragement to plunge ahead and emerge, but in a stepped fashion to be safe, as may have been written for some linux system somewhere, by upgrading to libva=1.8.3, which was offered by the system (as shown above). It updated quickly.

I next tried to upgrade to the next offered libva=2.1.0, the next offered version, although it could be better in many cases, as I understand, to use '>=' instead of '=' when upgrading in order to prevent future upgrade breakages. That upgrade took c. 2:15hrs. I planned to finish by later upgrading to libva>=2.2.0, but doing that step is not part of my original question.

In case it could help anyone, here is the gist of the steps I took, although there could be quicker and more elegant ways of proceeding (suggestions welcome!):

Code:

$ sudo emerge =libva-1.8.3       # but the next step may have been sufficient instead - I'm not sure
$ sudo emerge =libva-1.8.3 --autounmask-write
$ sudo dispatch-conf                  # entering 'u' when prompted to 'use-new' configuration
$ sudo emerge =libva-1.8.3       # that step was repeated here in order to install the package with the new configuration
$ sudo reboot                  
$ sudo emerge =libva-2.1.0
$ sudo emerge =libva-2.1.0 --autounmask-write
$ sudo dispatch-conf         # entering 'u' when prompted
$ sudo emerge =libva-2.1.0
# That instruction caused ebuilds for 6 packages to be compiled (including libva-intel-driver), which took c. 2:15hrs,
# and gave the following output, in part -
"[...]
Calculating dependencies... done!

The following packages are causing rebuilds:

  (x11-libs/libva-2.1.0:0/2::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (media-plugins/gst-plugins-vaapi-1.14.1:1.0/1.0::gentoo, ebuild scheduled for merge)
    (media-tv/kodi-17.6-r5:0/0::gentoo, ebuild scheduled for merge)
    (media-video/vlc-3.0.3-r1:0/5-9::gentoo, ebuild scheduled for merge)
    (media-libs/mesa-18.1.9:0/0::gentoo, ebuild scheduled for merge)
>>> Verifying ebuild manifests
>>> Emerging binary (1 of 16) dev-util/gperf-3.1::gentoo
>>> Emerging binary (2 of 16) dev-libs/libuv-1.20.0::gentoo
>>> Emerging binary (3 of 16) app-portage/elt-patches-20170815::gentoo
>>> Emerging binary (4 of 16) dev-lang/yasm-1.3.0::gentoo
>>> Installing (1 of 16) dev-util/gperf-3.1::gentoo
>>> Emerging binary (5 of 16) app-crypt/rhash-1.3.6-r1::gentoo
>>> Installing (3 of 16) app-portage/elt-patches-20170815::gentoo
>>> Installing (2 of 16) dev-libs/libuv-1.20.0::gentoo
>>> Installing (5 of 16) app-crypt/rhash-1.3.6-r1::gentoo
>>> Installing (4 of 16) dev-lang/yasm-1.3.0::gentoo
>>> Emerging binary (6 of 16) dev-python/markupsafe-0.23::gentoo
>>> Installing (6 of 16) dev-python/markupsafe-0.23::gentoo
>>> Emerging binary (7 of 16) dev-python/mako-1.0.6::gentoo
>>> Installing (7 of 16) dev-python/mako-1.0.6::gentoo
>>> Emerging binary (8 of 16) dev-util/gtk-doc-am-1.25-r1::gentoo
>>> Emerging binary (9 of 16) dev-libs/crossguid-0_pre20150817::gentoo
>>> Emerging binary (10 of 16) dev-util/cmake-3.9.6::gentoo
>>> Emerging (11 of 16) x11-libs/libva-2.1.0::gentoo
>>> Installing (8 of 16) dev-util/gtk-doc-am-1.25-r1::gentoo
>>> Installing (9 of 16) dev-libs/crossguid-0_pre20150817::gentoo
>>> Installing (10 of 16) dev-util/cmake-3.9.6::gentoo
>>> Installing (11 of 16) x11-libs/libva-2.1.0::gentoo
>>> Emerging (12 of 16) x11-libs/libva-intel-driver-2.2.0::gentoo
>>> Installing (12 of 16) x11-libs/libva-intel-driver-2.2.0::gentoo
>>> Emerging (13 of 16) media-libs/mesa-18.1.9::gentoo
>>> Installing (13 of 16) media-libs/mesa-18.1.9::gentoo
>>> Emerging (14 of 16) media-plugins/gst-plugins-vaapi-1.14.1::gentoo
>>> Emerging (15 of 16) media-tv/kodi-17.6-r5::gentoo
>>> Emerging (16 of 16) media-video/vlc-3.0.3-r1::gentoo
>>> Installing (14 of 16) media-plugins/gst-plugins-vaapi-1.14.1::gentoo
>>> Installing (16 of 16) media-video/vlc-3.0.3-r1::gentoo
>>> Installing (15 of 16) media-tv/kodi-17.6-r5::gentoo
>>> Jobs: 16 of 16 complete                         Load avg: 3.24, 5.98, 7.92

 * Messages for package dev-python/mako-1.0.6:

 *   dev-python/beaker for Caching support

 * Messages for package media-libs/mesa-18.1.9:

 * USE="bindist" was not set. Potentially patent encumbered code was
 * enabled. Please see /usr/share/doc/mesa-18.1.9/patents.txt.bz2 for an
 * explanation.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

!!! existing preserved libs:
>>> package: x11-libs/libva-2.1.0
 *  - /usr/lib32/libva-drm.so.1
 *  - /usr/lib32/libva-drm.so.1.4000.0
 *      used by /usr/lib32/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib32/libva-x11.so.1
 *  - /usr/lib32/libva-x11.so.1.4000.0
 *      used by /usr/lib32/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib32/libva.so.1
 *  - /usr/lib32/libva.so.1.4000.0
 *      used by /usr/lib32/libavcodec.so.57.89.100 (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib32/libavfilter.so.6.82.100 (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib32/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib64/libva-drm.so.1
 *  - /usr/lib64/libva-drm.so.1.4000.0
 *      used by /usr/lib64/chromium/libffmpeg.so (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib64/libva-x11.so.1
 *  - /usr/lib64/libva-x11.so.1.4000.0
 *      used by /usr/lib64/chromium/libffmpeg.so (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib64/libva.so.1
 *  - /usr/lib64/libva.so.1.4000.0
 *      used by /usr/lib64/chromium/libffmpeg.so (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavcodec.so.57.89.100 (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavfilter.so.6.82.100 (media-video/ffmpeg-3.3.6)
 *      used by 2 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries"


At this point, it may not have been appropriate to execute the guidance in the last line for this system (I didn't research it then! :(), but it was done as sudo:

Code:

$ sudo emerge @preserved-rebuild
Password:

Local copy of remote index is up-to-date and will be used.

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

Calculating dependencies... done!
>>> Running pre-merge checks for media-libs/opencv-3.4.1-r4
 * opencv-3.4.1-r4.tbz2 MD5 SHA1 size ;-) ...                            [ ok ]
>>> Emerging binary (1 of 2) media-video/ffmpeg-3.3.6::gentoo
>>> Installing (1 of 2) media-video/ffmpeg-3.3.6::gentoo
>>> Emerging binary (2 of 2) media-libs/opencv-3.4.1-r4::gentoo
>>> Installing (2 of 2) media-libs/opencv-3.4.1-r4::gentoo
>>> Jobs: 2 of 2 complete                           Load avg: 1.48, 0.65, 0.35
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

!!! existing preserved libs:
>>> package: x11-libs/libva-2.1.0
 *  - /usr/lib32/libva-drm.so.1
 *  - /usr/lib32/libva-drm.so.1.4000.0
 *      used by /usr/lib32/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib32/libva-x11.so.1
 *  - /usr/lib32/libva-x11.so.1.4000.0
 *      used by /usr/lib32/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib32/libva.so.1
 *  - /usr/lib32/libva.so.1.4000.0
 *      used by /usr/lib32/libavcodec.so.57.89.100 (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib32/libavfilter.so.6.82.100 (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib32/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib64/libva-drm.so.1
 *  - /usr/lib64/libva-drm.so.1.4000.0
 *      used by /usr/lib64/chromium/libffmpeg.so (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib64/libva-x11.so.1
 *  - /usr/lib64/libva-x11.so.1.4000.0
 *      used by /usr/lib64/chromium/libffmpeg.so (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavutil.so.55.58.100 (media-video/ffmpeg-3.3.6)
 *  - /usr/lib64/libva.so.1
 *  - /usr/lib64/libva.so.1.4000.0
 *      used by /usr/lib64/chromium/libffmpeg.so (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavcodec.so.57.89.100 (media-video/ffmpeg-3.3.6)
 *      used by /usr/lib64/libavfilter.so.6.82.100 (media-video/ffmpeg-3.3.6)
 *      used by 2 other files
Use emerge @preserved-rebuild to rebuild packages using these libraries

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


Now, notice that the same guidance came up:
Code:
 Use emerge @preserved-rebuild to rebuild packages using these libraries
An explanation about preserve-libs appears in the wiki. Libva remains at the target version (2.1.0), fortunately, but that last step ventured may have been inappropriate.

Thanks again for your concern!
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5281

PostPosted: Sat Oct 06, 2018 4:15 am    Post subject: Reply with quote

Strange that @preserved-rebuild didn't get rid of them, but I'd say ignore those messages. They don't hurt and they should go away eventually with future updates.
Back to top
View user's profile Send private message
Goodtobegrateful
n00b
n00b


Joined: 31 May 2018
Posts: 5

PostPosted: Sat Oct 06, 2018 4:22 am    Post subject: Reply with quote

Thanks @Ant P.! I appreciate it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum