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

Re: [PATCH] NO_PERL support

From
Jeff King <peff@peff.net>
Date
Apr 3, 2009, 15:46 UTC
Message-ID
<20090403154608.GA27089@coredump.intra.peff.net>
In-Reply-To
<20090403T065545Z@curie.orbis-terrarum.net>
Also, a few meta-issues with this patch.

One is that the usual practice is to send patches inline rather than attaching them.

Another is that this text:
Show 15 quoted lines
> The attached patch adds NO_PERL to the build system, in the same fashion
> as NO_TCLTK.
> 
> Effects:
> - No perl-based scripts or code are installed:
> 	$SCRIPT_PERL
> 	git-instaweb
> 	gitweb
> 	git-cvsserver
> 	git-svn
> - git-add does NOT have interactive support.
> - None of the tests for the disabled stuff gets run.
> 
> This patch has been a optional part of the Gentoo build of Git for a
> full year now, originally introduced with v1.5.4.4.
should go with the patch as part of the commit message along with this:
Show 19 quoted lines
> Implement 95% of the NO_PERL functionality, to build Git without any Perl
> support, because some Gentoo users want a Git without any Perl whatesoever
> (Gentoo bug #214168).
> 
> Remaining bits are doing configure.ac as well as git-remote usage in:
> t5502-quickfetch.sh
> t5512-ls-remote.sh
> t5520-pull.sh
> 
> Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
> Updated-by: Bernd Lommerzheim <bernd@lommerzheim.com>
> Bugzilla-URL: http://bugs.gentoo.org/show_bug.cgi?id=214168
> Notes: Ported from 20080423-git-1.5.5.1-noperl.patch
> Notes: Ported from 20080322-git-1.5.4.5-noperl.patch
> Notes: Ported from 20080528-git-1.5.6.1-noperl.patch
> Notes: Ported from 20080626-git-1.5.6.1-noperl.patch and 20081123-git-1.6.0.4-noperl-cvsserver.patch
> Notes: Ported from 20090126-git-1.6.1.1-noperl.patch
> Notes: t3701-add-interactive.sh block added 2009/04/02 as it was missed, broke
>        testsuite with USE=-perl.

If you are using git to prepare your patch, then "git format-patch" should generate the right output.

And finally, these two hunks:
Show 10 quoted lines
> diff --git a/t/t9400-git-cvsserver-server.sh b/t/t9400-git-cvsserver-server.sh
> index 6a37f71..84a0d31 100755
> --- a/t/t9400-git-cvsserver-server.sh
> +++ b/t/t9400-git-cvsserver-server.sh
> @@ -17,6 +17,12 @@ then
> [...]
> diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh
> index 6ed10d0..d4580a4 100755
> --- a/t/t9500-gitweb-standalone-no-errors.sh
> +++ b/t/t9500-gitweb-standalone-no-errors.sh

did not apply for me, to the current 'master' or 'next'. Furthermore, the blobs they are based on aren't even present in my repo, so a 3-way merge was impossible. What did you base this patch on?

-Peff
Previous: Jeff KingNext: Robin H. Johnson
Message 10 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.