svn commit: r290423 - head

Bryan Drewery bdrewery at FreeBSD.org
Fri Nov 6 22:07:17 UTC 2015


On 11/5/2015 2:09 PM, Bryan Drewery wrote:
> Author: bdrewery
> Date: Thu Nov  5 22:09:00 2015
> New Revision: 290423
> URL: https://svnweb.freebsd.org/changeset/base/290423
> 
> Log:
>   Allow 'make buildenv' to default to the caller's shell by using SHELL.

Sigh. ZSH does really stupid things. All of these variables are
basically forced to be some internal value and cannot be overridden:

CPUTYPE MACHTYPE OSTYPE VENDOR TMPPREFIX TIMEFMT WATCHFMT LISTMAX
KEYTIMEOUT LOGCHECK MAILCHECK

This means CPUTYPE= has no affect in buildenv and you end up with the
host's value there, which breaks compiling.

From ZSH (not buildenv):
# env|grep CPUTYPE
# echo $CPUTYPE
amd64
# env -i /usr/local/bin/zsh -c env|grep CPUTYPE
# env -i CPUTYPE=foo /usr/local/bin/zsh -c env|grep CPUTYPE
CPUTYPE=amd64

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20151106/d514b510/attachment.bin>


More information about the svn-src-all mailing list