Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573252 - media-tv/mythtv[vappi] fails to build using nomultilib profile
Summary: media-tv/mythtv[vappi] fails to build using nomultilib profile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: MythTV Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-28 20:48 UTC by Daniel Frey
Modified: 2016-03-20 03:42 UTC (History)
0 users

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


Attachments
mythtv build log (build.log,777.82 KB, text/plain)
2016-01-30 02:40 UTC, Daniel Frey
Details
emerge --info (emerge-info.log,4.62 KB, text/plain)
2016-01-30 02:40 UTC, Daniel Frey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Frey 2016-01-28 20:48:14 UTC
An issue was discovered on a nomultilib profile. If mythtv is built with vaapi support, it fails at:

vaapicontext.h:12:23: fatal error: va/va_glx.h: No such file or directory 

Tracing the problem it was discovered that if the 'vaapi' USE-flag is set on mythtv, it requires the 'opengl' USE-flag set on x11-libs/libva.


Reproducible: Always

Steps to Reproduce:
1. Configure a machine with a nomultilib profile
2. Add USE-flag +vaapi to USE
3. Try building mythtv.
Actual Results:  
Compilation fails: vaapicontext.h:12:23: fatal error: va/va_glx.h: No such file or directory 

Expected Results:  
Compile should succeed.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-01-29 08:15:39 UTC
Please attach the build log and emerge --info.
Comment 2 Daniel Frey 2016-01-30 02:40:27 UTC
Created attachment 424198 [details]
mythtv build log

Build log showing failure when using vaapi USE-flag
Comment 3 Daniel Frey 2016-01-30 02:40:59 UTC
Created attachment 424200 [details]
emerge --info

Build environment
Comment 4 Daniel Frey 2016-01-30 02:47:52 UTC
Attached the two files requested.

In addition, this is the failure:

vaapicontext.h:12:23: fatal error: va/va_glx.h: No such file or directory

This error only happens with the vaapi USE-flag set on mythtv.

libva is installed (emerge -pv libva mythtv):

----------------
These are the packages that would be merged, in order:

Calculating dependencies  ... done!
[ebuild   R    ] x11-libs/libva-1.3.1::gentoo  USE="X drm -egl -opengl -vdpau -wayland" VIDEO_CARDS="-dummy -fglrx -intel (-nvidia)" 0 KiB
[ebuild  N    ~] media-tv/mythtv-0.27.5_p20151025:0/0.27.5_p20151025::gentoo  USE="alsa dvd hls libass perl python theora vaapi vorbis wrapper xml xvid (-altivec) -autostart -avahi -bluray -cec -crystalhd -debug -dvb -egl -fftw -ieee1394 -jack -lcd -lirc -pulseaudio -vdpau -xmltv" INPUT_DEVICES="-joystick" PYTHON_TARGETS="python2_7" 0 KiB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 0 KiB

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

The profile (eselect profile list):

----------------
Available profile symlink targets:
  [1]   default/linux/amd64/13.0
  [2]   default/linux/amd64/13.0/selinux
  [3]   default/linux/amd64/13.0/desktop
  [4]   default/linux/amd64/13.0/desktop/gnome
  [5]   default/linux/amd64/13.0/desktop/gnome/systemd
  [6]   default/linux/amd64/13.0/desktop/kde
  [7]   default/linux/amd64/13.0/desktop/kde/systemd
  [8]   default/linux/amd64/13.0/desktop/plasma
  [9]   default/linux/amd64/13.0/desktop/plasma/systemd
  [10]  default/linux/amd64/13.0/developer
  [11]  default/linux/amd64/13.0/no-multilib
  [12]  default/linux/amd64/13.0/systemd
  [13]  default/linux/amd64/13.0/x32
  [14]  hardened/linux/amd64
  [15]  hardened/linux/amd64/selinux
  [16]  hardened/linux/amd64/no-multilib *
  [17]  hardened/linux/amd64/no-multilib/selinux
  [18]  hardened/linux/amd64/x32
  [19]  hardened/linux/musl/amd64
  [20]  hardened/linux/musl/amd64/x32
  [21]  default/linux/uclibc/amd64
  [22]  hardened/linux/uclibc/amd64
----------------

Running `find /usr -name va_glx.h` has no results.

However, doing:

1. echo "x11-libs/libva opengl" >> /etc/portage/package.use/libva
2. emerge -1N libva

then running `find /usr -name va_glx.h` shows:

----------------
/usr/include/va/va_glx.h
/usr/include/x86_64-pc-linux-gnu/va/va_glx.h
----------------

Emerging mythtv at this point is successful.

The vaapi USE-flag in the mythtv ebuild appears to require the opengl USE-flag to be set for the libva package.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2016-03-20 03:42:53 UTC
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f00cd320d237e61aedf4fc1ad30cbb78df1fd4a5