Date: Fri, 16 Aug 2002 20:06:50 -0700 From: Gregory Neil Shapiro <gshapiro@FreeBSD.ORG> To: Mike Makonnen <makonnen@pacbell.net> Cc: Robert Watson <rwatson@FreeBSD.ORG>, freebsd-current@FreeBSD.ORG Subject: Re: why should buildworld touch stuff outside /usr/src ? (was Re: buildworld breakage) Message-ID: <15709.48586.967655.214147@horsey.gshapiro.net> In-Reply-To: <20020816201150.297c1980.makonnen@pacbell.net> References: <20020815121053.6e18dafb.makonnen@pacbell.net> <Pine.NEB.3.96L.1020816085324.11578G-100000@fledge.watson.org> <20020816201150.297c1980.makonnen@pacbell.net>
next in thread | previous in thread | raw e-mail | index | archive | help
makonnen> I would like to be able to continue doing everything short of
makonnen> install as a regular user. Is it really necessary to require root
makonnen> privs to buildworld?
Agreed. I haven't been able to come up with a way to convince make to
adjust the destination path according to the source path. Given this
subset of rules from /usr/src/etc/sendmail/Makefile:
.SUFFIXES: .mc .cf
.mc.cf: ${M4FILES}
${RM} ${.TARGET}
(cd ${.CURDIR} && \
${M4} -D_CF_DIR_=${CFDIR}/ ${SENDMAIL_M4_FLAGS} \
${CFDIR}/m4/cf.m4 ${@:R}.mc) > ${.TARGET}
${CHMOD} ${ROMODE} ${.TARGET}
SENDMAIL_MC= /etc/mail/foo.mc
SENDMAIL_ADDITIONAL_MC= /usr/local/etc/foo.mc
INSTALL_CF= ${SENDMAIL_MC:R}.cf
SENDMAIL_ADDITIONAL_CF= ${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
all: ${INSTALL_CF} ${SENDMAIL_ADDITIONAL_CF}
Currently, /etc/mail/foo.cf and /usr/local/etc/foo.cf will be built.
I'd prefer /usr/obj/usr/src/etc/sendmail/etc/mail/foo.cf and
/usr/obj/usr/src/etc/sendmail/usr/local/etc/foo.cf be created during
buildworld and installed to /etc/mail/ and /usr/local/etc/ respectively
during installworld. (See /usr/src/etc/sendmail/Makefile for install
rules).
Any Makefile gurus out there who can help?
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15709.48586.967655.214147>
