Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2013 17:58:31 +0200
From:      Kimmo Paasiala <kpaasial@gmail.com>
To:        Marco Steinbach <coco@executive-computing.de>
Cc:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: OPTIONSng: Overide options in /var/db/ports/*/options ?
Message-ID:  <CA%2B7WWSfLDhc54HkXmMjr8d4Z=40bJXBGH3uE%2B0oLtcv_tjd6eA@mail.gmail.com>
In-Reply-To: <5145E47D.4050201@executive-computing.de>
References:  <5145B415.80303@executive-computing.de> <5145C9DC.6010300@infracaninophile.co.uk> <5145E47D.4050201@executive-computing.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 17, 2013 at 5:42 PM, Marco Steinbach
<coco@executive-computing.de> wrote:
> Matthew Seaman wrote on 17.03.2013 14:49:
>
>> On 17/03/2013 12:16, Marco Steinbach wrote:
>>>
>>> Hi,
>>>
>>> is there a way to overide options stored in /var/db/ports/*/options,
>>> basically getting back the pre-OPTIONSng behaviour of being able to
>>> overide port options in /etc/make.conf ?
>>>
>>> Before OPTIONSng was introduced, I was able to specify options in
>>> /etc/make.conf (WITHOUT_X11, WITHOUT_CUPS, WITH_MAILHEAD, WITH_SSL,
>>> WITH_MYSQL, WITH_DOVECOT, ...), which then overode any occurency of that
>>> option in any port (or just specific ones, by e.g. checking .CURDIR),
>>> regardless of the setting the ports option file contained.
>>
>>
>> Find the uniquename of the port[*] (by 'make -V UNIQUENAME') then in
>> /etc/make.conf
>>
>> uniquename_SET= FOO BAR BAZ
>> uniquename_UNSET= BLURFL
>>
>> will override the default settings in that port's Makefile for the FOO,
>> BAR, BAZ and BLURFL options.
>>
>> Note: this won't override any settings you make from an options dialog.
>> Might be a good idea to 'make rmconfig' if you only want to rely on
>> /etc/make.conf
>
>
> [...]
>
> Exactly my point.  Currently, with OPTIONSng there seems to be no way to
> overide anything in /var/db/ports/*/options.
>
> I find it irritating, that I no longer can be sure about options in
> /etc/make.conf.  I have to check/reconfigure to make sure.
>
> As much as I like OPTIONSng (especially in combination with dialog4ports),
> this is one thing I'd very much like OPTIONSng to relearn: Enforce options
> regardless of what's in a ports options file.
>
> Enforcing invalid multi/single/radio option combinations may be a possible
> pitfall, but that's catched by OPTIONSng, and the build simply stops.
>
>
>


I use poudriere with a configuration where all of the stored
/var/db/ports options are thrown away after compilation. I have all
the settings I want to set in /usr/local/etc/poudrire.d/make.conf
instead.

-Kimmo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B7WWSfLDhc54HkXmMjr8d4Z=40bJXBGH3uE%2B0oLtcv_tjd6eA>