From: Junio C Hamano <gitster@pobox.com>
To: Christian Couder <chriscool@tuxfamily.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Makefile: detect when PYTHON_PATH changes
Date: Sat, 15 Dec 2012 09:29:48 -0800 [thread overview]
Message-ID: <7vehirustv.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <20121215140719.2409.27365.chriscool@tuxfamily.org> (Christian Couder's message of "Sat, 15 Dec 2012 15:07:18 +0100")
Christian Couder <chriscool@tuxfamily.org> writes:
> @@ -2636,6 +2636,18 @@ GIT-GUI-VARS: FORCE
> fi
> endif
>
> +### Detect Python interpreter path changes
> +ifndef NO_PYTHON
> +TRACK_VARS = $(subst ','\'',-DPYTHON_PATH='$(PYTHON_PATH_SQ)')
> +
> +GIT-PYTHON-VARS: FORCE
> + @VARS='$(TRACK_VARS)'; \
> + if test x"$$VARS" != x"`cat $@ 2>/dev/null`" ; then \
> + echo 1>&2 " * new Python interpreter location"; \
> + echo "$$VARS" >$@; \
> + fi
> +endif
Do we have the same issue when you decide to use /usr/local/bin/sh
after building with /bin/sh set to SHELL_PATH?
- If yes, I presume that there will be follow-up patches to this
one, for SHELL_PATH, PERL_PATH, and TCLTK_PATH (there may be
other languages but I didn't bother to check). How would the use
of language agnostic looking TRACK_VARS variable in this patch
affect such follow-up patches?
- If no (in other words, if we rebuild shell-scripted porcelains
when SHELL_PATH changes), wouldn't it be better to see how it is
done and hook into the same mechanism?
- If no, and if the approach taken in this patch is better than the
one used to rebuild shell scripts (it may limit the scope of
rebuilding when path changes, or something, but again, I didn't
bother to check), then again follow-up patches to this one to
describe dependencies to build scripts in other languages in a
similar way to this patch would come in the future. The same
question regarding TRACK_VARS applies in this case.
By the way, "1>&2" is easier to read if written as just ">&2", I
think.
Thanks.
next prev parent reply other threads:[~2012-12-15 17:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-15 14:07 [PATCH] Makefile: detect when PYTHON_PATH changes Christian Couder
2012-12-15 17:29 ` Junio C Hamano [this message]
2012-12-15 20:09 ` Christian Couder
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=7vehirustv.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=chriscool@tuxfamily.org \
--cc=git@vger.kernel.org \
/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).