Subject: Re: no dev at attachment [was: Re: CVS commit: src/usr.bin/config]
To: tech-kern@NetBSD.org, Quentin Garnier <cube@NetBSD.org>
From: Bernd Ernesti <netbsd@lists.veego.de>
List: tech-kern
Date: 07/25/2005 07:04:42
On Sun, Jul 24, 2005 at 11:35:40PM +0200, Hubert Feyrer wrote:
> On Sun, 24 Jul 2005, Quentin Garnier wrote:
> >	src/usr.bin/config: sem.c
> >
> >Log Message:
> >Implement the long overdue syntax "no <dev> at <attachment>".  We can't
> >pretend anymore we don't have it.
> >
> >This is the result of 7 hours of work on the train journey forth and
> >back to the family reunion for the birthday of my cousin Mickael, whom
> >I thank for living just far away enough.
> 
> This is very very cool!

Yeah, thank you very much.

> So are there any things left that we can not disable again in a kernel 
> config file? If not, we can at least start rewriting the various 
> GENERIC/INSTALL variants to be based on a big one, and remove stuff ("no 
> FOO at BAR", "no options BAZ", ...).

There is still some problems left.

I can't compile it:

cc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wno-format-y2k -Werror   -I/src/usr.bin/config -I.    -c    /src/usr.bin/config/sem.c
/src/usr.bin/config/sem.c: In function `deldev':
/src/usr.bin/config/sem.c:1149: warning: suggest parentheses around assignment used as truth value
*** Error code 1

There were allready some problems before when I included a GENERIC config
and then redefine things:

ARRESUM-test:4: duplicate maxusers parameter
ARRESUM-test:13: already have options `RTC_OFFSET=0'
ARRESUM-test:137: `bpfilter' already defined

line 4:
	maxusers 64
line 13:
	options RTC_OFFSET="-60"
line 137:
	pseudo-device bpfilter 16

Ok, I can work around about the problems with the redefines in line 13 and 137 with
undefining it before, but that is not possible for 'maxusers':

ARRESUM-test:4: syntax error
ARRESUM-test:5: duplicate maxusers parameter

	no maxusers
	maxusers 64

This is without any devices, which i will test if it compiles.

Bernd