Subject: Re: ${ENV} vs. ${SETENV}
To: NetBSD Packages Technical Discussion List <tech-pkg@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/19/2005 11:33:35
On Tue, 19 Apr 2005, Jeremy C. Reed wrote:
> I haven't noticed problem (with "SETENV=env -i") under Linux .... yet.
I have same problem under Linux ("Variable PATH is recursive." and
dependency on lang/gcc).
Also, I tried setting SETENV?= # to nothing and received:
/usr/pkg/tmp/pkgsrc/devel/libbonobo/work.rainier/.pkgdb/+INSTALL:
PKG_PREFIX=/usr/pkg: not found
That script fragment:
case ${STAGE} in
POST-INSTALL)
if [ "${PKG_INSTALLATION_TYPE}" = "overwrite" ]; then
${SETENV} PKG_PREFIX="${PKG_PREFIX}" \
$0 ${PKGNAME} VIEW-INSTALL
fi
;;
esac
Jeremy C. Reed
BSD News, BSD tutorials, BSD links
http://www.bsdnewsletter.com/