Subject: Re: effective configuration from config(8) after "no foo"
To: Rhialto <rhialto@falu.nl>
From: Quentin Garnier <cube@cubidou.net>
List: current-users
Date: 12/20/2007 21:22:55
--rBVNTu5JXDAWzN2S
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 20, 2007 at 08:10:06PM +0100, Rhialto wrote:
> On Thu 20 Dec 2007 at 02:36:14 +0100, Quentin Garnier wrote:
> > Merely configuring this:
> >=20
> > include "arch/i386/conf/GENERIC"
> > no mca
> >=20
> > works, so I'm wondering what your configuration file exactly looks like.
>=20
> I've fiddled with it some more, but I can re-create the error condition.
> (This is with a -current from about a week ago, in case it matters)
>=20
> ../../../../arch/i386/conf/GENERIC:864: `ed* at edc?' is orphaned (nothin=
g matching `edc?' found)
> ../../../../arch/i386/conf/GENERIC:1338: `wsmouse* at btms?' is orphaned =
(nothing matching `btms?' found)
> *** Stop.
>=20
> The config file is attached since it is a bit long to put it inline.

While there is indeed an abnormal behaviour, it is because of the lines:

no something
no device at something?

The second one is not needed, as it is (kind of) implied by the first
line.  I.e., if you negate all instances of a driver, all its children
will be ignored, as otherwise they'd be orphans.

I'm still analysing why it happens, but in the end I should probably
error out on the second line, because the attachment is not provided by
any configured instance at that point.  Although such checks are
probably missing for other negations, too.  For instance, the following
passes, which is questionable:

no something
no something
no something

> > I'm pretty sure I still have it, so I can do it :)
>=20
> That sounds very useful to me. Please go ahead with committing it.

I'll see about that in a couple days.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

--rBVNTu5JXDAWzN2S
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iQEVAwUBR2rPH9goQloHrPnoAQI+mgf/T3ao15YsTJv+2iI/rSF59ig3eZ2n9wj6
LpkXySxsnRnTOve3aozILqUJowSqigPIQbK8tJMh1BRDeJr2V8CJQXS70ABSqu2S
R2YCy9swj0dWBmC5mKfQShUau3SS5qJ+EGebI6Y906NkW9JiKzVy4jDqBuiYYJPt
/CDVxBZsX9cX85pHBademSPw9U75ff0z14Qi2vWaVzk9RI/LH9YMiCNESzbkn+xg
MT8VrlrndiYL/o50oBi35K6mgmR6W737AchPdmIIaZ8m3vto1ZinHWko0Ss04b3N
+ApReBWZ4iXwl740JftyWON7cv/etwyqXlIEzI/NtA5Sg1hUnA9BJg==
=iJBK
-----END PGP SIGNATURE-----

--rBVNTu5JXDAWzN2S--