diff options
author | Ed Maste <emaste@FreeBSD.org> | 2017-06-24 18:37:51 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2017-06-24 18:37:51 +0000 |
commit | a28412b0db08a88906b9c6503a1b42fe5fe27013 (patch) | |
tree | 5111a322344111c8ee27a7f3a18712256ab4c372 /Makefile.inc1 | |
parent | e22415906db866616e39c122425f661461f3257d (diff) | |
download | src-test2-a28412b0db08a88906b9c6503a1b42fe5fe27013.tar.gz src-test2-a28412b0db08a88906b9c6503a1b42fe5fe27013.zip |
Clean up stale dependencies after r320278
Our current approach to dependency tracking cannot cope with switching
generated asm syscall stubs into C wrappers. Perpetuate the hack in
Makefile.inc1 to paper over the problem until we can take a holistic
approach to fixing dependency problems.
Differential Revision: https://reviews.freebsd.org/D11344
Notes
Notes:
svn path=/head/; revision=320321
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 585697d38931..a3189cd84644 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -762,14 +762,18 @@ _worldtmp: .PHONY .else rm -rf ${WORLDTMP}/legacy/usr/include .endif -# Dependencies cannot cope with certain source tree changes, particularly -# with respect to removing source files and replacing generated files. -# Handle these cases here in an ad-hoc fashion. -# 20160829 remove stale dependencies for ptrace stub, rewritten in C -# in r305012 -.for f in ptrace + +# Our current approach to dependency tracking cannot cope with certain source +# tree changes, particularly with respect to removing source files and +# replacing generated files. Handle these cases here in an ad-hoc fashion. +# +# Syscall stubs rewritten in C +# Date SVN Rev Syscalls +# 20160829 r305012 ptrace +# 20170624 r320278 fstat fstatat fstatfs getdirentries getfsstat statfs +.for f in fstat fstatat fstatfs getdirentries getfsstat ptrace statfs .if exists(${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.o) - @if egrep -q '/${f}.[sS]' \ + @if egrep -qw '${f}\.[sS]' \ ${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.o; then \ echo Removing stale dependencies for ${f} syscall wrappers; \ rm -f ${OBJTREE}${.CURDIR}/lib/libc/.depend.${f}.* \ |