Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645090 - sys-devel/gcc USE="-cxx go" should not build instead of disabling go
Summary: sys-devel/gcc USE="-cxx go" should not build instead of disabling go
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-20 09:06 UTC by Nado
Modified: 2024-07-21 17:18 UTC (History)
3 users (show)

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 Nado 2018-01-20 09:06:10 UTC
While testing a variety of different build configurations for gcc, I spotted that using `USE="-* go" emerge gcc, I get :

>>> Running pre-merge checks for sys-devel/gcc-7.2.0-r1
 * Go requires a C++ compiler, disabled due to USE="-cxx"

Could this warning be made fatal ? I don't see the point of telling it in a warning and not building what the user wanted. Especially when doing a long emerge run when it is easy to miss some warnings.

Reproducible: Always

Actual Results:  
User with USE="-cxx go" gets a gcc without go but a simple warning.

Expected Results:  
Emerge dies like when REQUIRED_USE constraints are unmet in other ebuilds.

I set the severity as minor because I spotted it during tests, I don't expect much people wanting a go compiler without a c++ one.
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-29 20:27:59 UTC
Yeah, we can leverage REQUIRED_USE for that.