On 16/12/2013 22:17, Michael Orlitzky wrote:
> On 12/16/2013 01:21 PM, Alan McKinnon wrote:
>>>
>>> "Enable use of the SSSE3 instruction set (NOT sse3). This is needed by
>>> projects which contain assembly code or which use certain compiler
>>> intrinsics. It is not a replacement for CFLAGS and friends."
>>
>> The second and third sentences add nothing to the description. They only
>> describe how cpu instruction sets in general work and are used, but tell
>> you nothing about ssse3.
> 
> USE flags are a user interface, not documentation. A good description is
> one that helps the user decide, "do I want to enable this?" I'm not
> particular about the wording -- and my use of "needed" was a mistake --
> but with that purpose in mind, a good description should contain,
> 
>   1. Why might I want to enable this?
> 
>   2. Why might I want to disable this?
> 
> So e.g. my description is missing #2, "You should not enable this unless
> you have a processor supporting SSSE3."
> 
> 
>> then modifying all cpu instruction set flags similarly
> 
> Yup.


Is it worthwhile adding a link in the description to a resource that
describes a USE flag in greater detail?

Most flags are obvious as to what they do, like jpeg/png/gif: the user
simply asks himself if he wants to use those formats. Most flags are
like this, and come down to user preference; portage merges in any
missing parts required

cpu sets are different: they also depend on whether they CAN be used in
a given environment. Portage cannot know if ssse3 will work for the cpu
running the code so cannot fill in the missing bits. The user must first
check if the intended cpu supports ssse3 at all (often preceded by
finding out how to find this out).

That's a lot of vital ,necessary info and it deserves the full
documentation treatment. A USE description is not the place for that,
but a link could work nicely. Especially if the linked page describes
the intent and usage of the USE flag in full.



-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to