Subject: Re: pkg/5184: shouldn't look in $PATH for depends binaries
To: None <nathanw@MIT.EDU>
From: Todd Vierling <tv@NetBSD.ORG>
List: netbsd-bugs
Date: 03/22/1998 20:43:57
On Sun, 22 Mar 1998 nathanw@MIT.EDU wrote:

: It is a mistake
: to assume that any binary in $PATH comes from the package system. For example,
: on my system any package that defines USE_PERL5=yes will look for perl5.00404, 
: and it will find /usr/athena/bin/perl5.00404 - which does not come from the
: package system. 

But it's also a mistake to assume that:
- someone will use the pkg system to install a dependent library or binary
- the current setting of ${PREFIX} is where the dependent program was

: that run programs like '${PREFIX}/bin/perl' need
: to be adjusted to simpy run 'perl'

Actually, these need to use the "startup hack" mentioned in the "perlrun"
manpage.  See the current implementation of the ssh pkg and the patch it
applies to to see how this is done.  This allows
perl to come from ${PATH} at runtime.

-- Todd Vierling (Personal; Bus.