From edb58880e4d8d9564ad042d1b4d801464f516816 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 25 Oct 2002 19:15:29 +0000 Subject: 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. --- Makefile.inc1 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.inc1') 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 -- cgit v1.1