Subject: toolchain/28616: build failed for current
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 12/12/2004 01:45:01
>Number:         28616
>Category:       toolchain
>Synopsis:       build failed for current
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 12 01:45:00 +0000 2004
>Originator:     Vsevolod Stakhov
>Release:        current
NetBSD rostov 2.99.11 NetBSD 2.99.11 (CEBKA) #0: Sat Dec 11 21:59:41 MSK 2004 root@rostov:/usr/obj/sys/arch/i386/compile/CEBKA i386
While building world in current there is an error in locating sbin/chown:
*** Failed target:  chown_make
*** Failed command: cd chown; printf '.PATH:
                 /usr/src/sbin/chown\n.CURDIR:= /usr/src/sbin/chown\n.include
                 "${.CURDIR}/Makefile"\n' |
                 /usr/src/tooldir.NetBSD-2.99.11-i386/bin/nbmake -f-
                 CRUNCHEDPROG=1 DBG="-Os" depend

So this was during building rescue. Actually, chown is placed in usr.sbin/chown, but in this case it tries to find it in sbin. Copying usr.sbin/chown to sbin/ helped to solve the problem.
We can see in rescue/obj/ such definitions of chown rule:
chown_OBJPATHS= chown/

But it should be:

In /usr/src/rescue/list we can find such kind of definition:

SRCDIRS usr.sbin

PROG    chown           chgrp

So, all should be ok, but it doesn't.
Build current.