Subject: Re: [PATCH] Unprivilege build creates MAKEDEV in /usr/src/etc
To: Valeriy E. Ushakov <>
From: None <>
List: tech-toolchain
Date: 04/16/2005 10:36:09
[Note: I'm subscribed to the list, so no need to CC me]

On Sat, Apr 16, 2005 at 01:09:29AM +0400, Valeriy E. Ushakov wrote:
> On Fri, Apr 15, 2005 at 14:23:23 +0200, wrote:
> > Making sets fails when trying to generate MAKEDEV, since MAKEDEV is
> > created in /usr/src/etc where my unprivilege user has nothing to do.
> [...]
> > The files and are present in netbsd-2-0
> > branch but missing in netbsd-2-0-2-RELEASE under
> > gnu/usr.sbin/sendmail/cf/cf.
> You have polluted your src/etc with an non-objdir make (probably b/c
> of etcupdate).  Clean your cvs tree - check those '?' entries in the
> cvs update output.

Unfortunately, this is not the case ;) There is no `make' left. The only
aliens are the ones checked out from netbsd-2-0 branch (for testing, see my other mail) from sendmail directory (others are all netbsd-2-0-2-RELEASE):

----------CUT HERE
? gnu/usr.sbin/sendmail/cf/cf/
? gnu/usr.sbin/sendmail/cf/cf/
cvs update: Updating .
cvs update: Updating bin
----------CUT HERE

And the extract from my log appended to the first email shows that this
is indeed the generated toolchain that is used.

The problem is that by reading the etc/Makefile, one sees that MAKEDEV
is generated directly in ${.TARGET} while `etc-release' is generated
in ${.OBJDIR}/${.TARGET} while the two, as generated objects, are
supposed to be copied via ${INSTALL_OBJ_FILE}: this can not work as is

Secondly, for MAKEDEV only, ${.TARGET} expands to ${.CURDIR}/MAKEDEV,
meaning that preprending ${.OBJDIR} leads to an error.
For `etc-release', ${.TARGET} expands only to the basename of the
target. Is this something related to the UPPERCASE name of MAKEDEV?

Note: I'm using for the case of an inconsistency
between mirrors.

Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>  |
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C