aboutsummaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-07-14 20:03:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-07-14 20:03:59 +0000
commita985fad6e054cd66331956a8dbb20506c55189e5 (patch)
tree9b9d49111c6579970d8c7e427f1d39c77157dd31 /tools/build
parenta6c3e5fa39a01d63d18b24d9afabfc95c734650e (diff)
downloadsrc-a985fad6e054cd66331956a8dbb20506c55189e5.tar.gz
src-a985fad6e054cd66331956a8dbb20506c55189e5.zip
depend-cleanup.sh: Handle kqtest being renamed to kqueue_test.
bmake will not think that object files such as read.o are out of date due to common.h changing since the dependency is only recorded in .depend.kqtest.read.o in an old object directory. Reviewed by: markj Fixes: 68fe988a40ca kqueue tests: Simplify the test runner Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D35820
Diffstat (limited to 'tools/build')
-rwxr-xr-xtools/build/depend-cleanup.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/build/depend-cleanup.sh b/tools/build/depend-cleanup.sh
index 39b06b45d45f..35066ee7f921 100755
--- a/tools/build/depend-cleanup.sh
+++ b/tools/build/depend-cleanup.sh
@@ -90,3 +90,11 @@ fi
if [ "$MACHINE_ARCH" = "amd64" ]; then
clean_dep lib/libc bcmp c
fi
+
+# 20220524 68fe988a40ca kqueue_test binary replaced shell script
+if stat "$OBJTOP"/tests/sys/kqueue/libkqueue/*kqtest* \
+ "$OBJTOP"/tests/sys/kqueue/libkqueue/.depend.kqtest* >/dev/null 2>&1; then
+ echo "Removing old kqtest"
+ rm -f "$OBJTOP"/tests/sys/kqueue/libkqueue/.depend.* \
+ "$OBJTOP"/tests/sys/kqueue/libkqueue/*
+fi