diff options
author | Kristof Provost <kp@FreeBSD.org> | 2021-01-19 12:48:31 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2021-01-20 14:16:05 +0000 |
commit | 4046f57601eaa0bcd1ec8496e1280939b948aa46 (patch) | |
tree | a7cec19999f5446278851e057a4a07f5ca37bc3a | |
parent | 34b94d9ebb2d6cb9e97eade82ea5b8ace28a937d (diff) | |
download | src-4046f57601eaa0bcd1ec8496e1280939b948aa46.tar.gz src-4046f57601eaa0bcd1ec8496e1280939b948aa46.zip |
pfctl: Fix NOCLEAN build
We've created a new pf_ruleset.c file for pfctl and no longer use the
kernel vrsion, but the build system doesn't handle this dependency
change correctly. Delete the dependency file if it contains the kernel
version of the file.
(modified from commit c38e59ce1b0a6c030a942d0814d581dbd7f67e3c)
-rw-r--r-- | Makefile.inc1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 5f7462260240..ca842d182af2 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1001,6 +1001,15 @@ _cleanobj_fast_depend_hack: .PHONY ${LIBCOMPAT:D${LIBCOMPAT_OBJTOP}/lib/libomp/.depend.${f}.*}; \ fi .endfor +# 20201224 2afa221f694 Stop sharing pf_ruleset.c with the kernel +.for f in pf_ruleset + @if [ -e "${OBJTOP}"/sbin/pfctl/.depend.${f}.o ] && \ + egrep -qw "sys/netpfil/pf/${f}.c" \ + "${OBJTOP}"/sbin/pfctl/.depend.${f}.o; then + echo "Removing old ${f} dependency file" + rm -rf "${OBJTOP}"/sbin/pfctl/.depend.${f}.o + fi +.endfor _worldtmp: .PHONY @echo |