Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE flags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
leonchik1976
Apprentice
Apprentice


Joined: 24 Jan 2010
Posts: 169

PostPosted: Sat Aug 06, 2016 9:48 am    Post subject: USE flags Reply with quote

I have a lot of USE flags in make.conf, is there any quick way to find obsolete/unused USE flags rather than checking one by one?
Back to top
View user's profile Send private message
[n00b@localhost]
Apprentice
Apprentice


Joined: 30 Aug 2004
Posts: 266
Location: London, UK

PostPosted: Sat Aug 06, 2016 10:30 am    Post subject: Reply with quote

There's probably better tools nowadays but I wrote this script a few years ago that still works: https://gist.github.com/garymacindoe/59924db9f3f8b75f696f
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21782
Location: here

PostPosted: Sat Aug 06, 2016 1:36 pm    Post subject: Reply with quote

See here if can help
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
javeree
Guru
Guru


Joined: 29 Jan 2006
Posts: 349

PostPosted: Tue Aug 09, 2016 8:27 am    Post subject: Reply with quote

Also check app-portage/portpeek
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Tue Aug 09, 2016 9:23 am    Post subject: Reply with quote

app-portage/ufed will show you those flags as "(undocumented)" which are no longer in the gentoo tree.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43200
Location: 56N 3W

PostPosted: Tue Aug 09, 2016 5:50 pm    Post subject: Reply with quote

leonchik1976,

Comment out your USE statement in make.config.

Run
Code:
emerge -epv @world
The -p is important.
All the changed USE flags that affect your system will be listed as changed in the output.

Readers with scripting skills can probably write a wee ditty to filter the output.
Put back the USE flags you need.
Rinse and repeat until there are no changed USE flags.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum