Re: $PATH and buildworld not getting along

2011-02-20 Thread Ulrich Spörlein
On Fri, 18.02.2011 at 16:36:13 +, Alexander Best wrote: > On Fri Feb 18 11, Ulrich Spörlein wrote: > > On Tue, 15.02.2011 at 21:10:29 +, Alexander Best wrote: > > > hi there, > > > > > > i've run into an issue where $PATH doesn't get discarded during > > > buildworld. is > > > this behavi

Re: $PATH and buildworld not getting along

2011-02-18 Thread Matthew Jacob
I generally don't have problems with make in FreeBSD environments, but often have tons of problems in others, like OpenSolaris, buildroot/busybox, and so on. To solve this, I clean my environment by using this shell script (called cleanenv): #!/bin/sh env -i PATH=/usr/bin:/bin TERM=${TERM} P4

Re: $PATH and buildworld not getting along

2011-02-18 Thread Dimitry Andric
On 2011-02-18 17:36, Alexander Best wrote: ... i'd say no. imo nothing from /usr/local/* should ever be invoked when compiling a target in /usr/src. everything that's needed is in /usr/* (excluding local). so $PATH should unconditionally be set to sth. like: PATH=/sbin:/bin:/usr/sbin:/usr/bin;

Re: $PATH and buildworld not getting along

2011-02-18 Thread Gary Jennejohn
On Fri, 18 Feb 2011 16:36:13 + Alexander Best wrote: > On Fri Feb 18 11, Ulrich Spörlein wrote: > > On Tue, 15.02.2011 at 21:10:29 +, Alexander Best wrote: > > > hi there, > > > > > > i've run into an issue where $PATH doesn't get discarded during > > > buildworld. is > > > this behavio

Re: $PATH and buildworld not getting along

2011-02-18 Thread Alexander Best
On Fri Feb 18 11, Ulrich Spörlein wrote: > On Tue, 15.02.2011 at 21:10:29 +, Alexander Best wrote: > > hi there, > > > > i've run into an issue where $PATH doesn't get discarded during buildworld. > > is > > this behavior to be expected? to reproduce do: > > > > 1) be sure /usr/local/bin com

Re: $PATH and buildworld not getting along

2011-02-18 Thread Ulrich Spörlein
On Tue, 15.02.2011 at 21:10:29 +, Alexander Best wrote: > hi there, > > i've run into an issue where $PATH doesn't get discarded during buildworld. is > this behavior to be expected? to reproduce do: > > 1) be sure /usr/local/bin comes *before* /usr/bin in your $PATH > 2) ln -s /bin/cat /usr/

$PATH and buildworld not getting along

2011-02-15 Thread Alexander Best
hi there, i've run into an issue where $PATH doesn't get discarded during buildworld. is this behavior to be expected? to reproduce do: 1) be sure /usr/local/bin comes *before* /usr/bin in your $PATH 2) ln -s /bin/cat /usr/local/bin/cc (some sh script would be better) 3) cd /usr/src ; make SRCCON