From owner-freebsd-ports@FreeBSD.ORG Wed Aug 6 00:38:51 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4F1D106564A for ; Wed, 6 Aug 2008 00:38:51 +0000 (UTC) (envelope-from stuartb@4gh.net) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 945758FC0C for ; Wed, 6 Aug 2008 00:38:51 +0000 (UTC) (envelope-from stuartb@4gh.net) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 05 Aug 2008 20:10:44 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.6-GA) with ESMTP id KDW98087; Tue, 5 Aug 2008 20:10:41 -0400 (EDT) Received: from 216-15-63-33.c3-0.slvr-ubr2.lnh-slvr.md.cable.rcn.com (HELO freeman.4gh.net) ([216.15.63.33]) by smtp01.lnh.mail.rcn.net with ESMTP; 05 Aug 2008 20:10:20 -0400 Received: by freeman.4gh.net (Postfix, from userid 1001) id 6143C5C5D1; Tue, 5 Aug 2008 20:10:18 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by freeman.4gh.net (Postfix) with ESMTP id 1FF1B5C2AB for ; Tue, 5 Aug 2008 20:10:18 -0400 (EDT) Date: Tue, 5 Aug 2008 20:10:17 -0400 (EDT) From: Stuart Barkley To: freebsd-ports@freebsd.org In-Reply-To: Message-ID: References: <56E45E0F-29D4-4CA8-9936-384405AB874A@mac.com> <4897518D.4090001@FreeBSD.org> <20080804201806.GA50143@nagual.pp.ru> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-82948907-1217981418=:6204" X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A010206.4898EC01.0107,ss=1,fgs=0, ip=207.172.4.11, so=2007-10-30 19:00:17, dmn=5.4.3/2008-02-01 X-Junkmail-IWF: false Subject: Re: bsd-grep-20080725_1 -v flag busted... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2008 00:38:52 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-82948907-1217981418=:6204 Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Mon, 4 Aug 2008 at 16:32 -0000, Chuck Swiger wrote: > (I'm much more interested in confirming whether the bug I see in BSD > grep is reproducible by others than debating how to get real > newlines from various shells.) Yes, I was seeing problems building several ports with the latest bsdgrep port. Specifically the neon28 and avifile ports where hanging in the ./configure phase as shown at in the original message in this thread. The problem appeared to be in the return code from grep. It looked like ./configure was in a loop doing a 'grep . file' as a method of testing for an empty file. Using tcsh: % set printexitvalue % /usr/bin/grep . < /dev/null Exit 1 % /usr/bin/grep -V grep (GNU grep) 2.5.1-FreeBSD Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. % % /usr/local/bin/grep . < /dev/null Exit 1 % /usr/local/bin/grep -V grep (BSD grep) 2.5.1-FreeBSD % pkg_info -I bsd-grep\* bsd-grep-20080723 BSD-licensed version of grep from OpenBSD % % pkg_delete bsd-grep\* % pkg_add ~/bsd-grep-20080725_1.tbz % /usr/local/bin/grep . < /dev/null ÿ % /usr/local/bin/grep -V grep (BSD grep) 2.5.1-FreeBSD % pkg_info -I bsd-grep\* bsd-grep-20080725_1 BSD-licensed version of grep from OpenBSD % Also, note that there IS output when grepping from /dev/null with the 20080725_1 version of bsdgrep: % /usr/local/bin/grep . < /dev/null | hd 00000000 ff 0a |..| 00000002 % Stuart Barkley --0-82948907-1217981418=:6204--