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

Re: [PATCH] NO_PERL support

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 3, 2009, 20:20 UTC
Message-ID
<7vocvd8p6s.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090403171514.GA11112@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 8 quoted lines
> Do we want to also skip those? Do we want to place the burden on
> authors of the test suite to always check for NO_PERL whenever they use
> perl?
>
> The other option would be saying "we support building with NO_PERL, but
> not running the test suite".
>
> Thoughts?
Yes, no, and probably not.

Let me clarify the last "probably not" first, because it will be the reason behind the first "Yes".

Saying "We support building but not testing" is like saying "we don't support it", and honestly, we'd be better off leaving this patch out of tree if that is what we are going to do. Even though I am not personally very enthused about NO_PERL, the Makefile patch itself does not look too bad, and if we can finish this with very limited injury to the overall codebase, I wouldn't mind carrying the option in-tree.

        Side note: by the way, what did you or Robin's patch do to
        Documentation/cmd-list.perl and other bits of build infrastructure
        that rely on Perl?

To solve the second "no" cleanly, I am wondering if we can do something clever by defining $PERL to be used in t/t*.sh scripts. They should be using configured PERL_PATH for running the tests _anyway_, even though I see many hits from "git grep -e perl t/" right now.

But even if there isn't a room for doing something clever there, I think the test prerequisite framework J6t did recently should be usable without cluttering the test suite too much. That forces test authors to be aware of NO_PERL, which is slightly yucky, but if it cannot be helped, I think we can survive. We do the same for UTF8 and SYMLINKS already.

Previous: Jeff KingNext: Jeff King
Message 15 of 30 in “NO_PERL support”
  1. NO_PERL supportRobin H. Johnson, Apr 3, 2009
  2. Jeff KingApr 3, 2009
  3. Johannes SchindelinApr 3, 2009
  4. Jeff KingApr 3, 2009
  5. Johannes SchindelinApr 3, 2009
  6. Miklos VajnaApr 3, 2009
  7. Jeff KingApr 3, 2009
  8. Johannes SixtApr 3, 2009
  9. Jeff KingApr 3, 2009
  10. Jeff KingApr 3, 2009
  11. Robin H. JohnsonApr 3, 2009
  12. Jeff KingApr 3, 2009
  13. Junio C HamanoApr 3, 2009
  14. Jeff KingApr 3, 2009
  15. Junio C HamanoApr 3, 2009
  16. Jeff KingApr 3, 2009
  17. 0/4 NO_PERL supportJeff King, Apr 3, 2009
  18. 1/4 commit: abort commit if interactive add failedJeff King, Apr 3, 2009
  19. 2/4 tests: remove exit after test_done callJeff King, Apr 3, 2009
  20. 3/4 Makefile: allow building without perlJeff King, Apr 3, 2009
  21. Robin H. JohnsonApr 4, 2009
  22. Jeff KingApr 4, 2009
  23. Robin H. JohnsonApr 4, 2009
  24. Jeff KingApr 4, 2009
  25. Robin H. JohnsonApr 5, 2009
  26. Jeff KingApr 7, 2009
  27. 4/4 tests: skip perl tests if NO_PERL is definedJeff King, Apr 3, 2009
  28. Robin H. JohnsonApr 4, 2009
  29. Jeff KingApr 4, 2009
  30. Jeff KingApr 7, 2009

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.