From 9b815a46ef535aea319b87883ba5e4806481c2cf Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 2 Jun 2005 06:08:07 +0000 Subject: [PATCH] Only do the OS version requirements check if DESTDIR is non-existant, empty, or "/". Otherwise we cannot build nrelease on boxes with older kernels. Reported-by: "Simon 'corecode' Schubert" --- Makefile.inc1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 9310682602..f65420b115 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1,6 +1,6 @@ # # $FreeBSD: src/Makefile.inc1,v 1.141.2.62 2003/04/06 19:54:00 dwmalone Exp $ -# $DragonFly: src/Makefile.inc1,v 1.70 2005/06/01 22:59:14 dillon Exp $ +# $DragonFly: src/Makefile.inc1,v 1.71 2005/06/02 06:08:07 dillon Exp $ # # Make command line options: # -DMAKE_KERBEROS5 to build Kerberos5 @@ -407,7 +407,9 @@ installcheck: @pw groupshow authpf || (echo "You may need to run 'make preupgrade' first"; exit 1) @pw groupshow _pflogd || (echo "You may need to run 'make preupgrade' first"; exit 1) @pw groupshow _ntp || (echo "You may need to run 'make preupgrade' first"; exit 1) +.if !defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/" @case `uname -r` in 1.2*|1.3-*|1.3.0-*|1.3.1-*) echo "You must upgrade your kernel to at least 1.3.2 and reboot before you can safely installworld, due to the unsupported ELF ABI tagging" ; exit 1;; esac +.endif # distributeworld # -- 2.41.0