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.
Please attach the build log and emerge --info.
Created attachment 424198 [details] mythtv build log Build log showing failure when using vaapi USE-flag
Created attachment 424200 [details] emerge --info Build environment
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.
Thanks for the report. Fixed in http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f00cd320d237e61aedf4fc1ad30cbb78df1fd4a5