svn commit: r296646 - in head: . share/mk sys/conf

Bryan Drewery bdrewery at FreeBSD.org
Fri Mar 11 04:11:58 UTC 2016


On 3/10/2016 8:09 PM, Bryan Drewery wrote:
> Author: bdrewery
> Date: Fri Mar 11 04:09:56 2016
> New Revision: 296646
> URL: https://svnweb.freebsd.org/changeset/base/296646
> 
> Log:
>   FAST_DEPEND: Use .dinclude to enable full .depend logic in bmake.
>   
>   The inclusion of .MAKE.DEPENDFILE (.depend) has special logic in make
>   to ignore stale/missing dependencies.  bmake 20160220 added a '.dinclude'
>   directive that uses the special logic for .depend when including the file.
>   
>   This fixes a build error when a file is moved or deleted that exists in a
>   .depend.OBJ file.  This happened in r292782 when sha512c.c "moved" and an
>   incremental build of lib/libmd would fail with:
>     make: don't know how to make /usr/src/lib/libcrypt/../libmd/sha512c.c. Stop
>   
>   Now this will just be seen as a stale dependency and cause a rebuild:
>     make: /usr/obj/usr/src/lib/libmd/.depend.sha512c.o, 13: ignoring stale .depend for /usr/src/lib/libcrypt/../libmd/sha512c.c
>     --- sha512c.o ---
>     ...
>   This rebuild will only be done once since the .depend.sha512c.o will
>   be updated on the build with the -MF flags.
>   
>   This also removes -MP being passed for the .depend.OBJ generation (which
>   would create fake targets for system headers) since the logic is no
>   longer needed to protect from missing files.
>   
>   Sponsored by:	EMC / Isilon Storage Division
> 
> Modified:
>   head/Makefile
>   head/share/mk/bsd.dep.mk
>   head/sys/conf/kern.post.mk

This was the last piece needed before it could be enabled by default.  I
plan to enable it by default tomorrow, and remove the option and the
mkdep handling entirely soon after (as brought up on arch@).

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20160310/12b6a5ef/attachment-0001.sig>


More information about the svn-src-head mailing list