Subject: Re: [NEW 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 19:55:25
--uAKRQypu60I7Lcqm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


The previous patch didn't do the trick since ${.TARGET} is expanded
to /usr/src/etc/MAKEDEV i.e ${.CURDIR} is prepended. Is this the
intended behavior? It seems it doesn't make sense. Does this only happen
because the target is UPPERCASE? 

So one needs to prepend ${MAKEOBJDIRPREFIX} instead of ${.OBJDIR}.

- 
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

--uAKRQypu60I7Lcqm
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 16:53:36.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 \
+		> ${MAKEOBJDIRPREFIX}/${.TARGET}
 
 
 RELEASEVARS=	BSDOBJDIR BSDSRCDIR BUILDID \

--uAKRQypu60I7Lcqm--