Subject: Re: pkg/36020: do-install not setting PATH
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-bugs
Date: 03/17/2007 17:15:04
The following reply was made to PR pkg/36020; it has been noted by GNATS.
From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/36020: do-install not setting PATH
Date: Sat, 17 Mar 2007 18:13:51 +0100
reed@reedmedia.net wrote:
> echo shell PATH is $PATH
> shell PATH is
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:
> /sbin:/usr/sbin:/sbin:/usr/sbin
> libtool --mode=install /usr/bin/install -c -o root -g root -m 555
> /opt/pkgsrc/pkgsrc/mail/imap-uw/work/imap-2004g/c-client/libc-client.la
> /usr/pkg/lib
> /bin/sh: libtool: not found
>
>
>
>>Fix:
>
> Make sure PATH includes the work/.*/bin directories during do-install target.
Can someone remind me please why we have "$$PATH" (the shell variable)
and not ${PATH:Q} (the make variable) in the _ROOT_CMD? I know I had
changed this once, but only for a few days, because it broke something.
Why should the do-install PATH _not_ contain the pkgsrc wrapper
directories? Aren't sed(1) and awk(1) (instead of ${SED} and ${AWK})
expected to work here too, no matter how limited the platform's
utilities are?
Roland