Subject: install/19054: netbsd-1-6 branch build broken in postinstall
To: None <gnats-bugs@gnats.netbsd.org>
From: None <urban@boquist.net>
List: netbsd-bugs
Date: 11/14/2002 21:52:43
>Number:         19054
>Category:       install
>Synopsis:       netbsd-1-6 branch build broken in postinstall
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 14 12:53:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Urban Boquist
>Release:        NetBSD 1.6_STABLE
>Organization:
Carlstedt Research & Technology AB, Sweden
>Environment:
System: NetBSD lan-gw 1.6_STABLE NetBSD 1.6_STABLE (LAN-GW-$Revision: 1.11 $) #0: Sat Nov  2 13:42:17 CET 2002 root@lan-gw:/usr/src/sys/arch/i386/compile/LAN-GW i386
Architecture: i386
Machine: i386
>Description:
	build.sh fails with:

(/usr/src/tools/obj/tools.NetBSD-1.6_STABLE-i386/bin/nbmake postinstall-check)
nbmake: don't know how to make postinstall-check. Stop

>How-To-Repeat:
	Use build.sh on a netbsd-1-6 tree (with objdirs).
>Fix:
The fix is trivial after comparing to /usr/src/Makefile on a -current system:

Index: Makefile
===================================================================
RCS file: /anoncvs/basesrc/Makefile,v
retrieving revision 1.175.2.1
diff -u -r1.175.2.1 Makefile
--- Makefile	2002/11/01 11:55:04	1.175.2.1
+++ Makefile	2002/11/14 20:50:20
@@ -102,7 +102,7 @@
 	(cd ${.CURDIR}/gnu/usr.bin/texinfo/install-info && ${MAKE} infodir-meta)
 .endif
 .if !defined(DESTDIR) || ${DESTDIR} == "" || ${DESTDIR} == "/"
-	(${MAKE} postinstall-check)
+	(cd ${.CURDIR} && ${MAKE} postinstall-check)
 .endif
 
 postinstall-check:
>Release-Note:
>Audit-Trail:
>Unformatted: