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

Re: difftool uses hardcoded perl shebang

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 19, 2017, 17:47 UTC
Message-ID
<xmqqd13awqxx.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20171219171253.GA7526@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 20 quoted lines
> On Tue, Dec 19, 2017 at 09:08:44AM -0800, Junio C Hamano wrote:
>
>> Jeff King <peff@peff.net> writes:
>> 
>> > In the meantime, pointing to the actual build-time perl is a workaround
>> > (but obviously not if it's being done by a third-party packager who has
>> > no idea where your perl is).
>> 
>> Is such a binary packaging scheme actually in use that deliberately
>> leaves it up to the end user where/if a perl is installed and if it
>> is an appropriately recent version?  It sounds rather irresponsible
>> to me.
>
> No, I mean that the user can do:
>
>   make PERL_PATH=/path/to/perl/in/my/PATH
>
> but if they are not building Git themselves, that is not an option for
> them. And a binary packager cannot help them there, because they do not
> know that path.

I think we are saying the same thing. A third-party binary packager cannot guess where your custom Perl is nor if it is recent enough. I just was wondering if such an irresponsible packaging scheme is in use that lets you install Git without somehow making sure that the box also has a version of Perl that can be used with the version of Git. Then the presence of /path/to/perl/in/my/PATH does not matter, as it does not have to be used with Git.

Previous: Jeff King
Message 9 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.