Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Find out what use flags are enabled by profiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
314q8927bb4aw
n00b
n00b


Joined: 11 Jan 2017
Posts: 11

PostPosted: Tue Jun 27, 2017 10:22 am    Post subject: Find out what use flags are enabled by profiles Reply with quote

Sup gentoo
How can I find out what use flags are enabled by a profile? I'm trying to tidy up my make.conf by removing redundant use flags. I'm using the 'default/linux/amd64/13.0/desktop' profile btw.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Jun 27, 2017 10:27 am    Post subject: Reply with quote

In make.conf, comment out the USE= line, then run
Code:
$ portageq envvar USE | xargs -n 1
It will show you what's enabled. Also see https://wiki.gentoo.org/wiki//etc/portage/package.use.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30965
Location: here

PostPosted: Tue Jun 27, 2017 10:38 am    Post subject: Reply with quote

As charles17 say, use command one time without USE line in make.conf and another time with USE and then use diff
Code:
$ portageq envvar USE | xargs -n 1 > clear_use_list.txt  #in make.conf USE line is commented
$ portageq envvar USE | xargs -n 1 > use_list.txt #in make.conf USE line isn't commented
$ diff clear_use_list.txt use_list.txt

The output show you what is not redundant
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Tue Jun 27, 2017 10:54 am    Post subject: Reply with quote

And be aware some USE flags which are generally enabled might be disabled (USE masked) for certain packages by
Code:
/usr/portage/profiles/base/package.use.mask
Back to top
View user's profile Send private message
314q8927bb4aw
n00b
n00b


Joined: 11 Jan 2017
Posts: 11

PostPosted: Tue Jun 27, 2017 11:15 am    Post subject: Reply with quote

Thanks this works
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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