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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to