When building qemu with the opengl USE flag, the configure script looks for: epoxy libdrm gbm x11 However, the mesa dependencies for qemu (when using opengl) do not include gbm. Fixed by adding the dependency to the ebuild like so: -media-libs/mesa[egl,gles2] +media-libs/mesa[egl,gles2,gbm] That was an easy one to miss since gbm is enabled by default on media-libs/mesa
Thanks! commit b50850bf14489740441b408a2d45f6e64d724f7d Author: Matthias Maier <tamiko@gentoo.org> Date: Sat Sep 17 23:02:53 2016 -0500 app-emulation/qemu: security fixes, ebuild maintenance bug 593956: CVE-2016-7422 bug 593950: CVE-2016-7421 bug 590230: missing use depend opengl? ( media-libs/mesa[...,gbm] ) bug 575326: update to readme.gentoo-r1 eclass Package-Manager: portage-2.2.28