I see that the ebuild contains: IUSE="qt" DEPEND=" >=dev-libs/popt-1.7-r1 >=sys-devel/binutils-2.14.90.0.6-r3 >=sys-libs/glibc-2.3.2-r1 qt? ( >=x11-libs/qt-3.2.1-r2 )" However the qt use variable is not checked anywhere in the build. This means that if you have USE=-qt, but qt is installed on the system, oprofile will use it. Ideally ebuilds will strictly follow USE settings, not depending on the build environment for build configuration. I'm not filing this bug because it needs to be immediately fixed... just didn't want this information to get lost. I might fix it myself eventually, but assigning to cretin for now since he put the ebuild in the system.
Added this to the ebuild, seems to work. use qt || myconf="${myconf} --with-qt-dir=/void" Closing.
Cool, thanks Cretin. I'm always trying to track down and fix this kind of thing so that our builds are mostly deterministic based on USE instead of environment.