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

Re: difftool uses hardcoded perl shebang

From
Jeff King <peff@peff.net>
Date
Dec 19, 2017, 16:25 UTC
Message-ID
<20171219162528.GA5804@sigill.intra.peff.net>
In-Reply-To
<f5d4c8e7bceb410a95a34a8cce4c31dd@deutsche-boerse.com>
On Tue, Dec 19, 2017 at 01:28:09PM +0000, Jakub Zaverka wrote:
Show 12 quoted lines
> When running git difftool:
> 
> >git difftool
> Perl lib version (5.10.0) doesn't match executable version (v5.16.3)
> Compilation failed in require at <path>/git-difftool line 2.
> 
> First line in my git-difftool is:
> #!/usr/bin/perl
> 
> I am using a specific perl that I cannot change. Similarly, I cannot change the git-difftool file. I would like the difftool to use the perl form my PATH. 
> 
> Maybe it would be better to use #!/usr/bin/env perl?
This is a build-time knob. When you build git, try:
  make PERL_PATH='/usr/bin/env perl'

(If you don't build your own git, then you might raise the issue with whomever packages your binary).

As an aside, git-difftool is now a C builtin these days, so the problem might also go away if you upgrade. ;)

-Peff
Previous: Jakub ZaverkaNext: Junio C Hamano
Message 4 of 9 in “difftool uses hardcoded perl shebang”
  1. Jakub ZaverkaDec 19, 2017
  2. Junio C HamanoDec 19, 2017
  3. Jakub ZaverkaDec 19, 2017
  4. Jeff KingDec 19, 2017
  5. Junio C HamanoDec 19, 2017
  6. Jeff KingDec 19, 2017
  7. Junio C HamanoDec 19, 2017
  8. Jeff KingDec 19, 2017
  9. Junio C HamanoDec 19, 2017

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.