From owner-freebsd-arch@FreeBSD.ORG Tue Mar 5 12:19:01 2013 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 49040CB4 for ; Tue, 5 Mar 2013 12:19:01 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 0FAFAA87 for ; Tue, 5 Mar 2013 12:19:00 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 47ADC7300A; Tue, 5 Mar 2013 13:19:37 +0100 (CET) Date: Tue, 5 Mar 2013 13:19:37 +0100 From: Luigi Rizzo To: Dag-Erling Sm??rgrav Subject: Re: revising sys/conf/files* dependencies Message-ID: <20130305121937.GA29075@onelab2.iet.unipi.it> References: <20130305083817.GD13187@onelab2.iet.unipi.it> <86hakqtbx7.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86hakqtbx7.fsf@ds4.des.no> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2013 12:19:01 -0000 On Tue, Mar 05, 2013 at 10:48:20AM +0100, Dag-Erling Sm??rgrav wrote: > Luigi Rizzo writes: > > In all these cases, if you forget the scbus or pci in the kernel > > config, the driver is not compiled in but you only detect it at > > compile time. I'd rather be notified of the error at kernel link time. > > I would rather be notified by config(8): > > "iscsi_initiator requires scbus, please edit your kernel configuration > and re-run config(8)" > > and perhaps a command-line option that makes it automatically resolve > dependencies instead of complaining about them. right now the dependency is often, not always, just a MODULE_DEPEND() in some modules, and/or a comment in LINT (or options). Before defining the tool we should probably try to figure out what is the authoritative place with dependency information, and compile documentation and auto-dependencies starting from that. cheers luigi