optionsng and tinderbox?
Olli Hauer
ohauer at FreeBSD.org
Fri Jun 22 17:44:43 UTC 2012
On 2012-06-21 11:26, Ganael LAPLANCHE wrote:
> On Wed, 20 Jun 2012 13:28:26 +0100, Matthew Seaman wrote
>
> Hi Matthew, Baptiste,
>
> Thank you very much for your answers.
>
> With your patch, Matthew, setting :
>
> openldap24-client_SET+=FETCH
>
> in make.conf now works for net/openldap24-client :
>
> $ cd /usr/ports/net/openldap24-client
> $ make -V PORT_OPTIONS
> DOCS EXAMPLES FETCH NLS
>
> Great :)
>
>> [...]
>> Shouldn't make.conf / commandline settings override OPTIONSFILE rather
>> than the other way round? Seems there's not much point in being able to
>> set options from make.conf unless that is so, as OPTIONSFILE would be
>> created more often than not whenever make(1) was invoked in the port's
>> directory.
>
> I think that command-line options should always override file ones, but
> the main problem here is that we cannot distinguish what comes from the
> command line from what comes from make.conf.
>
> What would sound logical to me would be the following order of precedence :
>
> make.conf -> overridden by option files -> overridden by command line
This looks wrong to me.
Options set in make.conf should not be overwritten by the option file
else you don't need etc/make.conf at all.
Given a port has as default set option A to on and you don't want
option A then you cannot overwrite the default settings in make.conf
with the suggested order.
For example globally unset mysql and choose pgsql instead.
--
olli
More information about the freebsd-ports
mailing list