From owner-freebsd-arch Thu Mar 8 22:50:31 2001 Delivered-To: freebsd-arch@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 0D85C37B880 for ; Thu, 8 Mar 2001 22:50:29 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f296o1A49427; Thu, 8 Mar 2001 22:50:01 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200103090354.f293sss04615@billy-club.village.org> Date: Thu, 08 Mar 2001 22:49:42 -0800 (PST) From: John Baldwin To: Warner Losh Subject: Re: Breaking up make.conf Cc: (Kris Kennaway) , arch@FreeBSD.org, "Rodney W. Grimes" Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 09-Mar-01 Warner Losh wrote: > In message John Baldwin writes: >: What if I want to use /etc/release.conf for clean release builds and >: /etc/currentworld.conf for current, etc.? If it's a tweakable variable name >: in >: /etc/make.conf (or overridable on the command line to make buildworld of >: course) then the ../Makefile.inc hack will allow me to stick this file >: anywhere >: with any name, rather than forcing it to be in the path of the source tree. > > That's why I like the idea of having a etc/make.conf in the tree and > have it use that file. This file wouldn't be checked into CVS, but > would be the user's responsibility to add to the tree in some > fashion. Given the patches I posted, they have the nice property that > if the user fails to do this, /etc/make.conf is picked up instead. I would prefer to be able to set a variable for its location so I can put it anywhwere, so as to be the most flexible. Requiring it to be higher up in the directory hierarchy at some point limits the places it can be put. > That would allow you to easily manage these things. It would also > allow you to have multiple -current and stable trees checked out under > one root and use the same config file or different config files for > them without having to remember to set special variables. Well, if you have a reasonable default, then the all-using-one-config-file case becomes very easy, because you just use the default name. You only set special variables if you want multiple config files. You could have WORLD_CONF ?= /etc/world.conf (or /etc/make/world.conf if you want a generic place for make configuration files to live) or some such. > As a side effect, we can reduce the name space polution problem that > we have with bsd.own.mk and bsd.cpu.mk being included from > /usr/share/mk/sys.mk. They have bugged me (and others) for a long > time. Yes, this would be nice. > Warner -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message