Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Oct 2012 22:39:50 GMT
From:      Ian Lepore <freebsd@damnhippie.dyndns.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/172677: bsdgrep without gnu regex library causes buildworld failures
Message-ID:  <201210132239.q9DMdoXp087921@red.freebsd.org>
Resent-Message-ID: <201210132240.q9DMe1ok092873@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210132239.q9DMdoXp087921>