From nobody@FreeBSD.org  Wed Sep 18 19:37:15 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 58BCF411
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Sep 2013 19:37:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 46256216E
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Sep 2013 19:37:15 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8IJbEcb024232
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Sep 2013 19:37:14 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8IJbE2K024229;
	Wed, 18 Sep 2013 19:37:14 GMT
	(envelope-from nobody)
Message-Id: <201309181937.r8IJbE2K024229@oldred.freebsd.org>
Date: Wed, 18 Sep 2013 19:37:14 GMT
From: ShelLuser <pl@catslair.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel configuration doesn't honour nooption syntax as defined by config(5)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182213
>Category:       kern
>Synopsis:       kernel configuration doesn't honour nooption syntax as defined by config(5)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 18 19:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     ShelLuser
>Release:        9.1-RELEASE-P7
>Organization:
>Environment:
FreeBSD smtp2.losoco.com 9.1-RELEASE-p7 FreeBSD 9.1-RELEASE-p7 #3 r255465: Wed Sep 11 03:35:14 CEST 2013     root@smtp2.losoco.com:/usr/obj/usr/src/sys/SMTP2  amd64

>Description:
I'm building a custom kernel based on the GENERIC kernel configuration. Because I'm using a VPS I don't need many of the options & devices so these get disabled. While building the kernel I get the following error:

config: /usr/src/sys/amd64/conf/SECKERNEL:16: syntax error
*** [buildkernel] Error code 1

Line 16:

nooptions       UFS_ACL, UFS_DIRHASH, UFS_GJOURNAL

If I change line 16 to its own block like so it'll work:

nooptions       UFS_ACL
nooptions       UFS_DIRHASH
nooptions       UFS_GJOURNAL

However, this goes directly against the definition in the config(5) manualpage:

     nooption name [, name [...]]
     nooptions name [, name [...]]

The reason I suspect a bug is because the 'nodevice' directive does behave as expected.

>How-To-Repeat:
Use the following kernel configuration file and try using "make buildkernel":

## Start of config
include GENERIC
ident TESTKERNEL

nooptions UFS_ACL, UFS_DIRHASH, UFS_GJOURNAL
## End of config

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
