Question about new options framework (regression?)
Olli Hauer
ohauer at FreeBSD.org
Wed Jul 25 21:13:05 UTC 2012
On 2012-07-25 20:18, Scot Hetzel wrote:
> On Wed, Jul 25, 2012 at 12:09 PM, Oliver Fromme <olli at lurza.secnetix.de> wrote:
>>
>> 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?
>>
> Reading thru the Mk/bsd.options.mk, it seems you should be able to do:
>
> $ WITH_STATIC=true make showconfig
>
> And it might override the saved settings from the OPTIONSFILE.
No, this will not work.
$ make showconfig | grep STATIC
STATIC=off: Build static executable/libraries
$ make -V LDFLAGS
-L/usr/local/lib -rpath=/usr/lib:/usr/local/lib
$ make -V LDFLAGS WITH_STATIC=true
-L/usr/local/lib -rpath=/usr/lib:/usr/local/lib
Expected result:
-L/usr/local/lib -rpath=/usr/lib:/usr/local/lib -static
Seems we will see more such issues with slave ports since they cannot overwrite the optionsfile (maybe a fake target in the slave with make rmconfig can be a solution ;)
For me this is a regression which was already discussed on this list ( optionsng and tinderbox? )
I also ask with a simple example and got no answers ( options NG and slave/sub ports )
More information about the freebsd-ports
mailing list