default OPTIONS aren't the default when BATCH is set
Thomas-Martin Seck
tmseck-lists at netcologne.de
Sat Mar 13 08:05:34 PST 2004
* Oliver Eikemeier (eikemeier at fillmore-labs.com):
> Thomas-Martin Seck wrote:
>
> >* Sergey Matveychuk <sem at ciam.ru> [gmane.os.freebsd.devel.ports]:
> >
> >
> >>There is a workaround while it's not fixed:
> >>OPTIONS= SOME_DEFAULT "..." on
> >>WITH_SOME_DEFAULT?= yes
> >
> >That looks bogus to me. The ?= does not make sense for variables
> >which are checked for definedness only (?= is the same as = since you
> >cannot 'unset' the variable on the commandline) and IMO it is sufficient
> >to fix the port's options parser to check for WITHOUT_OPTION_FOO when
> >'foo' defaults to 'on'. At least this is how I do it in my ports.
>
> The whole WITHOUT_* stuff is a misfeature IMHO. What options do I get
> when I do
>
> cd textproc/libxml2; make WITHOUT_PYTHON=yes WITH_SCHEMA=yes
> WITH_XMLLINT_HIST=yes
May I ask you to forward this to the maintainer of said port? This has
nothing to do with the topic of this discussion.
> (which I have in pkgtools.conf). Now I (and lots of other port users)
> are chasing ports that are early adaptors of buggy features. Not very
> pleasing.
Well, I did not commit these "misfeatures" to bsd.port.mk, and ugliness
lies in the eye of the beholder. As a maintainer, I choose what is
offered to me by bsd.port.mk and decide which feature is useful enough
for me to adopt it.
To get back on topic:
It is vital that you check for WITHOUT_FOO's definedness when you
implement a default-to-on-OPTION. When doing so you can avoid the
problem we are discussing here regarding the PACKAGE_BUILDING and BATCH
cases.
Regarding WITHOUT_: I did not write that we should implement a WITHOUT_
option for every WITH_ knob out there. I am only writing about what
needs to be keept in mind _when_ one chooses to adopt OPTIONS. That some
ports already implement WITHOUT_ knobs is a matter you should discuss
with the respective maintainers, not with me.
More information about the freebsd-ports
mailing list