From owner-freebsd-toolchain@freebsd.org Fri Nov 13 20:04:23 2015 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 2641BA2E010 for ; Fri, 13 Nov 2015 20:04:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 04AB51C97 for ; Fri, 13 Nov 2015 20:04:23 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 025C0A2E00F; Fri, 13 Nov 2015 20:04:23 +0000 (UTC) Delivered-To: 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 DB3FAA2E00E for ; Fri, 13 Nov 2015 20:04:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B42951C93; Fri, 13 Nov 2015 20:04:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id A7B781CC7; Fri, 13 Nov 2015 20:04:22 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 63C6C16ADC; Fri, 13 Nov 2015 20:04:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id LBMJajaibuSB; Fri, 13 Nov 2015 20:04:15 +0000 (UTC) Subject: Re: Meta mode toolchain bootstrapping [was Re: FreeBSD targets/ out-of-date] DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 4C5EE16AD6 To: "Simon J. Gerraty" References: <55E769EF.7090908@FreeBSD.org> <4924.1441306006@chaos> <56450AB8.90402@FreeBSD.org> <13427.1447371730@chaos> <56453F0D.90206@FreeBSD.org> <21917.1447435324@chaos> Cc: brooks@FreeBSD.org, imp@FreeBSD.org, emaste@FreeBSD.org, toolchain@FreeBSD.org From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc X-Enigmail-Draft-Status: N1110 Organization: FreeBSD Message-ID: <5646423C.2000601@FreeBSD.org> Date: Fri, 13 Nov 2015 12:04:12 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <21917.1447435324@chaos> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bUHl3RTkerIAAs5SAHwqaCAPLrDCiSk5F" X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 20:04:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bUHl3RTkerIAAs5SAHwqaCAPLrDCiSk5F Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/13/2015 9:22 AM, Simon J. Gerraty wrote: > Bryan Drewery wrote: >>> WITH_META_FILES should give you improvements already in that regard. >> >> Yes, it's a step. We'll need cookies in a lot of places too. I wish >> WITH_META_MODE had been WITH_META_BUILD or WITH_DIRDEPS_BUILD so I cou= ld >=20 > WITH_DIRDEPS_BUILD would be more accurate. >=20 > Its not too late to rename/add it. My hesitation was really only due to all of the documentation and presentations you've done with it named "WITH_META_MODE". If you don't mind renaming I would like to, if nothing else because it will help remove some confusion on what "meta mode" is when discussing it (since it's both a bmake feature and a new build). >=20 >> check for "META_MODE" in the buildworld world and for discussion sake.= >> It seems I can use ${.MAKE.MODE:M*meta*} but that :U is needed in all >> the uses. I'm not sure yet if :U really is needed. We have some >> ${MK_META_MODE} checks now around some cookies that would need to chan= ge >> for what I'm planning. >=20 > I think I mentioned the otherday of having something like: >=20 > .if ${MK_META_MODE} =3D=3D "yes" > # we can safely use cookies to avoid always > # re-running targets. > META_COOKIE_TOUCH=3D touch ${COOKIE.${.TARGET}:U${.TARGET}} > .else > META_COOKIE_TOUCH=3D > .endif >=20 > in meta.sys.mk so you could just add ${META_COOKIE_TOUCH} > to the end of suitable targets. Great, thanks. Definitely will be useful. >=20 >>> Indeed. As I say, NetBSD have this reasonably sorted. >>> But of course they have 2k line shell script driving a lot of it ;-) >> >> Yes the NetBSD build, behavior wise, really impresses me. >=20 > I prefer building it in meta mode though ;-) >=20 Yes. I do understand the want of a 'make tools' step as well. I just am latching onto the "go into bin/cat, type make, and watch the magic" goal without needing a "oh and btw you sometimes need to build a toolchain if X, Y or Z". I won't push a forced toolchain into meta mode until I have something more smart worked up. --=20 Regards, Bryan Drewery --bUHl3RTkerIAAs5SAHwqaCAPLrDCiSk5F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJWRkI9AAoJEDXXcbtuRpfP5EIH/1JcjjaDZ7PoaMwEbkZC/r2O y86IWQwkmH48QuiJU9DO13nIzY8FREe2wx5C6nHF0rb77/H2Urc8TEEULNGj1E4W 2bQ67erykm/joizyAjBvKKf9/J+6giSMqZMDiNOmeeMaI5JoetrF8ssAMFOvDUT8 rwtCCmLCM2spyLHmrqjHwWsCUqmFpvQkWsw0tf4kNxd7R8H0lFqjXB7L0WYlWjTd qFEYqavdnZLMgyjv/ywX4I80KCyFMWHt9YSrY9Iawnre9l2fhj+DuVyjtNPhWJfL yuJa1vHrOsM3kJ+5G1T5TyRKtCoh5QxkwvGlYR2IECtuu31jVax4ymnFpWdaP3o= =FQFe -----END PGP SIGNATURE----- --bUHl3RTkerIAAs5SAHwqaCAPLrDCiSk5F--