svn commit: r364023 - head/usr.bin/grep

Kyle Evans kevans at freebsd.org
Fri Aug 7 16:57:34 UTC 2020


On Fri, Aug 7, 2020 at 11:22 AM Alexander Richardson
<arichardson at freebsd.org> wrote:
>
> On Fri, 7 Aug 2020 at 17:06, Kyle Evans <kevans at freebsd.org> wrote:
> >
> > On Fri, Aug 7, 2020 at 11:04 AM Alex Richardson <arichardson at freebsd.org> wrote:
> > >
> > > Author: arichardson
> > > Date: Fri Aug  7 16:04:01 2020
> > > New Revision: 364023
> > > URL: https://svnweb.freebsd.org/changeset/base/364023
> > >
> > > Log:
> > >   Always install usr.bin/grep as grep when bootstrapping
> > >
> > >   We have to bootstrap grep when cross-building from macOS/Linux.
> > >
> >
> > What's going on here that it isn't bootstrapping gnugrep over in
> > gnu/usr.bin/grep as grep? My gut instinct is that we're missing
> > something else and this isn't quite the right place to have addressed
> > this.
> >
>
> The logic in Makefile.inc1 builds usr.bin/grep as the bootstrap grep
> when BOOTSTRAP_ALL_TOOLS is set (e.g. when building on macOS/Linux).
> If you think this should be gnu/usr.bin/grep instead I can revert this
> change and update Makefile.inc1.
> We have been using usr.bin/grep for bootstrap in CheriBSD for a long
> time now and it works fine so I'm not sure whether we need to use GNU
> grep for bootstrapping?
>

I suspect that the correct path should've forced WITH_BSD_GREP at the
top-level if it's going to explicitly use usr.bin/grep, but now that I
think about it- let's not put any more thought into this...
Ultimately, I'm going to be reverting this in due time as I flip the
WITH_BSD_GREP switch to default and ultimately remove the whole
conditional altogether not too long after that. This will remove the
need completely.

Thanks,

Kyle Evans


More information about the svn-src-all mailing list