git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH review] Build: make PERL_PATH = /usr/bin/env perl

From
Junio C Hamano <gitster@pobox.com>
Date
May 31, 2008, 19:55 UTC
Message-ID
<7vabi6fdun.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1212258886-87484-1-git-send-email-mfwitten@mit.edu>
Michael Witten <mfwitten@MIT.EDU> writes:
Show 21 quoted lines
> This should make PERL_PATH more robust, as some
> systems may have multiple version of perl installed.
>
> Signed-off-by: Michael Witten <mfwitten@mit.edu>
> ---
>  Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index 865e2bf..5828745 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -323,7 +323,7 @@ ifndef SHELL_PATH
>  	SHELL_PATH = /bin/sh
>  endif
>  ifndef PERL_PATH
> -	PERL_PATH = /usr/bin/perl
> +	PERL_PATH = /usr/bin/env perl
>  endif
>  
>  export PERL_PATH

If you insist, you can do so from your "make" command line, but I'd prefer the default configuration as vanilla as possible.

I notice that both git-svn.perl and git-relink.perl begin with "#!/usr/bin/env perl", and I think that is a mistake. The #! line is rewritten by Makefile, and there is no reason to write a "/usr/bin/env" ugliness there in the source. Not that it hurts, as it is blown away when Makefile rewrites it to "#!$(PERL_PATH)", but it still looks ugly.

Previous: Michael WittenNext: Michael Witten
Message 2 of 7 in “Build: make PERL_PATH = /usr/bin/env perl”
  1. Build: make PERL_PATH = /usr/bin/env perlMichael Witten, May 31, 2008
  2. Junio C HamanoMay 31, 2008
  3. Michael WittenJun 1, 2008
  4. Matthieu MoyJun 1, 2008
  5. Junio C HamanoJun 1, 2008
  6. Steven WalterJun 1, 2008
  7. David ChristensenJun 2, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.