From owner-freebsd-arch@FreeBSD.ORG Fri Sep 26 15:16:04 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B14F716A4B3; Fri, 26 Sep 2003 15:16:04 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBC2F4400E; Fri, 26 Sep 2003 15:16:00 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id IAA31314; Sat, 27 Sep 2003 08:15:51 +1000 Date: Sat, 27 Sep 2003 08:14:30 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Adam C. Migus" In-Reply-To: <49939.204.254.155.35.1064593320.squirrel@mail.migus.org> Message-ID: <20030927080420.N18558@gamplex.bde.org> References: <20030925092319.H5418@gamplex.bde.org> <49939.204.254.155.35.1064593320.squirrel@mail.migus.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: arch@FreeBSD.org cc: John Baldwin Subject: Re: sys/conf/DEFAULT[S] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2003 22:16:04 -0000 On Fri, 26 Sep 2003, Adam C. Migus wrote: > Bruce Evans said: > > Do we actually gave the abiltity to include other config files? It > > was > > quite broken last time I tried to use it for anything more > > complicated > > than the example in "SMP". > > I use the include feature quite a bit, nested in some cases. It > works great for me for creating combinations of debug, diskless, mac > and smp kernels for example. My example written last Februry still shows that even simple includes don't work: %%% Script started on Tue Feb 25 14:16:01 2003 ttyp0:bde@besplex:/usr/src/sys/i386/conf> cat FOOBAR include FOO ttyp0:bde@besplex:/usr/src/sys/i386/conf> cat FOO machine i386 cpu I486_CPU ident FOO ttyp0:bde@besplex:/usr/src/sys/i386/conf> config FOOBAR config: FOO:1: syntax error ttyp0:bde@besplex:/usr/src/sys/i386/conf> config FOO Kernel build directory is ../compile/FOO Don't forget to do a ``make depend'' ttyp0:bde@besplex:/usr/src/sys/i386/conf> exit Script done on Tue Feb 25 14:16:23 2003 %%% Similarly with FOOBAR's contents identical with SMP's contents except for including FOO instead of GENERIC. So the bug must be related to the file being included ... adding an empty or comment line to the beginning of FOO works around it. I guess there is an off-by-1 byte or line error switching the input stream. Bruce