From owner-freebsd-stable@FreeBSD.ORG Tue Feb 26 11:42:32 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D86B1065728 for ; Tue, 26 Feb 2008 11:42:32 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 9C6BF13C8E0 for ; Tue, 26 Feb 2008 08:03:49 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 609991CC033; Tue, 26 Feb 2008 00:03:49 -0800 (PST) Date: Tue, 26 Feb 2008 00:03:49 -0800 From: Jeremy Chadwick To: "Chris H." Message-ID: <20080226080349.GA20881@eos.sc1.parodius.com> References: <20080225215522.r3jb5v548o0scks8@webmail.1command.com> <20080226070516.GB32690@team.vega.ru> <20080225233523.acl5s1lo8wgsw4wg@webmail.1command.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080225233523.acl5s1lo8wgsw4wg@webmail.1command.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-stable@freebsd.org Subject: Re: make KNOBS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 11:42:32 -0000 On Mon, Feb 25, 2008 at 11:35:23PM -0800, Chris H. wrote: > But am struggling with finding the port(s) equivalent. If there isn't > one, I'd be more that happy to dedicate a domain/ web site solely to > providing this resource. Perhaps a wiki that I, and anyone else can > add the WITH_/WITHOUT_ options, along with descriptions of exactly > /what/ they provide. Seems like a /real/ valuable, and /needed/ > resource. There is no equivalent. Some ports allow "make showconfig" to show you what knobs there are, but the majority do not. And with the OPTIONS framework, it deprecates the need for "showconfig" entirely. Additionally, the WITH/WITHOUT variables seen in the Makefile are not always what they seem. For ports that use OPTIONS, you cannot define these on the command-line (e.g. make WITHOUT_FRUIT=yes); you absolutely MUST do 'make config' and then toggle them there. (This is one piece of the OPTIONS framework which I have always disliked, because some of us use /etc/make.conf to define WITH/WITHOUT variables, and prefer to do "cd /usr/ports/whatever && make clean && make && make install" and not have something interactive pop up. That's for another discussion though...) Also, there are some variables which are generally "global" across most ports, such as WITHOUT_IPV6. You wouldn't want to list those off in every single port, because that'd be somewhat redundant. There is no existing list of these "global"-like variables either, although some are listed in the /usr/ports/Mk/bsd.*.mk files. Providing a web site listing them all off would not make much sense, because ports change very often/quickly (the site would become outdated the minute someone changes a port to add/remove a feature), and there's no guarantee that the maintainer of the port will go to your site and edit the Wiki page. Instead, I would think said effort would be better spent implementing the "showconfig" feature apply to all ports, and have it understand OPTIONS stuffs. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |