From owner-freebsd-current Fri Aug 16 20: 7: 0 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF7C637B400; Fri, 16 Aug 2002 20:06:56 -0700 (PDT) Received: from horsey.gshapiro.net (horsey.gshapiro.net [209.220.147.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A36943E70; Fri, 16 Aug 2002 20:06:56 -0700 (PDT) (envelope-from gshapiro@gshapiro.net) Received: from horsey.gshapiro.net (gshapiro@localhost [IPv6:::1]) by horsey.gshapiro.net (8.12.6.Beta0/8.12.6.Beta0) with ESMTP id g7H36p3J069667 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 16 Aug 2002 20:06:51 -0700 (PDT) Received: (from gshapiro@localhost) by horsey.gshapiro.net (8.12.6.Beta0/8.12.6.Beta0/Submit) id g7H36pka069664; Fri, 16 Aug 2002 20:06:51 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15709.48586.967655.214147@horsey.gshapiro.net> Date: Fri, 16 Aug 2002 20:06:50 -0700 From: Gregory Neil Shapiro To: Mike Makonnen Cc: Robert Watson , freebsd-current@FreeBSD.ORG Subject: Re: why should buildworld touch stuff outside /usr/src ? (was Re: buildworld breakage) In-Reply-To: <20020816201150.297c1980.makonnen@pacbell.net> References: <20020815121053.6e18dafb.makonnen@pacbell.net> <20020816201150.297c1980.makonnen@pacbell.net> X-Mailer: VM 7.03 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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