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

Bug 176467

Summary: [Future EAPI] Limit values in $USE to ones in $IUSE
Product: Gentoo Hosted Projects Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: RESOLVED FIXED    
Severity: normal CC: beandog, esigra, rhill
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: in-eapi-5
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380, 228907    

Description Petteri Räty (RETIRED) gentoo-dev 2007-04-29 14:38:34 UTC
Currently $USE has all the use flags that are on. For QA reasons it would be better to limit this to all the ones that are active and in IUSE. Currently not all ebuilds add use expanded stuff to IUSE so this could be done in EAPI="0" too if all ebuilds are checked to have proper IUSE.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-04-29 14:41:03 UTC
This definfitely shouldn't be done with EAPI=0 due to USE being ambiguous otherwise.
Comment 2 Ciaran McCreesh 2007-04-29 14:41:57 UTC
This is already in for EAPI 0. USE is restricted to things in IUSE plus ARCH and all USE_EXPAND things.
Comment 3 Zac Medico gentoo-dev 2007-04-29 19:16:03 UTC
(In reply to comment #2)
> This is already in for EAPI 0. USE is restricted to things in IUSE plus ARCH
> and all USE_EXPAND things.

Could you cite a reference please?  The exception for "all USE_EXPAND things" seems quite arbitrary.
Comment 4 Ciaran McCreesh 2007-04-29 19:25:21 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > This is already in for EAPI 0. USE is restricted to things in IUSE plus ARCH
> > and all USE_EXPAND things.
> 
> Could you cite a reference please?

Mm, looks like the wording isn't as explicit as it should be on that. Seems to be missing ARCH too.

> The exception for "all USE_EXPAND things" seems quite arbitrary.

It's necessary to avoid making large parts of the tree non-compliant. Most people don't IUSE userland_ etc.
Comment 6 Ulrich Müller gentoo-dev 2012-09-23 06:34:00 UTC
(In reply to comment #5)
> PMS patch:
> http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;
> h=d9040ab3482af5f790368bac5d053bf1cd760ba8

Commit in master:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=0c4d87bebb5f1fa213ca69381ed2516ee60236ad