From owner-freebsd-arch@FreeBSD.ORG Wed Oct 1 23:00:32 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 0F17E16A4B3; Wed, 1 Oct 2003 23:00:32 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2B8943FF3; Wed, 1 Oct 2003 23:00:30 -0700 (PDT) (envelope-from adam@migus.org) Received: from garple.migus.org ([68.55.83.94]) by comcast.net (sccrmhc13) with ESMTP id <2003100206003001600knqaue>; Thu, 2 Oct 2003 06:00:30 +0000 Received: by garple.migus.org (Postfix, from userid 80) id 2DCFC8FC30; Thu, 2 Oct 2003 02:00:30 -0400 (EDT) Received: from 192.168.4.2 (SquirrelMail authenticated user adam) by mail.migus.org with HTTP; Thu, 2 Oct 2003 02:00:30 -0400 (EDT) Message-ID: <49955.192.168.4.2.1065074430.squirrel@mail.migus.org> In-Reply-To: <20030927080420.N18558@gamplex.bde.org> References: <20030925092319.H5418@gamplex.bde.org><49939.204.254.155.35.1064593320.squirrel@mail.migus.org> <20030927080420.N18558@gamplex.bde.org> Date: Thu, 2 Oct 2003 02:00:30 -0400 (EDT) From: "Adam C. Migus" To: "Bruce Evans" User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20031002020030_35080" X-Priority: 3 Importance: Normal cc: arch@freebsd.org 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: Thu, 02 Oct 2003 06:00:32 -0000 ------=_20031002020030_35080 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Bruce Evans said: > 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 > This patch works for me, please let me know if there's any problems with it or you'd like a PR. -- Adam - (http://people.migus.org/~amigus/) Migus Dot Org - (http://www.migus.org/) ------=_20031002020030_35080 Content-Type: application/octet-stream; name="config.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="config.diff" PT09PSAvL2RlcG90L3VzZXIvYW1pZ3VzL2ZyZWVic2QtYW1pZ3VzL3NyYy91c3Iuc2Jpbi9jb25m aWcvY29uZmlnLnkjMSAtIC9zcmMvcDQvdXNlci9hbWlndXMvcGVyZm9yY2UuZnJlZWJzZC5vcmcv ZnJlZWJzZC1hbWlndXMvdXNyLnNiaW4vY29uZmlnL2NvbmZpZy55ID09PT0KQEAgLTExOCw2ICsx MTgsOCBAQAogCQl8CiAJQ29uZmlnX3NwZWMgU0VNSUNPTE9OCiAJCXwKKwlJbmNsdWRlCisJCXwK IAlTRU1JQ09MT04KIAkJfAogCWVycm9yIFNFTUlDT0xPTgpAQCAtMTY0LDkgKzE2Niw3IEBACiAJ ICAgICAgPSB7CiAJCSAgICAgIGhpbnRzID0gJDI7CiAJCSAgICAgIGhpbnRtb2RlID0gMTsKLQkg ICAgICAgIH0gfAotCUlOQ0xVREUgSUQKLQkgICAgICA9IHsgaW5jbHVkZSgkMiwgMCk7IH07CisJ ICAgICAgICB9OwogCiBTeXN0ZW1fc3BlYzoKIAlDT05GSUcgU3lzdGVtX2lkIFN5c3RlbV9wYXJh bWV0ZXJfbGlzdApAQCAtMjY1LDYgKzI2NSwxMSBAQAogCQlybWRldigkMik7CiAJCX0gOwogCitJ bmNsdWRlOgorCUlOQ0xVREUgSUQKKwkgICAgICA9IHsgaW5jbHVkZSgkMiwgMCk7IH07CisKKwog JSUKIAogdm9pZAo= ------=_20031002020030_35080--