Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Nov 2015 14:07:18 -0800
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r290423 - head
Message-ID:  <563D2496.8050707@FreeBSD.org>
In-Reply-To: <201511052209.tA5M90Qd048188@repo.freebsd.org>
References:  <201511052209.tA5M90Qd048188@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJWPSSXAAoJEDXXcbtuRpfPGrsH/2+oWMSf2CqXpoND/nwJZQqm
3Q4lzANtI6jG81F652uI9jZmon7CWDsEaF70WqHTVQUPmJwl9hQYJ4ySKgBFF/s7
mZ63+pcJjw1WsVVdI1W0doQEd3yBOEb6E4Uw9HEVPmCJ/ihomtnAwLAcajlryyXW
b3vQp6TAaiBPEOsW5wamH6R8z9vJU1I2/mlYIVrZHtA1I6dF79KJLVAQjQY7ngac
YG627ow49Zr9/OLfp1HLNUoK5pSLPy370tHyCiGBKKncLJmUPxHd3yP2YEyRmh12
N/LQOUnoJndxBJ7KbPZH2RJ1IVTvZaZ3PRpnV82mdFawClVIc/uTc2Pfvyl4cjg=
=6ycP
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?563D2496.8050707>