bsd.own.mk - just let WITHOUT_* take precedence
Warner Losh
imp at bsdimp.com
Wed Oct 24 17:07:57 UTC 2012
On Oct 24, 2012, at 10:18 AM, Simon J. Gerraty wrote:
>
> On Wed, 24 Oct 2012 10:45:08 -0500, Brooks Davis writes:
>>> Have you had a chance to review Simon's latest diff?
>>
>> Yes it's fine if the problem we want to solve is being able to set
>> WITH_FOO and WITHOUT_FOO. I'm not sure we don't really just want to let
>> WITH_FOO be overridden by NO_FOO more reliably.
>
> That can work too, except the comments in bsd.own.mk indicated a desire
> to deprecate NO_* ?
NO_* is on its way out, so we should likely just fail for the NO_ options... In FreeBSD 6.x they were deprecated, so it isn't like there hasn't been warning.
> Since WITH_FOO could be in the environment you cannot simply .undef it
> and set WITHOUT_FOO when NO_* is seen - which is the cause of the errors.
> To be consistent, you need to test for NO_* pretty much everywhere that
> I was checking for WITHOUT_* - the two basically become synonymous.
> Thus all the logic for setting WITHOUT_* based on NO_* should be removed?
All of the WITH_FOO and WITHOUT_FOO ultimately make it to MK_FOO. Anything that's still using NO_FOO should be hastened out of the tree quickly...
> Would that be a step forwards or backwards?
I think it would be a step forwards.
Warner
More information about the freebsd-arch
mailing list