Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 697806 - media-libs/mesa USE="-gallium llvm" should not depend on sys-devel/llvm
Summary: media-libs/mesa USE="-gallium llvm" should not depend on sys-devel/llvm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-16 03:48 UTC by Chris Slycord
Modified: 2019-10-16 06:09 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Slycord 2019-10-16 03:48:02 UTC
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.
Comment 1 Matt Turner gentoo-dev 2019-10-16 06:08:22 UTC
Good idea
Comment 2 Larry the Git Cow gentoo-dev 2019-10-16 06:09:00 UTC
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(-)