[CFT+BRAINSTORM] One USE_ to rule them all

Armin Pirkovitsch sperber at FreeBSD.org
Thu Feb 7 05:33:05 UTC 2013


On 02/06/13 22:52, Eitan Adler wrote:
> On 6 February 2013 15:03, Armin Pirkovitsch <sperber at freebsd.org> wrote:
>> On 02/06/13 14:26, Eitan Adler wrote:
>>> On 6 February 2013 08:21, Baptiste Daroussin <bapt at freebsd.org> wrote:
>>>> On Wed, Feb 06, 2013 at 08:13:54AM -0500, Eitan Adler wrote:
>>>>> On 6 February 2013 07:41, Frederic Culot <culot at freebsd.org> wrote:
>>>>> ...
>>>>>
>>>>> FEATURES.  It is likely to be easy to grep (as opposed to USE).
>>>>>
>>>>> --
>>>>> Eitan Adler
>>>>
>>>> What's wrong with grep USE= or grep USE+ ?
>>>
>>> easier does not mean the alternate is impossible.
>>>
>>> grep -R FEATURES /usr/ports
>>> is slightly easier than
>>> grep -ER "USE[+=]" /usr/ports
>>>
>>> which is also wrong (it loses ${USE} for example).
>>
>> wouldn't "USES" solve that dilemma?
>> And it would grammatically even be correct:
>> Port X USES gmake, gettext, whatever...
> 
> There are already a number of false positives.   The objection is not
> as strong though.
> 
> My preference is for a distinct, easily greppable, low false positive, term.
> 
> 

# find /usr/ports -name Makefile | xargs grep -R FEATURES | wc -l
      82
# find /usr/ports -name Makefile | xargs grep -R USES | wc -l
      20

Sounds to me like there are less false positives for USES.



More information about the freebsd-ports mailing list