From nobody@FreeBSD.org  Wed Nov 18 01:52:31 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A92A71065676
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Nov 2009 01:52:31 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9820A8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Nov 2009 01:52:31 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nAI1qU0L042970
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 18 Nov 2009 01:52:30 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nAI1qULT042968;
	Wed, 18 Nov 2009 01:52:30 GMT
	(envelope-from nobody)
Message-Id: <200911180152.nAI1qULT042968@www.freebsd.org>
Date: Wed, 18 Nov 2009 01:52:30 GMT
From: Ben Kelly <ben@wanderview.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bad WITHOUT_MODULES example in handbook
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         140649
>Category:       docs
>Synopsis:       [handbook] bad WITHOUT_MODULES example in handbook
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 18 02:00:01 UTC 2009
>Closed-Date:    Mon Dec 14 14:23:47 UTC 2009
>Last-Modified:  Mon Dec 14 14:30:03 UTC 2009
>Originator:     Ben Kelly
>Release:        CURRENT
>Organization:
>Environment:
FreeBSD ianto.in.wanderview.com 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r254M: Fri Nov 13 23:26:25 UTC 2009     root@ianto.in.wanderview.com:/usr/obj/usr/src/sys/SERVER  i386

>Description:
The handbook currently incorrectly suggests you can specify module subdirectories in WITHOUT_MODULES.  See the second tip on this page:

  http://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html

This is incorrect because the WITHOUT_MODULES logic in /usr/src/sys/modules/Makefile will only exclude items in the original SUBDIRS list.  Only the top level module directories are included in this list.
>How-To-Repeat:
Add the following to your /etc/make.conf:

  WITHOUT_MODULES=sound/driver/emu10k1

Build the kernel and see the emu10k1 module get built anyway.
>Fix:


>Release-Note:
>Audit-Trail:

From: Ben Kelly <ben@wanderview.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/140649: bad WITHOUT_MODULES example in handbook
Date: Tue, 17 Nov 2009 22:19:44 -0500

 I forgot to mention this was initially reported by Gonzalo Nemmi.
 (gnemmi gmail com)

From: Ben Kelly <ben@wanderview.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/140649: [handbook] bad WITHOUT_MODULES example in handbook
Date: Wed, 18 Nov 2009 07:23:10 -0500

 On current@ on 11/17/2009 Doug Barton suggested that WITHOUT_MODULES and =
 MODULES_OVERRIDE should be documented in srcs.conf instead of make.conf:
 
 "You can add to the mix the fact that options like modules_override and
 without_modules are documented in make.conf(5) instead of in
 src.conf(5) which is where (arguably) they should be."=
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Mon Dec 14 14:13:40 UTC 2009 
State-Changed-Why:  
I have edited the Handbook to reflect the reality.  Thanks for reporting this issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=140649 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/140649: commit references a PR
Date: Mon, 14 Dec 2009 14:23:56 +0000 (UTC)

 pav         2009-12-14 14:23:24 UTC
 
   FreeBSD doc repository
 
   Modified files:
     en_US.ISO8859-1/books/handbook/kernelconfig chapter.sgml 
   Log:
   - WITHOUT_MODULES example does not work as advertised, modify to a version that
     will work
   
   PR:             docs/140649
   Reported by:    Ben Kelly <ben@wanderview.com>
   
   Revision  Changes    Path
   1.194     +2 -2      doc/en_US.ISO8859-1/books/handbook/kernelconfig/chapter.sgml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
