From owner-freebsd-arch@freebsd.org Thu Jan 28 18:41:32 2016 Return-Path: Delivered-To: freebsd-arch@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 5FEB1A705A7 for ; Thu, 28 Jan 2016 18:41:32 +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 4BC141A04 for ; Thu, 28 Jan 2016 18:41:32 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 48FC9A705A6; Thu, 28 Jan 2016 18:41:32 +0000 (UTC) Delivered-To: arch@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 48772A705A5 for ; Thu, 28 Jan 2016 18:41:32 +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 39E461A03 for ; Thu, 28 Jan 2016 18:41:32 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 33C5C1419 for ; Thu, 28 Jan 2016 18:41:32 +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 048831B633 for ; Thu, 28 Jan 2016 18:41:32 +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 A9ByRRJ9YzhD for ; Thu, 28 Jan 2016 18:41:29 +0000 (UTC) Subject: Re: build: FAST_DEPEND default (kernel first, then world) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 8672E1B62D To: arch@FreeBSD.org References: <56A91A1E.4060304@FreeBSD.org> From: Bryan Drewery X-Enigmail-Draft-Status: N1110 Organization: FreeBSD Message-ID: <56AA60D5.7090306@FreeBSD.org> Date: Thu, 28 Jan 2016 10:41:25 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56A91A1E.4060304@FreeBSD.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2016 18:41:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 1/27/16 11:27 AM, Bryan Drewery wrote: > I have been asked to also remove the old mkdep version of 'make > depend'. I should note some of the bugs with the old 'mkdep' method that are fixed by the FAST_DEPEND method, for world. 1. CXXFLAGS/CFLAGS are not passed properly from Makefile.inc1 for external toolchain with gcc. A DEPFLAGS hack was added to address this. The problem being that we pass CFLAGS via CC=3D"${CC} ${CFLAGS}" from Makefile.inc1 rather than a CFLAGS_APPEND that mkdep can pick up. 2. CFLAGS=3D-include was ignored in mkdep until r294370. 3. Avoiding ccache for mkdep involves annoying hacks that broke someone's build (unfixed) 4. ccache can't benefit from mkdep 5. Similar to -include, we only pass certain flags to mkdep which is a maintenance problem. 6. It hides dependency problems due to 'requiring' running 'make depend' before build. A goal with FAST_DEPEND is to not need this, which has proven to be fine. DPSRCS was widely abused and fixed. It should not even exist really, it's not needed. - --=20 Regards, Bryan Drewery -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJWqmDVAAoJEDXXcbtuRpfPd6gH/1EqBsKQGn8qApzVUHJnrzGL lJGbD+zZVY2RjmpChMLYA4cJu0lA9edKB2oj5pIQWXDZK6rO2Q7ekAElVE64gnDw UsMeAi6v0m5/UwSGvLYHW1Nm7q/j0JTcIKXRpbseI3a40Gervdxmswrw0vGGWBEp Hg+nfeiiEFjR84lBvfwynoHjtGb3ovakPo6lGVVNHD5LIpEwuSxaldWb99uoPbDt h5iqWICvVbR4ugxEstGdPnx/6bMof+WngiQssc+8ZEiDQ0uuXneI7fyFaEd3MYCZ +LdswwPA1cJPpDmCif/fRxDWoCAQum0HGPGB2bkXRdwERMOVltRsiDEWr/kM6Ko=3D =3DmCSt -----END PGP SIGNATURE-----