From owner-freebsd-toolchain@freebsd.org Sat Nov 11 22:51:49 2017 Return-Path: Delivered-To: freebsd-toolchain@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 9A51FE4E86D for ; Sat, 11 Nov 2017 22:51:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-142.reflexion.net [208.70.210.142]) (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 4B9BF71BF9 for ; Sat, 11 Nov 2017 22:51:48 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 8597 invoked from network); 11 Nov 2017 22:25:07 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 11 Nov 2017 22:25:07 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Sat, 11 Nov 2017 17:25:07 -0500 (EST) Received: (qmail 6534 invoked from network); 11 Nov 2017 22:25:07 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 11 Nov 2017 22:25:07 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 00BCDEC7925; Sat, 11 Nov 2017 14:25:06 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: -r325627 of head: mergemaster: Creating objdir after objdir after . . . From: Mark Millard In-Reply-To: Date: Sat, 11 Nov 2017 14:25:06 -0800 Cc: FreeBSD Toolchain , FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: References: <08a57ee2-ae3e-b8ea-73a3-b6533b0fd206@FreeBSD.org> <202f44cb-39d6-99af-9804-582825ae5c07@FreeBSD.org> <0c9c20c2-1d34-77e8-1620-fb99881a34d1@FreeBSD.org> To: Bryan Drewery X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2017 22:51:49 -0000 On 2017-Nov-11, at 8:47 AM, Bryan Drewery wrote: >> On Nov 11, 2017, at 00:51, Mark Millard wrote: >>=20 >>> On 2017-Nov-10, at 5:16 PM, Bryan Drewery = wrote: >>>=20 >>>> On 11/10/2017 8:30 AM, Bryan Drewery wrote: >>>> . . .=20 >>>> In fact it's similar to my META_MODE whitelist in the top-level >>>> Makefile. There's quite a few targets we don't care for AUTO_OBJ = on, >>>> like distribute*, installworld, installkernel, etc. >>>=20 >>> r325697 should fix it. >>=20 >> Most of the messages are gone in -r325700 . But there was: >>=20 >> *** Creating the temporary root environment in /var/tmp/temproot >> *** /var/tmp/temproot ready for use >> *** Creating and populating directory structure in /var/tmp/temproot >>=20 >> [Creating objdir /usr/obj/usr/src/arm64.aarch64...] >> [Creating objdir /usr/obj/usr/src/arm64.aarch64/etc...] >> [Creating objdir /usr/obj/usr/src/arm64.aarch64/etc/sendmail...] >>=20 >> (No more objdir lines after that.) >=20 > Yea this is expected. Mergemaster runs =E2=80=98make obj=E2=80=99 in = etc/. Hmm. I looking I see the: ${MM_MAKE} _obj SUBDIR_OVERRIDE=3Detc >/dev/null && ${MM_MAKE} everything SUBDIR_OVERRIDE=3Detc >/dev/null && Its too bad that the mergemaster man page makes no reference to depending on MAKEOBJDIRPREFIX (or its default) and the tree contents that it points to. If one has more than one tree around then one should be picking the right one --but nothing in the man page suggests that. It also would not play well with not having that build tree available at the time of a mergemaster. The 20130425 UPDATING entry does note use of MAKEOBJDIRPREFIX. It notes that mergemaster makes use of the specific, bootstrapped mtree and install. Does that mean that a cross-build needs mergemaster to be executed on the cross-build host instead of on the target system? I do not see the man page as well-covering such questions for the proper usage technique. Dependency on /usr/src (by default or an alternate via -m) is clear from the man page. So, having a proper vintage of such and having mergemaster use it was clear. But such seems to not be sufficient, which was not clear. > The top-level check-old objdir creation is unavoidable right now... = you can use -DNO_OBJ if you want to avoid it. >=20 >>=20 >>>>=20 >>>>> However from reading mergemaster.sh it seems that _at least_ >>>>> /usr/obj/usr/src/etc/sendmail would be created before my changes. = Can >>>>> someone confirm that on stable/ or something? >>>>>=20 >>>>>>=20 >>>>>> (MAKEOBJDIRPREFIX=3D does control the path-prefix used >>>>>> if specified in the env list before mergemaster.) >>>>>>=20 >>=20 =3D=3D=3D Mark Millard markmi at dsl-only.net