From owner-freebsd-ports@FreeBSD.ORG Mon Jun 22 22:37:27 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B15881065678 for ; Mon, 22 Jun 2009 22:37:27 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5DD828FC22 for ; Mon, 22 Jun 2009 22:37:27 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 8193 invoked by uid 399); 22 Jun 2009 22:37:22 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 22 Jun 2009 22:37:22 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4A4007A0.3040606@FreeBSD.org> Date: Mon, 22 Jun 2009 15:37:20 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.21 (X11/20090423) MIME-Version: 1.0 To: Nick Withers References: <1245678218.97200.18.camel@nehalem.shmon.net> In-Reply-To: <1245678218.97200.18.camel@nehalem.shmon.net> X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Removed port OPTIONS linger in /var/db/ports/.../options 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, 22 Jun 2009 22:37:28 -0000 Nick Withers wrote: > Hello all! > > I was surprised to see, when trying to update lang/ruby18 today, that > the to-be-installed package would be named "ruby > +nopthreads-1.8.7.160_3,1", rather than the expected > "ruby-1.8.7.160_3,1". > > Checked out the port's Makefile, and indeed this name is now set when > "WITHOUT_PTHREADS" is defined. Righto, no worries. > > I hadn't defined WITHOUT_PTHREADS though... Or at least, didn't think I > had! "make config" for lang/ruby18 didn't even show such an option. > > "/var/db/ports/ruby/options", however, did, left over from a while back: > ____ > > # This file is auto-generated by 'make config'. > # No user-servicable parts inside! > # Options for ruby-1.8.7.72_1,1 > _OPTIONS_READ=ruby-1.8.7.72_1,1 > WITHOUT_PTHREADS=true > WITHOUT_ONIGURUMA=true > WITHOUT_GCPATCH=true > WITH_IPV6=true > WITHOUT_RDOC=true > WITHOUT_DEBUG=true > ____ > > I must admit, I thought that when options were added or removed, the > OPTIONS dialogue was redisplayed automatically, but it seems this is > only when options are added (consistent with what seems to be implied in > http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html). If that's accurate then it's a bug, although IME the cases where an option is removed are few and far between. > I don't really want to clear all ports options before each > portmaster / portupgrade run You don't need to clear them all with portmaster, you can use the --force-config option which will run 'make config' for each port but preserve the choices you've already made. There is also the --check-port-dbdir option if you want to clear out options files for ports you're no longer using. hth, Doug -- This .signature sanitized for your protection