Subject: bin/14394: latest basesrc/etc/Makefile changes breaks "make build" when symlinking usr/src/sys in ${DESTDIR}
To: None <gnats-bugs@gnats.netbsd.org>
From: None <windsor@warthog.com>
List: netbsd-bugs
Date: 10/29/2001 10:56:59
>Number:         14394
>Category:       bin
>Synopsis:       latest basesrc/etc/Makefile changes breaks "make build" when symlinking usr/src/sys in ${DESTDIR}
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 29 08:57:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     windsor@warthog.com
>Release:        NetBSD 1.5Y 20011029
>Organization:
Nose-Pickers Anonymous
>Environment:
System: NetBSD apollo 1.5Y NetBSD 1.5Y (SUN4M_CURRENT) #7: Wed Oct 10 18:05:16 CDT 2001 windsor@apollo:/usr/src/sys/arch/sparc/compile/SUN4M_CURRENT sparc
Architecture: sparc
Machine: sparc
>Description:
when running "make build"...

	install  -l s -o root -g wheel -m 755  usr/src/sys /sys
	install: usr/src/sys: No such file or directory
	*** Error code 1

so I rebuilt and installed install(1) to get a real error message...

	install  -l s -o root -g wheel -m 755  usr/src/sys /sys
	install: symlink usr/src/sys -> /sys/sys: File exists
	*** Error code 1

>How-To-Repeat:
	run "make build"

>Fix:
	apply following patch on basesrc:

--- etc/Makefile.FCS	Mon Oct 29 10:50:08 2001
+++ etc/Makefile	Mon Oct 29 10:51:24 2001
@@ -276,6 +276,7 @@
 distrib-dirs:
 	${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR}
 	${MTREE} -def mtree/NetBSD.dist -p ${DESTDIR}/ -U ${UNPRIVILEGED:D-W}
+	rm -f ${DESTDIR}/sys
 	${INSTALL} ${INSTPRIV} -l s -o root -g wheel -m 755 \
 		usr/src/sys ${DESTDIR}/sys
 
>Release-Note:
>Audit-Trail:
>Unformatted: