Subject: bin/14534: src/etc/Makefile constructs KERNOBJDIR incorrectly.
To: None <>
From: None <>
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
>Originator:     Darren Reed
>Release:        NetBSD-current 2001-11-10
System: NetBSD 1.5Y NetBSD 1.5Y (SSPARC.d) #7: Sun Nov 11 00:10:07 EST 2001 sparc
Architecture: sparc
Machine: sparc
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 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
./ -O dir and look for the above.