Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506408 - x11-libs/libxcb: add USE xvmc and disable it by default
Summary: x11-libs/libxcb: add USE xvmc and disable it by default
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-01 05:52 UTC by Nikoli
Modified: 2017-01-26 06:42 UTC (History)
0 users

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 Nikoli 2014-04-01 05:52:15 UTC
Seems xvmc is optional in libxcb, so why keep it enabled by default? It is obsolete: only supports mpeg2 and mpeg4 asp codecs, but not h.264 or HEVC

>>> Configuring source in /var/package-manager/tmp/portage/x11-libs/libxcb-1.10/work/libxcb-1.10 ...
...
  Package: libxcb 1.10

  Configuration
    XDM support.........: yes
    sendmsg fd passing..: yes
    Build unit tests....: no
      with html results.: no
    XCB buffer size.....: 16384

  X11 extensions
...
    xvmc................: yes

$ equery f x11-libs/libxcb|grep xvmc -c
44
Comment 1 Matt Turner gentoo-dev 2014-04-01 06:00:22 UTC
I'm unaware of libxcb's xvmc code being used for anything. If we do anything with it, we should just turn it off. But, I don't really think we should bother..

More justification needed.
Comment 2 Nikoli 2015-03-10 11:55:05 UTC
So what is the problem with turning it off? I can provide and test patch for ebuild if required. I really would like to remove xvmc from my systems completely, because nothing is using it:
$ grep -i xvmc /var/db/pkg/*/*/NEEDED.ELF.2
/var/db/pkg/x11-libs/libxcb-1.10/NEEDED.ELF.2:X86_64;/usr/lib64/libxcb-xvmc.so.0.0.0;libxcb-xvmc.so.0;;libxcb.so.1,libc.so.6

When running KDE X11 session and playing mpg files with vlc and mpv:
# lsof -n|grep -i xvmc
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2015-03-11 07:10:25 UTC
The library is 14KB. Does it really matter?
Comment 4 Nikoli 2015-03-11 09:55:26 UTC
When entirely removing obsolete API from system, size of particular component does not matter: it should be removed anyway.