From owner-freebsd-ports@FreeBSD.ORG Mon Nov 26 20:25:29 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D2B6216A41B for ; Mon, 26 Nov 2007 20:25:29 +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 C291813C459 for ; Mon, 26 Nov 2007 20:25:29 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 000351CC079; Mon, 26 Nov 2007 12:08:19 -0800 (PST) Date: Mon, 26 Nov 2007 12:08:19 -0800 From: Jeremy Chadwick To: Wesley Shields Message-ID: <20071126200819.GA24225@eos.sc1.parodius.com> References: <20071126183733.GA34456@belle.0lsen.net> <20071126185609.GA77988@atarininja.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071126185609.GA77988@atarininja.org> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: ports@freebsd.org, Clint Olsen Subject: Re: WITH_/WITHOUT_ variables confusing X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2007 20:25:29 -0000 On Mon, Nov 26, 2007 at 01:56:09PM -0500, Wesley Shields wrote: > On Mon, Nov 26, 2007 at 10:37:33AM -0800, Clint Olsen wrote: > > I'm trying to build net/vnc, and I want a server. The OPTIONS list > > shows: > > > > OPTIONS = server "blah blah" on > > > > So, this tells me that by default it should be on, correct? > > Yet the port throughout the makefile references WITHOUT_SERVER. I've > > tried various combinations of WITH_SERVER and WITHOUT_SERVER and I can't > > seem to disable WITHOUT_SERVER. > > > > A couple one-line examples in the manpage would clear this up a lot. > > I checked the handbook, the ports manpage, and I even looked at the > > ports default makefile. > > > > And finally, once I've figured out how to do this, how/where are we > > supposed to override this so I never have to deal with it again? I > > always want a server built. > > It's being stored with the rest of the options most likely. You can see > the currently selected options with 'make config' or remove them with > 'make rmconfig'. Once you select the options you want they will be > remembered for you. One of the difficulties with 'make config' is that because it's interactive (via dialog(1)), it makes script-based or non-interactive installs difficult. For example: make rmconfig (only needed if you've done make config before) make WITH_xxx=true WITHOUT_yyy=true make WITH_xxx=true WITHOUT_yyy=true install ...doesn't appear to work (the last time I tried it). Although, I do remember seeing a semi-recent commit that mentioned use of using WITH/WITHOUT, but I'm not sure if it addressed the above concern. -- | 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 |