Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
control use flags
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
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Tue Jan 22, 2013 9:52 am    Post subject: control use flags Reply with quote

Hello,

I wonder if I can set a use flag for a programm so only the programm use it.
So I can have ultimate control over my gentoo box.

Roelof
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Tue Jan 22, 2013 10:17 am    Post subject: Reply with quote

Either you use /etc/portage/package.use as a file and put lines like the one below or you use it as a directory and place files there which contain lines like the one below:
Code:

media-video/mplayer2 -3dnow mmx

_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
roelof
Guru
Guru


Joined: 05 Feb 2009
Posts: 488

PostPosted: Tue Jan 22, 2013 1:09 pm    Post subject: Reply with quote

Thanks.

One question.
If I want to do it as a directory.
Does it look like this

/etc/portage/package.use/a/a.use

For a package called a.


Roelof
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Jan 22, 2013 1:15 pm    Post subject: Reply with quote

Yes, that works, but most people don't use that extra level of directory. They would just use /etc/portage/package.use/a as a regular file. There's no real need for a file type either because the only thing that goes into package.use is package-specific USE flags; no harm done, though.

This is all explained in the Working with Gentoo section of the Handbook. Time for some light reading? :wink:

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
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