Subject: Re: build.sh breakage?
To: NetBSD-current Users's Discussion List <current-users@netbsd.org>
From: Greg A. Woods <woods@planix.com>
List: current-users
Date: 03/27/2007 18:00:58
--pgp-sign-Multipart_Tue_Mar_27_18:00:56_2007-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

At Sun, 25 Mar 2007 23:06:07 +0000 (UTC), Christos Zoulas wrote:
Subject: Re: build.sh breakage?
>=20
> This whole thing seems silly to me:
> You either override the path and set it the way you want it in a
> script, or you leave it alone and assume that the user knows what
> he is doing.

Indeed.

The same could be said to apply to any and all environment variables
that might be used by the application (e.g. make, or build.sh, etc.)

As I may have mentioned before my wrapper for build.sh does the
following first to be sure it starts with a 100% reproducible
environment:

#! /bin/ksh

# make sure we start out with a very clean environment!
#
if [ -z "$_MY_BUILD_CLEAN" ]; then
	exec env -i USER=3D${USER} SHELL=3D/bin/ksh _MY_BUILD_CLEAN=3Dtrue "$0" ${=
1+"$@"}
fi

--=20
						Greg A. Woods

H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <woods@robohack.ca>
Planix, Inc. <woods@planix.com>       Secrets of the Weird <woods@weird.com>

--pgp-sign-Multipart_Tue_Mar_27_18:00:56_2007-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: e2mhKrwXwBte9KW0zGXrX6nzG+cD4+Vq

iQA/AwUBRgmiKWZ9cbd4v/R/EQJIeQCffReMAqRakSlVyTEJJv8YV63lJXgAn3Gf
UOvFwS5wiHlAc/GBmkmbZk9c
=X9YQ
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Tue_Mar_27_18:00:56_2007-1--