From owner-freebsd-stable@FreeBSD.ORG Tue Feb 26 13:44:54 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 D3C64106567A for ; Tue, 26 Feb 2008 13:44:54 +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 6A06A13C4D1 for ; Tue, 26 Feb 2008 13:44:53 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 9639E1CC038; Tue, 26 Feb 2008 05:44:53 -0800 (PST) Date: Tue, 26 Feb 2008 05:44:53 -0800 From: Jeremy Chadwick To: Scot Hetzel Message-ID: <20080226134453.GA32927@eos.sc1.parodius.com> References: <20080225215522.r3jb5v548o0scks8@webmail.1command.com> <20080226070516.GB32690@team.vega.ru> <20080225233523.acl5s1lo8wgsw4wg@webmail.1command.com> <20080226080349.GA20881@eos.sc1.parodius.com> <790a9fff0802260433y63f887e8y56dea11f36270b2e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <790a9fff0802260433y63f887e8y56dea11f36270b2e@mail.gmail.com> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-stable@freebsd.org, "Chris H." 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 13:44:55 -0000 On Tue, Feb 26, 2008 at 06:33:37AM -0600, Scot Hetzel wrote: > On Tue, Feb 26, 2008 at 2:03 AM, Jeremy Chadwick wrote: > > 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...) > > > You should be able to do: > > cd /usr/ports/whatever && make clean && make -DBATCH && make -DBATCH install > > Check the port to see if it disables parts of its build/install > process when BATCH is defined. I thought using BATCH had some substantial risks associated with it? I wish I could remember where I read or heard that... > Another way would be to define _OPTIONS_OK=yes in /etc/make.conf, but > this is an internal variable to bsd.ports.mk. What are the risks involved with using this? > Also defining WITH/WITHOUT variables in /etc/make.conf and/or > ${PREFIX}/etc/ports.conf (sysutils/portconf) should work with ports > that use the OPTIONS framework. In the case of the lesser, it doesn't. In the case of the latter, I don't use portconf, so I don't have an answer to that one. -- | 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 |