Subject: bin/14534: src/etc/Makefile constructs KERNOBJDIR incorrectly.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <darrenr@reed.wattle.id.au>
List: netbsd-bugs
Date: 11/11/2001 01:24:24
>Number:         14534
>Category:       bin
>Synopsis:       src/etc/Makefile constructs KERNOBJDIR incorrectly.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Nov 10 17:38:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Darren Reed
>Release:        NetBSD-current 2001-11-10
>Organization:
>Environment:
System: NetBSD ssparc.reed.wattle.id.au 1.5Y NetBSD 1.5Y (SSPARC.d) #7: Sun Nov 11 00:10:07 EST 2001 darrenr@ssparc.reed.wattle.id.au:/root/SSPARC.d sparc
Architecture: sparc
Machine: sparc
>Description:
In src/etc/Makefile, we have:
#   KERNOBJDIR is the kernel build directory, it defaults to
#       ${KERNSRCDIR}/arch/${MACHINE}/compile, but can be overridden.
Leading to build.sh doing this:
obj ===> etc
mkdir -p /data3/netbsd/src/sys/arch/sparc/compile

whereas MAKEOBJDIRPREFIX is /usr/obj/obj.
This is not-critical only because "-p" is used.  While it normally hides
a "directory already exists" error, in this case it is a "read-only" filesystem
error.
>How-To-Repeat:
./build.sh -O dir and look for the above.
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: