Subject: do-install not setting PATH
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@ca.pugetsoundtechnology.com>
List: tech-pkg
Date: 03/09/2007 06:35:11
Retrieved pkgsrc source tarball yesterday.

Installing mail/uw-imap on ubuntu failed and my LOCALBASE is not part of 
my path.

See my extra debugging here. pkgsrc's PATH is defined by not set in the 
shell's environment.

...
n                                        include/c-client/*)                
src="/opt/pkgsrc/pkgsrc/mail/imap-uw/work/imap-2004g/c-client/`/usr/bin/base
name 
$entry`";       dest="/usr/pkg/$entry";                         
/usr/bin/install -c -o root -g root -m 444 $src $dest;                  
esac;                  done
echo PATH is 
/opt/pkgsrc/pkgsrc/mail/imap-uw/work/.wrapper/bin:/opt/pkgsrc/pkgsrc/mail/im
ap-uw/work/.buildlink/bin:/opt/pkgsrc/pkgsrc/mail/imap-uw/work/.tools/bin:/o
pt/pkgsrc/pkgsrc/mail/imap-uw/work/.gcc/bin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
PATH is 
/opt/pkgsrc/pkgsrc/mail/imap-uw/work/.wrapper/bin:/opt/pkgsrc/pkgsrc/mail/im
ap-uw/work/.buildlink/bin:/opt/pkgsrc/pkgsrc/mail/imap-uw/work/.tools/bin:/o
pt/pkgsrc/pkgsrc/mail/imap-uw/work/.gcc/bin:/usr/pkg/bin:/usr/local/sbin:/us
r/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
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
*** Error code 127