Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 418991

Summary: sys-apps/portage: please provide ability to call 'ebuild ... unpack' with unsatisfied REQUIRED_USE
Product: Portage Development Reporter: Michał Górny <mgorny>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-06-01 10:59:38 UTC
$ ebuild bumblebee-3.0-r1.ebuild --force unpack

  The following REQUIRED_USE flag constraints are unsatisfied:
    || ( video_cards_nouveau video_cards_nvidia )


It would be great if it could just unpack the file with --force. It's unlikely that unsatisfied REQUIRED_USE would actually cause problems with that, esp. considering that 'ebuild' doesn't even check dependencies...
Comment 1 Zac Medico gentoo-dev 2012-06-01 11:11:11 UTC
Yeah, a warning message should be sufficient.
Comment 2 Zac Medico gentoo-dev 2012-06-01 11:14:36 UTC
Although, we should probably block commands like 'package' and 'merge', to prevent installation with invalid USE state.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-01 11:55:19 UTC
How would this work if there's conditional distfiles in SRC_URI? I guess we can let people shoot themselves in the foot, it's not a big deal here.