From owner-freebsd-arch Fri Oct 8 23:13:37 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 45B2F158BE for ; Fri, 8 Oct 1999 23:13:34 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id IAA06324 for ; Sat, 9 Oct 1999 08:13:33 +0200 (CEST) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id IAA50934 for freebsd-arch@freebsd.org; Sat, 9 Oct 1999 08:13:33 +0200 (MET DST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id DE73815140; Fri, 8 Oct 1999 23:13:21 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from d146.syd2.zeta.org.au (beefcake.zeta.org.au [203.26.10.12]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id QAA22805; Sat, 9 Oct 1999 16:14:21 +1000 Date: Sat, 9 Oct 1999 16:12:10 +1000 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Warner Losh Cc: Ruslan Ermilov , "Daniel C. Sobral" , committers@freebsd.org, arch@freebsd.org Subject: Re: /etc/make.conf abuse In-Reply-To: <199910081617.KAA67936@harmony.village.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 8 Oct 1999, Warner Losh wrote: > I think /usr/src, for all valuses of /usr/src, is the right place to > do this. Do it like the ports tree does things now. I.e., it should work in in src tree, and in as many src subtrees as possible. > However, I'd be > loathe to force people to set BSDSRCDIR when building the system just > to get this. It would allow people to have different build trees with > different settings on the same machine, which is desirable. eg I have I agree. The problem is that the default configuration files and .mk files are hard to locate when building deep in a src tree or in an incomplete tree (especially when the incomplete tree doesn't contain the files). The ".." searching hacks that I added to bsd.kmod.mk can probably be improved. They currently know too much about the layout of sys/modules and search up through only 2 or 3 ".."'s. Naively searching higher is worse than useless since it is too easy to search out of the tree and end up in a different tree (a different tree is more likely to have wrong defaults than the standard places). This can be improved by putting marker files at critical places in the tree (especially at the top), so that a searcher can know if it found a critical place. If no critical place is found before reaching "/", then use standard defaults (/usr/share/mk, etc.). For traversing trees, the search should only be done at the top level, only if the user hasn't specified the root of the src tree that contains the defaults. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message