Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 2017 17:54:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 222201] fgrep / grep -F broken if WITH_BSD_GREP set
Message-ID:  <bug-222201-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222201

            Bug ID: 222201
           Summary: fgrep / grep -F broken if WITH_BSD_GREP set
           Product: Base System
           Version: 11.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: rozhuk.im@gmail.com

fgrep / grep -F broken if WITH_BSD_GREP set in /etc/src.conf
in all cases return: literal expressions not supported at compile time.
Test: fgrep "mail" /etc/defaults/rc.conf
will fail with: literal expressions not supported at compile time

/usr/src/usr.bin/grep/grep.c:
        case GREP_FIXED:
#if defined(REG_NOSPEC)
                cflags |=3D REG_NOSPEC;
#elif defined(REG_LITERAL)
                cflags |=3D REG_LITERAL;
#else
                errx(2, "literal expressions not supported at compile time"=
);
#endif
                break;

Make buildworld broken/fail.

To fix system I copy grep from more old system and rebuild+reinstall world
without WITH_BSD_GREP in /etc/src.conf.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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