If USE=llvm is set, then media-libs/mesa pulls it in as a dependency. But if USE=-gallium, then the mesa ebuild ignores USE=llvm. From ebuild: use llvm && ewarn "Ignoring USE=llvm since USE does not contain gallium" So, it will be installed as a dependency but not actually used by the package at all. Reproducible: Always Steps to Reproduce: 1. set USE="llvm -gallium" 2. emerge -pv media-libs/mesa 3. See note presence of sys-devel/llvm in deps 4. emerge media-libs/mesa Actual Results: sys-devel/llvm to be installed as dep and During build receive warning message of: * Ignoring USE=llvm since USE does not contain gallium Expected Results: The package to only pull in the sys-devel/llvm when it is set to be used.
Good idea
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75bd9efda3f8b27f2b3b3ca3cb8a2f53f84e7d0e commit 75bd9efda3f8b27f2b3b3ca3cb8a2f53f84e7d0e Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2019-10-16 06:08:05 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2019-10-16 06:08:44 +0000 media-libs/mesa: Do not depend on llvm if USE=-gallium Closes: https://bugs.gentoo.org/697806 Signed-off-by: Matt Turner <mattst88@gentoo.org> media-libs/mesa/mesa-9999.ebuild | 62 +++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 30 deletions(-)