$PATH and buildworld not getting along

Alexander Best arundel at freebsd.org
Tue Feb 15 21:10:29 UTC 2011


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 SRCCONF=/dev/null __MAKE_CONF=/dev/null buildworld
4) see how buildworld fails, because cat(1) gets invoked instead of cc(1).

... buildkernel on the other hand seems to be immune to such an issue.

cheers.
alex

-- 
a13x


More information about the freebsd-current mailing list