[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-toolchain
Subject:    Re: make should unset $ENV
From:       James Chacon <jmc () NetBSD ! org>
Date:       2003-08-03 5:11:25
[Download RAW message or body]

"builds" (i.e. building NetBSD) is not the same as, nor has anywhere near
the same scope as changing make's default behavior.

Our make is not only used to build /usr/src. So, making changes to it rather
than build.sh seem misguided at the very least and outright ridiculous 
otherwise.

James


>>> The patch below unsets $ENV at the ealiest opportunity.
>
>>How far down the road of giving make-executed commands a `standard'
>>environment instead of the user's environment do you want to go?
>
>Quite a long way ;-)
>
>>For example, are you going to unset $PATH too?  This is not a
>>rhetorical device; I really don't see why you would unset ENV but not
>>PATH.
>
>Well in my builds at work all trees are built in a "sandbox" that does just 
>that.  Ie. the PATH and environment are sanatized, mk.conf is ignored etc.
>If you want to ensure you can reproduce a build in 5 years, you need to 
>be pretty careful about the build env.  
>Also sanatizing the build env minimizes the build breaks that can otherwise
>occur when folk have setup their environment for building -current, then try 
>to build some old branch.
>
>--sjg
>
>
>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic