From owner-freebsd-current@freebsd.org Mon Jun 13 23:31:39 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63D7AAF0DD1 for ; Mon, 13 Jun 2016 23:31:39 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-211-153.reflexion.net [208.70.211.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 191DB2D08 for ; Mon, 13 Jun 2016 23:31:38 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 10589 invoked from network); 13 Jun 2016 23:32:11 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 13 Jun 2016 23:32:11 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v7.90.3) with SMTP; Mon, 13 Jun 2016 19:31:41 -0400 (EDT) Received: (qmail 22357 invoked from network); 13 Jun 2016 23:31:41 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with SMTP; 13 Jun 2016 23:31:41 -0000 X-No-Relay: not in my network X-No-Relay: not in my network Received: from [192.168.0.105] (ip70-189-131-151.lv.lv.cox.net [70.189.131.151]) by iron2.pdx.net (Postfix) with ESMTPSA id DD76C1C43D0; Mon, 13 Jun 2016 16:31:30 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: mergemaster internally using make [for example] vs. WITH_META_MODE? From: Mark Millard In-Reply-To: <36f0c42f-1ca0-f82c-da5b-74cb8f0240e4@FreeBSD.org> Date: Mon, 13 Jun 2016 16:31:34 -0700 Cc: FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <533A2977-70C7-44A8-9768-840BAAC3F95F@dsl-only.net> References: <7C577F5B-545C-4D70-A78E-A19E35A24592@dsl-only.net> <36f0c42f-1ca0-f82c-da5b-74cb8f0240e4@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2016 23:31:39 -0000 On 2016-Jun-13, at 3:27 PM, Bryan Drewery 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