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

Bug 224761

Summary: Portage supports "myuse? foo/bar" syntax, PMS seems to not specify it
Product: Portage Development Reporter: Santiago M. Mola (RETIRED) <coldwind>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: pms
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 563798, 335925    

Description Santiago M. Mola (RETIRED) gentoo-dev 2008-06-03 14:54:51 UTC
Looking at Portage source code, it seems that it supports the following syntax for dependencies:
"myuse? foo/bar"

PMS secion 9.2 specifies use condition groups ("myuse? ( foo/bar )") but not the former syntax.

Either portage should deprecate the old syntax, or PMS should be clarified.
Comment 1 Ciaran McCreesh 2008-06-03 15:34:51 UTC
As far as I know, it's deprecated along with ?:.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2008-06-03 17:14:24 UTC
I don't think it is at all illegal to support a superset of a given specification.

Comment 3 Brian Harring (RETIRED) gentoo-dev 2008-06-03 17:40:18 UTC
repoman ought to catch that one (same for ?: iirc)...
Comment 4 Ciaran McCreesh 2008-06-03 17:55:48 UTC
(In reply to comment #2)
> I don't think it is at all illegal to support a superset of a given
> specification.

PMS includes wording about rejecting or warning for invalid inputs in various places. Ideally it'd take the Stroustrup approach and say that for everything...

Comment 5 Zac Medico gentoo-dev 2010-09-13 17:41:07 UTC
This is fixed in 2.1.9.