Subject: [PATCH] Unprivilege build creates MAKEDEV in /usr/src/etc
To: None <tech-toolchain@NetBSD.org>
From: None <tlaronde@polynum.com>
List: tech-toolchain
Date: 04/15/2005 14:23:23
--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Apr 14, 2005 at 05:16:30PM +0200, tlaronde@polynum.com wrote:
> Hello,
> 
> I'm compiling NetBSD 2.0.2 userland in the unprivilege case (and outside
> /usr/src by the way).
> Making sets fails when trying to generate MAKEDEV, since MAKEDEV is
> created in /usr/src/etc where my unprivilege user has nothing to do.

I don't understand our this has worked before (since revision has not
changed between 2.0 branch and 2.0.2 RELEASE), but obviously, since
MAKEDEV is installed via ETC_INSTALL_OBJ_FILE this was missing:

(patch attached).

-- 
Thierry Laronde (Alceste) <tlaronde +AT+ polynum +dot+ com>
http://www.kergis.org/  |  http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch

--- /usr/src/etc/Makefile.orig	2005-04-15 14:11:42.000000000 +0200
+++ /usr/src/etc/Makefile	2005-04-15 14:15:15.000000000 +0200
@@ -155,7 +155,8 @@
 	${_MKTARGET_CREATE}
 	MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
 	    NETBSDSRCDIR=${NETBSDSRCDIR:Q} \
-	    awk -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl > ${.TARGET}
+	    awk -f ${.CURDIR}/MAKEDEV.awk ${.CURDIR}/MAKEDEV.tmpl \
+		> ${.OBJDIR}/${.TARGET}
 
 
 RELEASEVARS=	BSDOBJDIR BSDSRCDIR BUILDID \

--x+6KMIRAuhnl3hBn--