From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 13 22:40:01 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0AB44F8 for ; Sat, 13 Oct 2012 22:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id AE7A38FC12 for ; Sat, 13 Oct 2012 22:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9DMe1vF092874 for ; Sat, 13 Oct 2012 22:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9DMe1ok092873; Sat, 13 Oct 2012 22:40:01 GMT (envelope-from gnats) Resent-Date: Sat, 13 Oct 2012 22:40:01 GMT Resent-Message-Id: <201210132240.q9DMe1ok092873@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ian Lepore Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84C5F4F2 for ; Sat, 13 Oct 2012 22:39:50 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 698FF8FC0A for ; Sat, 13 Oct 2012 22:39:50 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q9DMdoVf087922 for ; Sat, 13 Oct 2012 22:39:50 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q9DMdoXp087921; Sat, 13 Oct 2012 22:39:50 GMT (envelope-from nobody) Message-Id: <201210132239.q9DMdoXp087921@red.freebsd.org> Date: Sat, 13 Oct 2012 22:39:50 GMT From: Ian Lepore To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/172677: bsdgrep without gnu regex library causes buildworld failures X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Oct 2012 22:40:02 -0000 >Number: 172677 >Category: bin >Synopsis: bsdgrep without gnu regex library causes buildworld failures >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 13 22:40:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ian Lepore >Release: FreeBSD 10.0-CURRENT @ r241077 >Organization: >Environment: >Description: Build world using WITH_BSD_GREP=yes and with WITHOUT_GNU_COMPAT defined so that bsdgrep does not use the gnu regex library. Install the resulting binary and then make buildworld again, and the buildworld fails at usr.bin/kdump. The invocations of grep in the mksubr script don't generate the same results without the gnu library as they do with the library. This expression generates an error message: egrep '^#[[:space:]]*define[[:space:]]+SHM_[A-Z]+[[:space:]]+[0-9]{6}+[[:space:]]*' /usr/obj/arm.arm/usr/src/tmp/usr/include/sys/shm.h egrep: repetition-operator operand invalid And this expression incorrectly fails to find any matching lines: + egrep '^#[[:space:]]*define[[:space:]]+PF_[[:alnum:]]+[[:space:]]+[[:space:]]*' /usr/obj/arm.arm/usr/src/tmp/usr/include/sys/socket.h >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: