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

Re: [bug] 2.5.0 build with NO_PERL is broken

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Aug 14, 2015, 20:49 UTC
Message-ID
<CAPig+cR77oFo6D3f8BjAB_yM-xPt+3EUGK4vZr3eYWJGTtksAQ@mail.gmail.com>
In-Reply-To
<xmqq7foxiqu6.fsf@gitster.dls.corp.google.com>
On Fri, Aug 14, 2015 at 3:59 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Renato Botelho <garga@FreeBSD.org> writes:
>> I also found that some commands require perl when NO_PERL is set:
>
> NO_PERL merely means "I want to build a subset of Git that is meant
> to be usable on a system without a working Perl installed".  These
> scripts that do require Perl installed are indeed not expected to
> work under NO_PERL (if you think about it, that would be natural and
> the only sensible expectation---otherwise we would have coded them
> without using Perl at all, in which case there will be no need for
> NO_PERL in the first place).

Nevertheless, there's still the problem, due to 527ec39 (generate-cmdlist: parse common group commands, 2015-05-21), that git doesn't build at all anymore when Perl is unavailable.

One option would be to go with the awk version of 'generate-cmdlist'[1], which restricts itself to POSIX and was tested on Linux, FreeBSD, and Mac OS X[2], though I'm not sure we really want to go there, particularly if you're uncomfortable[3] about introducing awk into the toolchain.

Another option would be to rewrite the (more complex) generate-cmdlist in shell, which I think should be possible, though it will be uglier and more verbose.

[1]: http://article.gmane.org/gmane.comp.version-control.git/269307/ [2]: http://article.gmane.org/gmane.comp.version-control.git/269336/ [3]: http://article.gmane.org/gmane.comp.version-control.git/269324/

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 11 in “[bug] 2.5.0 build with NO_PERL is broken”
  1. Renato BotelhoAug 14, 2015
  2. Renato BotelhoAug 14, 2015
  3. Junio C HamanoAug 14, 2015
  4. Eric SunshineAug 14, 2015
  5. Junio C HamanoAug 14, 2015
  6. Eric SunshineAug 14, 2015
  7. Junio C HamanoAug 14, 2015
  8. Eric SunshineAug 14, 2015
  9. Renato BotelhoAug 18, 2015
  10. Eric SunshineAug 18, 2015
  11. Renato BotelhoAug 18, 2015

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.