From: Junio C Hamano <gitster@pobox.com>
To: Ben Walton <bwalton@artsci.utoronto.ca>
Cc: Junio C Hamano <gitster@pobox.com>, jrnieder <jrnieder@gmail.com>,
git <git@vger.kernel.org>
Subject: Re: [PATCH 0/2] Set Makefile variables from configure
Date: Wed, 04 Nov 2009 11:56:57 -0800 [thread overview]
Message-ID: <7vy6mmf4hi.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <1257363937-sup-5123@ntdws12.chass.utoronto.ca> (Ben Walton's message of "Wed\, 04 Nov 2009 14\:47\:45 -0500")
Ben Walton <bwalton@artsci.utoronto.ca> writes:
> Excerpts from Junio C Hamano's message of Wed Nov 04 14:36:32 -0500 2009:
>
>> I am a bit puzzled about the "warning" logic. Is this because you expect
>> variables we typically give YesPlease/NoThanks as their values will not be
>> handled with this new PARSE_WITH_SET_MAKE_VAR() macro?
>
> No, this is because it's perfectly acceptable, in my opinion for a
> user to say:
>
> --with-pager=no
> or
> --with-editor=yes
>
> Neither of those are smart things to do, but they're not necessarily
> wrong, either. I'm open to bailing on error for these, but I thought
> leaving these as unvalidated, but with a warning, was more
> flexible...if say a user wanted to have a pager called 'no' or
> something.
What puzzled me was not "why is it not an error but just a warning?", which
is what you just explained, but "why should we even care what value is
being given to begin with?".
I am _not_ saying "I think it is more correct not to check the value at
all". I just wanted to understand in what situation it may be benefitial
to give this warning in the first place.
> For the variables that are accepting YesPlease/NoThanks, I think it's
> more suitable to use the standard autoconf header/function/library
> detection as it stands now. This macro is more for 'oddball'
> variables like DEFAULT_PAGER, DEFAULT_EDITOR, etc that aren't
> necessarily easily detectable. In some cases, even if it were
> detectable, the detection might not be right.
I am guessing from this description of 'oddball variables' that your
answer to my question is yes. That is, configure.ac writers are strongly
discouraged from using this new macro for variables that would usually get
YesPlease/NoThanks kind of values.
And then it makes sense to warn 'yes/no', as it is unlikely that the user
wants to set name (or path) of programs we allow to be tweaked to 'yes' or
'no'.
next prev parent reply other threads:[~2009-11-04 19:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-31 20:41 [PATCH 0/2] Set Makefile variables from configure Ben Walton
2009-10-31 20:41 ` [PATCH 1/2] configure: add function to directly set Makefile variables Ben Walton
2009-10-31 20:41 ` [PATCH 2/2] configure: allow user to set gitconfig, pager and editor Ben Walton
2009-11-03 17:25 ` [PATCH 0/2] Set Makefile variables from configure Ben Walton
2009-11-03 21:54 ` Jonathan Nieder
2009-11-03 22:21 ` Jonathan Nieder
2009-11-04 18:05 ` Ben Walton
2009-11-04 18:05 ` [PATCH 1/2] configure: add macro to set arbitrary make variables Ben Walton
2009-11-04 18:06 ` [PATCH 2/2] configure: add settings for gitconfig, editor and pager Ben Walton
2009-11-04 19:36 ` [PATCH 0/2] Set Makefile variables from configure Junio C Hamano
2009-11-04 19:47 ` Ben Walton
2009-11-04 19:56 ` Junio C Hamano [this message]
2009-11-04 20:16 ` Ben Walton
2009-11-04 20:16 ` Jonathan Nieder
2009-11-04 18:07 ` Ben Walton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vy6mmf4hi.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bwalton@artsci.utoronto.ca \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).