Subject: Re: pkg/20477: assumes sed is in /bin, isn't on
To: Jeremy C. Reed <>
From: Julio Merino <>
List: netbsd-bugs
Date: 02/24/2003 18:05:17
On Mon, 24 Feb 2003 08:45:20 -0800 (PST)
"Jeremy C. Reed" <> wrote:

> For the fix in, they should probably just be set to
> command name (no path), just like CMP is set.

Relying on PATH is not good, imho.


1) Use something like:

.if exists(/usr/bin/egrep)
EGREP?=	/usr/bin/egrep
EGREP?=	/bin/egrep

2) Let the bootstraping process adjust to match the actual
system on the fly.
I have some patches to fix the 'bootstrap' program to automatically
locate sed (and all other tools), so it does not break in linux...
This may be extended to the file too...

Mmm... Linux...

Julio M. Merino Vidal <>
The NetBSD Project -