Subject: Re: CVS commit: src/etc
To: Ross Harvey <ross@netbsd.org>
From: Christian Limpach <cl@NetBSD.org>
List: source-changes
Date: 10/26/2003 18:44:27
On Sat, Oct 25, 2003 at 12:52:18AM -0000, Ross Harvey wrote:
> > From: "Perry E. Metzger" <perry@piermont.com>
> >
> > I don't think this was right. Could you explain your reasoning?
> >
> > Perry
> 
> Umm, builds are broken without my change? :-) Builds work with it? :-) 

are you building with an objdir?  because even with your change, builds
are still broken:
distribution does install-etc-files with pwd = ${.CURDIR}
INSTALL_FILE won't find MAKEDEV since MAKEDEV is in ${.OBJDIR}

It works after applying the following patch:

Index: etc/Makefile
===================================================================
RCS file: /cvs/netbsd/src/etc/Makefile,v
retrieving revision 1.260
diff -u -r1.260 Makefile
--- etc/Makefile	26 Oct 2003 07:25:34 -0000	1.260
+++ etc/Makefile	26 Oct 2003 18:39:57 -0000
@@ -117,7 +117,7 @@
 ETC_PKG=-T etc_pkg
 BASE_PKG=-T base_pkg
 ETC_INSTALL_FILE=cd ${.CURDIR} && ${INSTALL_FILE} ${ETC_PKG}
-ETC_INSTALL_OBJ_FILE=             ${INSTALL_FILE} ${ETC_PKG}
+ETC_INSTALL_OBJ_FILE=cd ${.OBJDIR} && ${INSTALL_FILE} ${ETC_PKG}
 ETC_INSTALL_LINK=cd ${.CURDIR} && ${INSTALL_LINK} ${ETC_PKG}
 ETC_INSTALL_SYMLINK=cd ${.CURDIR} && ${INSTALL_SYMLINK} ${ETC_PKG}

    christian