From owner-svn-src-head@freebsd.org Sat Jun 16 04:36:44 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 706BA10092E6; Sat, 16 Jun 2018 04:36:44 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CA0FA73551; Sat, 16 Jun 2018 04:36:43 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id U2uOfDEdSuYopU2uPf0W5W; Fri, 15 Jun 2018 22:33:54 -0600 X-Authority-Analysis: v=2.3 cv=GopsBH9C c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=7mUfYlMuFuIA:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=OF3UqqUGJZTPdCVrdNoA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id A2642FD; Fri, 15 Jun 2018 21:33:51 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id w5G4XpgF039543; Fri, 15 Jun 2018 21:33:51 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id w5G4XpjI039540; Fri, 15 Jun 2018 21:33:51 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201806160433.w5G4XpjI039540@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Bryan Drewery cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r335244 - head In-Reply-To: Message from Bryan Drewery of "Sat, 16 Jun 2018 00:35:19 -0000." <201806160035.w5G0ZJfd066325@repo.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 15 Jun 2018 21:33:51 -0700 X-CMAE-Envelope: MS4wfHgVVmpDSGedzQX0L2I6f9jUzd8G/vQ9OBrfGgJ3Xe+fAnYhQ3XefOcYRsjgePUPW+G7/1z9kGV8ojXjOLmE+i89PsGbKdfr20IRyzWseQtDHEpDGJtH GWCUm6K8ja1/Q/ypxAwo2euJThzKClN1ghXUI7f9qsyyQSDGD0NQ80MNkKcb6CoPryjjoQ/nDzP0zj1spMqTGD6AfG90s29XeDh20asLsKpMO3D18sZjjFNQ MbpuyWmTrIG1UotaMDgUXcu1270xKWoT29jiQQu/2W0uVRIi8/1SbjLVfG0MCRGo X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jun 2018 04:36:44 -0000 In message <201806160035.w5G0ZJfd066325@repo.freebsd.org>, Bryan Drewery writes : > Author: bdrewery > Date: Sat Jun 16 00:35:19 2018 > New Revision: 335244 > URL: https://svnweb.freebsd.org/changeset/base/335244 > > Log: > Assert that a build is done before an install. > > This should also catch cases where the wrong MAKEOBJDIRPREFIX is used for > install. > > MFC after: 2 weeks > Sponsored by: Dell EMC > > Modified: > head/Makefile.inc1 > > Modified: head/Makefile.inc1 > ============================================================================= > = > --- head/Makefile.inc1 Fri Jun 15 23:42:22 2018 (r335243) > +++ head/Makefile.inc1 Sat Jun 16 00:35:19 2018 (r335244) > @@ -89,7 +89,10 @@ MK_GCC_BOOTSTRAP= no > .if make(installworld) || make(install) || make(distributeworld) || \ > make(stageworld) > .-include "${OBJTOP}/compiler-metadata.mk" > +.if !defined(_LOADED_COMPILER_METADATA) > +.error A build is required first. You may have the wrong MAKEOBJDIRPREFIX s > et. > .endif > +.endif > > # Pull in COMPILER_TYPE and COMPILER_FREEBSD_VERSION early. Pull it from the > # tree to be friendlier to foreign OS builds. It's safe to do so uncondition > ally > @@ -195,6 +198,7 @@ compiler-metadata.mk: .PHONY .META > @: > ${.TARGET} > @echo ".info Using cached compiler metadata from build at $$(hostname) > on $$(date)" \ > > ${.TARGET} > + @echo "_LOADED_COMPILER_METADATA=t" >> ${.TARGET} > .for v in ${_COMPILER_METADATA_VARS} > @echo "${v}=${${v}}" >> ${.TARGET} > .endfor > Hi Bryan, This broke poudriere. I don't update my poudriere jails in the traditional sense. I buildworld on one of my poudriere build machine, installworld & kernel, then update jail using poudriere jail -j HEADamd64 -u. To create my jails I do the following: poudriere jail -c -m src=/opt/src/svn-current -j HEADi386 -a i386 poudriere jail -c -m src=/opt/src/svn-current -j HEADamd64 The error that poudriere jail -j HEADamd64 -u produces is: [00:00:00] Upgrading using src=/opt/src/svn-current [00:00:00] Copying /opt/src/svn-current to /poudriere/amd64/jails/HEADam d64/usr/src... done [00:00:50] Starting make installworld --- installworld --- make[1]: "/export/obj/opt/src/svn-current/amd64.amd64/compiler-metadata. mk" line 1: Using cached compiler metadata from build at cwsys on Fri Jun 15 16:34:46 PDT 2018 make[1]: "/opt/src/svn-current/Makefile.inc1" line 93: A build is required first. You may have the wrong MAKEOBJDIRPREFIX set. *** [installworld] Error code 1 make: stopped in /opt/src/svn-current 1 error make: stopped in /opt/src/svn-current [00:00:50] Error: Failed to 'make installworld' To build the object I do a standard buildworld and buildkernel first (and install on the host system first). -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.