From owner-freebsd-ports@FreeBSD.ORG Thu Feb 7 10:41:32 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E37F7394; Thu, 7 Feb 2013 10:41:32 +0000 (UTC) (envelope-from sperber@freebsd.org) Received: from mx.frozen-zone.org (frozen-zone.org [78.47.101.194]) by mx1.freebsd.org (Postfix) with ESMTP id 6B2BA3D8; Thu, 7 Feb 2013 10:41:32 +0000 (UTC) Received: by mx.frozen-zone.org (Postfix, from userid 58) id 5F2A351F913; Thu, 7 Feb 2013 10:41:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mx.frozen-zone.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.2 Received: from webmail.frozen-zone.org (unknown [10.13.37.10]) by mx.frozen-zone.org (Postfix) with ESMTPSA id DD80151F381; Thu, 7 Feb 2013 10:41:27 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 07 Feb 2013 11:41:27 +0100 From: Armin Pirkovitsch To: Subject: Re: [CFT+BRAINSTORM] One =?UTF-8?Q?USE=5F=20to=20rule=20them=20al?= =?UTF-8?Q?l?= In-Reply-To: <201302071036.r17AagEa054065@mech-cluster241.men.bris.ac.uk> References: <201302071036.r17AagEa054065@mech-cluster241.men.bris.ac.uk> Message-ID: X-Sender: sperber@freebsd.org User-Agent: Roundcube Webmail/0.7.2 Cc: avilla@freebsd.org, lists@eitanadler.com, bapt@freebsd.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 10:41:33 -0000 On 2013-02-07 11:36, Anton Shterenlikht wrote: > Date: Thu, 7 Feb 2013 10:52:01 +0100 > From: Baptiste Daroussin > To: Alberto Villa > Subject: Re: [CFT+BRAINSTORM] One USE_ to rule them all > > On Thu, Feb 07, 2013 at 09:54:59AM +0100, Alberto Villa wrote: > > On Thursday 07 February 2013 06:32:54 Armin Pirkovitsch wrote: > > > # find /usr/ports -name Makefile | xargs grep -R FEATURES | wc > -l > > > 82 > > > # find /usr/ports -name Makefile | xargs grep -R USES | wc -l > > > 20 > > >=20 > > > Sounds to me like there are less false positives for USES. > >=20 > > Add -w and USES wins: > > $ find /usr/ports -name Makefile | xargs grep -Rw FEATURES | wc -l > > 37 > > $ find /usr/ports -name Makefile | xargs grep -Rw USES | wc -l > > 0 > > Is "-R" really needed in this case? > I think there is no recursion as you > already found all files. Anyway, > I get the same answers with no "-R". You are of course right - i just copied the grep and forgot to remove "-R" - when you give grep a specific file (which happens in this case) "-R" has no effect. Armin