From owner-freebsd-arch Thu Mar 8 19:54:32 2001 Delivered-To: freebsd-arch@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 9A55137B71A for ; Thu, 8 Mar 2001 19:54:29 -0800 (PST) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (billy-club.village.org [10.0.0.3]) by rover.village.org (8.11.2/8.11.0) with ESMTP id f293sSX44769; Thu, 8 Mar 2001 20:54:28 -0700 (MST) (envelope-from imp@billy-club.village.org) Received: from billy-club.village.org (localhost [127.0.0.1]) by billy-club.village.org (8.11.2/8.8.3) with ESMTP id f293pRs04602; Thu, 8 Mar 2001 20:51:27 -0700 (MST) Message-Id: <200103090351.f293pRs04602@billy-club.village.org> To: Kris Kennaway Subject: Re: Breaking up make.conf Cc: arch@FreeBSD.ORG In-reply-to: Your message of "Thu, 08 Mar 2001 02:08:39 PST." <20010308020838.A67276@mollari.cthul.hu> References: <20010308020838.A67276@mollari.cthul.hu> Date: Thu, 08 Mar 2001 20:51:27 -0700 From: Warner Losh Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20010308020838.A67276@mollari.cthul.hu> Kris Kennaway writes: : Moving port config options to a ports.conf is trivial, since all ports : include ${PORTSDIR}/Mk/bsd.port.mk, so the .include can be done there. Yea. ports are easy :-). : Moving world config options to a world.conf is a bit more tricky, : because we need a way to tell whether we're building in src/ (and not : just using 'make world'). The only way I can think to do this is to : have everything include ../Makefile.inc back up to the root of the : tree, which sets a BUILDING_WORLD variable that is used (in bsd.obj.mk : and possibly other makefiles) to control the inclusion of : /etc/world.conf and /etc/defaults/world.conf. It's a bit messy, but I : can't seem to see any better way. Maybe there's a better way. See my other email on the topic. I don't think that Makefile.inc is going to be a good way to do this. : What do people think of the approach? Is there any easier way I'm : missing? Is world.conf even desirable? I think we should stop thinking of building the world as a special case. It should be part of a more general case. See my other mail for the patches that I'd like to see. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message