Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Aug 2015 19:50:30 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        Garrett Cooper <yaneurabeya@gmail.com>, FreeBSD current <freebsd-current@FreeBSD.org>
Subject:   Re: amd64 base/head r284673 fails to build on amd64 base/head r284639, pilot error?
Message-ID:  <4866.1438483830@chaos>
In-Reply-To: <55B7FB1D.2010008@FreeBSD.org>
References:  <alpine.BSF.2.20.1506211155290.69928@mail.fig.ol.no> <65E0AFBE-0E73-42C9-A140-4AC617500E73@gmail.com> <8737.1434922152@chaos> <55B7F36A.4070201@FreeBSD.org> <55B7FB1D.2010008@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bryan Drewery <bdrewery@FreeBSD.org> wrote:
> 1: subdir make
>   src.conf: STRIP=
>   rescue/rescue% make all
>   -> make -f OBJDIR/rescue.mk
> 
>  STRIP= is not passed down into rescue.mk, resulting in 'strip rescue'.

unless src.conf does .export STRIP, or submake reads src.conf for itself
this isn't surprising.
The result probably depends on whether /usr/share/mk or src/share/mk is
used.

> 
> 2. subdir make STRIP env override
>   rescue/rescue% make all STRIP=

Setting STRIP= (or anything) like that causes vastly different behavior
compared to 

env STRIP= make
or setting STRIP= in a makefile (eg src.conf)

When you do 'make STRIP=' the variable is handled differently,
it is put into a special context CMD which has higest priority
and is explicityl passed on to submakes via MAKEFLAGS.
The goal is to treat the setting as immutable (to the extent possible)
as required by posix.


>  STRIP= is passed down resulting in ' rescue'.
> 
> 3: buildworld
>  STRIP= from src.conf is passed down, resulting in ' rescue'.

buildworld tries to ensure that the tree's share/mk is used
so src.sys.mk is used and /etc/src.conf likely to be read.



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