Date: Wed, 25 Jul 2012 19:42:39 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-ports@FreeBSD.ORG, bapt@FreeBSD.ORG Subject: Re: Question about new options framework (regression?) Message-ID: <201207251742.q6PHgd34030874@lurza.secnetix.de> In-Reply-To: <20120725172139.GB13771@ithaqua.etoilebsd.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Baptiste Daroussin <bapt@freebsd.org> wrote: > On Wed, Jul 25, 2012 at 07:09:48PM +0200, Oliver Fromme wrote: > > Baptiste Daroussin <bapt@freebsd.org> wrote: > > > On Wed, Jul 25, 2012 at 05:11:18PM +0200, Oliver Fromme wrote: > > > > What is the proper way to temporarily change an option on > > > > the command line or within a script? > > > > I also tried the other settings you suggested, and none > > of them works. It's always overridden by the settings > > that are stored in $PORT_DBDIR. > > > > With the old framework, I could override $PORT_DBDIR with > > "WITH_ZSH_STATIC=true" ... Can't this be done with the > > new framework, too? > > This is because you already have a save configuration made out of make > config > > you can still override PORT_DBDIR to make sure this configuration is > not read > PORT_DBDIR=/dev/null OPTIONS_SET="STATIC" make .. But I *do* want to use the saved configuration: It enables the MEM option, and maybe other things in the future. I only want to override *one* option -- the STATIC option. The others should be taken from the saved configuration in the options file. Well, of course, my script could try to parse the options file, construct appropriate OPTIONS_SET and OPTIONS_UNSET strings, and then add STATIC. But I hoped that there still is a simple way to override single settings from the options file ... I have to say it's a little annoying that I have to jump through hoops to achieve something that was rather trivial to do before. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead." -- RFC 1925
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207251742.q6PHgd34030874>