From: Jeff King <peff@peff.net>
To: Jakub Zaverka <jakub.zaverka@deutsche-boerse.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: difftool uses hardcoded perl shebang
Date: Tue, 19 Dec 2017 11:25:28 -0500 [thread overview]
Message-ID: <20171219162528.GA5804@sigill.intra.peff.net> (raw)
In-Reply-To: <f5d4c8e7bceb410a95a34a8cce4c31dd@deutsche-boerse.com>
On Tue, Dec 19, 2017 at 01:28:09PM +0000, Jakub Zaverka wrote:
> 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
next prev parent reply other threads:[~2017-12-19 16:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-19 13:28 difftool uses hardcoded perl shebang Jakub Zaverka
2017-12-19 16:12 ` Junio C Hamano
2017-12-19 16:16 ` Jakub Zaverka
2017-12-19 16:25 ` Jeff King [this message]
2017-12-19 16:33 ` Junio C Hamano
2017-12-19 16:45 ` Jeff King
2017-12-19 17:08 ` Junio C Hamano
2017-12-19 17:12 ` Jeff King
2017-12-19 17:47 ` Junio C Hamano
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171219162528.GA5804@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jakub.zaverka@deutsche-boerse.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).