summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-10-25 19:15:29 +0000
committerpeter <peter@FreeBSD.org>2002-10-25 19:15:29 +0000
commitedb58880e4d8d9564ad042d1b4d801464f516816 (patch)
tree2d48a46097540773981243f6f7d4f35a253e35bf /Makefile.inc1
parent187c04923ad905b6b678c0b6819c4ba3933548c5 (diff)
downloadFreeBSD-src-edb58880e4d8d9564ad042d1b4d801464f516816.zip
FreeBSD-src-edb58880e4d8d9564ad042d1b4d801464f516816.tar.gz
Provide a bit of anti-foot-shooting protection. Make sure that in the
non-cross cases without DESTDIR, that the bin/sh that we're about to install works. Otherwise, a 'make installworld' without having already rebooted with a post-signal-fix kernel is a rather big disaster when important things like /bin/sh coredump.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc17
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index c6206c6..e13aaf2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -356,6 +356,13 @@ installcheck:
false; \
fi
.endif
+.if ${TARGET_ARCH} == ${MACHINE_ARCH} && \
+ (!defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/")
+ @echo "Checking to see if your booted kernel is fresh enough.."
+ ${.OBJDIR}/bin/sh/sh -c \
+ 'echo "Testing installed kernel for new sigaction(2) syscall"'
+ @echo "Seems ok.."
+.endif
#
# distributeworld
OpenPOWER on IntegriCloud