Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Documentation needed for some default 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
naga jolokia
n00b
n00b


Joined: 28 Dec 2013
Posts: 10
Location: Berlin

PostPosted: Fri Feb 20, 2015 11:52 am    Post subject: Documentation needed for some default USE flags Reply with quote

During installation following the handbook I kept the profile as
Code:
[1]   default/linux/amd64/13.0 *
and didn't change any USE flags in /mnt/gentoo/etc/portage/make.conf nor somewhere else.
As the example in the handbook as well as
Code:
emerge --info

on my machine shows, there are some USE flags set by default, about that I can't find any description neither in /usr/portage/profiles/use.desc nor at the use index.
The flags in question are: amd64, cli, mmx, sse, sse2.

So my questions are:
Where can I find a comprehensive documentation including all USE flags?
Where are these flags set?
Is there a reason for not documenting them in the aforementioned sources?

Thanks in advance
®
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Fri Feb 20, 2015 12:09 pm    Post subject: Reply with quote

To my knowledge, amd64 is not and never has been a USE flag. As for the others, they used to be USE flags proper but have been moved into their own namespace in the CPU_FLAGS_X86 variable. (They're still kind-of USE flags, though.) They mirror instruction set features that some (but not all) x86 CPUs have. Some packages have hand-coded assembler routines to take special advantages of those instructions if they're available, and those are the features that are enabled by the flags in CPU_FLAGS_X86. These used to be part of the regular USE variable (and described in the normal documentation). I'm afraid you've caught Gentoo in transition where the technical implementation has moved ahead of the documentation.

The main purpose of the profiles is to set default USE flags, keywords, and masks. In the absence of your settings in /etc/portage/, all USE flags you see set in the output of "emerge --info" come from the selected profile.

- 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
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Fri Feb 20, 2015 12:13 pm    Post subject: Reply with quote

There are more descriptions in /usr/portage/profiles/use.local.desc
If you have app-portage/gentoolkit installed then euse -i <flag> will print the info you need.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Mon Feb 23, 2015 4:59 am    Post subject: Reply with quote

John R. Graham wrote:
To my knowledge, amd64 is not and never has been a USE flag.
It is slightly more confusing, at least on the surface, than that. It, along with all of the other architecture keywords appear in their unqualified forms as USE flags and are set by default on the architecture to which they correspond. However they should not appear in make.conf or package.use outside of rather exceptional circumstances such as when working on porting to new architectures; since they are, naturally, used to control applying patches (conditional patches in general are somewhat deprecated, though a relatively common practice) or enabling features that are thought to only work (or for whatever other reason are only allowed) on the corresponding architectures.

Moved from Documentation, Tips & Tricks to Other Things Gentoo.
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