Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2016 16:31:34 -0700
From:      Mark Millard <markmi@dsl-only.net>
To:        Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: mergemaster internally using make [for example] vs. WITH_META_MODE?
Message-ID:  <533A2977-70C7-44A8-9768-840BAAC3F95F@dsl-only.net>
In-Reply-To: <36f0c42f-1ca0-f82c-da5b-74cb8f0240e4@FreeBSD.org>
References:  <7C577F5B-545C-4D70-A78E-A19E35A24592@dsl-only.net> <36f0c42f-1ca0-f82c-da5b-74cb8f0240e4@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-Jun-13, at 3:27 PM, Bryan Drewery <bdrewery@FreeBSD.org> wrote:

> On 6/11/2016 7:28 PM, Mark Millard wrote:
>> mergemaster [as an example] has code like:
>>=20
>>> # grep -i make /usr/sbin/mergemaster | more
>> . . .
>>> MM_MAKE=3D"make ${ARCHSTRING} -m ${SOURCEDIR}/share/mk"
>>>        ${MM_MAKE} DESTDIR=3D${DESTDIR} distrib-dirs >/dev/null
>>>      ${MM_MAKE} DESTDIR=3D${TEMPROOT} distrib-dirs >/dev/null &&
>>>      ${MM_MAKE} _obj SUBDIR_OVERRIDE=3Detc >/dev/null &&
>>>      ${MM_MAKE} everything SUBDIR_OVERRIDE=3Detc >/dev/null &&
>>>      ${MM_MAKE} DESTDIR=3D${TEMPROOT} distribution >/dev/null;} ||
>> . . .
>>=20
>> If one is using WITH_META_MODE=3D for buildworld, buidlkernel, =
installkernel, installworld what is appropriate for scripts or other =
uses of make for other makefile-targets?
>>=20
>> Are there explicit mixes of using WITH_META_MODE=3D for some makefile =
targets and not using WITH_META_MODE=3D for other makefile targets that =
need to be avoided? Does one need to force some scripts to use [or not =
use] WITH_META_MODE=3D for their "internal" make usage?
>>=20
>=20
> Is there an actual bug with mergemaster with WITH_META_MODE?
>=20
>=20
> --=20
> Regards,
> Bryan Drewery

I do not know. I was not sure if lack of WITH_META_MODE=3Dyes for =
mergemaster's internal make uses might mess up later make commands that =
use WITH_META_MODE=3Dyes for explicit make activities. Overall that =
would be a mix of with and without.

As stands I use the following script for mergemaster (TARGET_ARCH=3Damd64 =
example):

# more ~/sys_build_scripts.amd64-host/mergemaster_amd64-amd64-host.sh=20
script ~/sys_typescripts/typescript_mergemaster_amd64-amd64-host-$(date =
+%Y-%m-%d:%H:%M:%S) \
env __MAKE_CONF=3D"/root/src.configs/make.conf" =
SRC_ENV_CONF=3D"/root/src.configs/src.conf.amd64-clang-bootstrap.amd64-hos=
t" \
MAKEOBJDIRPREFIX=3D"/usr/obj/clang/amd64.amd64" \
mergemaster -A amd64 $*

I've not added WITH_META_MODE=3Dyes to the env yet.


I've been wondering if I should add WITH_META_MODE=3Dyes to such scripts =
when the matching "make" script uses WITH_META_MODE=3Dyes --such as:

# more =
~/sys_build_scripts.amd64-host/make_amd64_nodebug_clang_bootstrap-amd64-ho=
st.sh=20
kldload -n filemon && \
script =
~/sys_typescripts/typescript_make_amd64_nodebug_clang_bootstrap-amd64-host=
-$(date +%Y-%m-%d:%H:%M:%S) \
env __MAKE_CONF=3D"/root/src.configs/make.conf" =
SRC_ENV_CONF=3D"/root/src.configs/src.conf.amd64-clang-bootstrap.amd64-hos=
t" \
WITH_META_MODE=3Dyes \
MAKEOBJDIRPREFIX=3D"/usr/obj/clang/amd64.amd64" \
make $*


[Based on current behavior I normally only use WITH_META_MODE=3Dyes for =
the host targeting its own architecture.]


=3D=3D=3D
Mark Millard
markmi@dsl-only.net




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?533A2977-70C7-44A8-9768-840BAAC3F95F>