From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 15 19:30:49 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8791B106568E; Sun, 15 Jun 2008 19:30:49 +0000 (UTC) (envelope-from gabor@t-hosting.hu) Received: from viefep15-int.chello.at (viefep18-int.chello.at [213.46.255.22]) by mx1.freebsd.org (Postfix) with ESMTP id 1BF398FC12; Sun, 15 Jun 2008 19:30:47 +0000 (UTC) (envelope-from gabor@t-hosting.hu) Received: from [89.134.207.231] by viefep32-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20080615191704.UUPR7471.viefep32-int.chello.at@[89.134.207.231]>; Sun, 15 Jun 2008 21:17:04 +0200 Message-ID: <48556AAD.9010602@t-hosting.hu> Date: Sun, 15 Jun 2008 21:17:01 +0200 From: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Diomidis Spinellis References: <485453F2.60507@FreeBSD.org> <4854BC29.3060507@FreeBSD.org> <4854C96A.1080603@aueb.gr> In-Reply-To: <4854C96A.1080603@aueb.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Sun, 15 Jun 2008 20:05:39 +0000 Cc: hackers@FreeBSD.org, Doug Barton , current@FreeBSD.org, "Sean C. Farley" , Max Khon Subject: Re: CFT: BSD-licensed grep [Fwd: cvs commit: ports/textproc/bsdgrep Makefile distinfo] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2008 19:30:49 -0000 Diomidis Spinellis escribió: > Doug Barton wrote: >> I use the following construct in portmaster, where pdb=/var/db/pkg, >> origin is set to the origin of a given port, and ro_opd is usually >> empty, but can be another origin directory or the same one. To >> guarantee that you should get some kind of results you can test with >> origin=devel/gettext. >> >> egrep -l "DEPORIGIN:($origin|$ro_opd)$" $pdb/*/+CONTENTS >> >> Obviously this works in portmaster with the gnu grep, but if ro_opd >> is unset with the bsd grep I get: >> >> egrep: empty (sub)expression > > To avoid these problems I had proposed to instrument getopt to write > options passed through argv in a file, build all our ports, and look > at the options used. Yes, of course, I haven't forgotten about your suggestion. First, I'd like to process the trivial errors, which come up like this one and make some tests myself. Then I'll think about this idea and ask portmgr to do an exp-run with BSD grep. Regards, -- Gabor Kovesdan EMAIL: gabor@FreeBSD.org WWW: http://www.kovesdan.org