Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] emerge default opts
Date: Sun, 15 Oct 2017 15:36:38
Message-Id: 20171015163611.1e8e4e76@digimed.co.uk
In Reply to: Re: [gentoo-user] [OT] emerge default opts by Dale
1 On Sun, 15 Oct 2017 09:46:26 -0500, Dale wrote:
2
3 > I was thinking it may be harder than one thinks since I don't know of a
4 > way to do it but have seen some who want something that does it.  I'd be
5 > happy if it just told me what USE flags no longer exist at all.  My USE
6 > line in make.conf is quite lengthy.  I'm certain a lot of it could be
7 > gone.  Some may not have existed for years. 
8
9 How about something like this?
10
11 source /etc/portage/make.conf
12 for flag in $USE; do
13 grep -q '^${flag} ' $PORTDIR/profile/use.desc || \
14 grep -q ':${flag} ' $PORTDIR/profile/use.local.desc || \
15 echo "${flag} not found in use.desc or use.local.desc"
16 fi
17
18
19 --
20 Neil Bothwick
21
22 OPERATOR ERROR: Nyah, Nyah, Nyah, Nyah, Nyah!