Subject: [PATCH] gnu/usr.sbin/sendmail/cf/cf/Makefile.sendmail (was: Missing files in netbsd-2-0-2-RELEASE)
To: None <tech-toolchain@NetBSD.org>
From: None <tlaronde@polynum.com>
List: tech-toolchain
Date: 04/16/2005 13:51:40
--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sat, Apr 16, 2005 at 10:53:34AM +0200, tlaronde@polynum.com wrote:
> 
> The problem is perhaps the commands (Makefile.sendmail, __makemc target):
> 	${RM} $@
> 	${CHMODE} ${ROMODE} $@
> 
> since the object are created, logically, in ${.OBJDIR}/$@, and in case
> of unprivileged build this is distinct from SRCDIR, hence the $@ are
> incorrect.

FWIW, here is the simple patch (everything builds OK with the patch for
etc/Makefile and this one).
-- 
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

--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=sendmail

--- gnu/usr.sbin/sendmail/cf/cf/Makefile.sendmail.orig	2005-04-16 12:49:25.000000000 +0200
+++ gnu/usr.sbin/sendmail/cf/cf/Makefile.sendmail	2005-04-16 12:49:59.000000000 +0200
@@ -13,10 +13,10 @@
 __makemc: .USE
 	${_MKTARGET_CREATE}
 .endif
-	${RM} $@
+	${RM} ${.OBJDIR}/$@
 	(cd ${CFDIR}/cf && \
 	    ${TOOL_M4} ${CFDIR}/m4/cf.m4 ${.CURDIR}/${@:R}.mc > ${.OBJDIR}/$@)
-	${CHMOD} ${ROMODE} $@
+	${CHMOD} ${ROMODE} ${.OBJDIR}/$@
 
 .for F in ${FILES:M*.mc}
 ${F:S/.mc/.cf/}: ${F} __makemc

--XsQoSWH+UP9D9v3l--