Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154698 - Add a feature to Portage to allow the user to be warned when USE flags are changed/removed/added to an installed package.
Summary: Add a feature to Portage to allow the user to be warned when USE flags are ch...
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-10 10:04 UTC by R
Modified: 2006-11-11 03:40 UTC (History)
0 users

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 R 2006-11-10 10:04:25 UTC
I have been caught out twice by packages suddenly failing to do what I want after an emerge. e.g. Amarok stopped playing mp3s because some mp3 flag had been added to xine-lib since it had been updated, that had to be enabled in order to play mp3s.
Solution: warn the user when USE flags have been added or changed since the last previously installed version of that package (if any) on the computer. This warning would obviously have to appear when the package was emerge for the first time or when it was updated.
Thanks.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2006-11-10 10:08:13 UTC
emerge -pv already highlights added/removed flags.
Comment 2 R 2006-11-10 13:38:26 UTC
That doesn't help. A typical Gentoo user will not be willing to do emerge -pv before EVERY time they emerge packages.

This information about new USE flags should be collected and automatically displayed to the user every time emerge has finished emerging new packages, perhaps using the yellow warning text.
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2006-11-10 15:24:35 UTC
EMERGE_DEFAULT_OPTS="--ask" without using --verbose will pretty much give you what you want. Even when not using --verbose, changed and new USE flags will still be shown so scanning the package list for interesting changes becomes very quick. If you want _only_ new flags listed, create a small (2-line) script that greps for 'USE=.*%' before running the actual emerge command.
Comment 4 R 2006-11-11 03:40:52 UTC
Fair enough. Doesn't look like there's an easy way around this. I'll try your method anyway.