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.
This definfitely shouldn't be done with EAPI=0 due to USE being ambiguous otherwise.
This is already in for EAPI 0. USE is restricted to things in IUSE plus ARCH and all USE_EXPAND things.
(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.
(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.
PMS patch: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=d9040ab3482af5f790368bac5d053bf1cd760ba8 Portage patch: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f76b983e95d022d6f377e3efd599dd8efbd30b3d
(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