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

[RFC PATCH v3 00/15] Modernize the build system

From
Patrick Steinhardt <ps@pks.im>
Date
Oct 18, 2024, 12:23 UTC
Message-ID
<cover.1729254070.git.ps@pks.im>
In-Reply-To
<cover.1727881164.git.ps@pks.im>
Hi,

this is the third version of my patch series that aims to modernize our build system infrastructure. It refactors our existing build infra to be ready for out-of-tree builds and then wires up Meson.

Changes compared to v2:
  - I have split out semi-related changes like the platform
    compatibility fixes into separate series. More on that further down
    below, where I explain the current base.
  - I have polished the CMake-related changes I've been doing as prereqs
    while refactoring our build system. Some of the changes weren't
    tested before, but now CMake works as expected.
  - Fixed up some dependencies in our Makefile, as I didn't amend them
    to depend on the new generator scripts.
  - I have extracted some more scripts to massage our Perl library code,
    shells cripts and gitweb.cgi such that they can be used by Make,
    CMake and Meson. This also fixes generation of "gitweb.cgi" on
    Meson as reported by Ramsay.
  - I have fixed the cyclic dependency in our Makefile that I have
    introduced with v2.
  - I have addressed some feedback regarding "build-systems.txt".
  - I have made things work with OpenBSD 7.6.
  - Things now work on Cygwin and MinGW64 as expected, no more test
    failures except for t9700, which also fails with our Makefile.
  - I have improved how we set up the required tooling on Windows such
    that we detect Git for Windows-provided tools as we do with CMake.
    Like this, VS Code can now trivially import the Meson project and
    configure it. Furthermore, generation of the Visual Studio solution
    is trivial as well. So overall, things work fine now on all the
    important Windows environments that I'm aware of.
  - Several smaller fixes all over the place.
I've included a range-diff, but it's quite crowded overall.

In general I think that this is in a pretty good shape now. I have tested things on NixOS, macOS 10.15, OpenBSD 7.6, FreeBSD 14.1, Windows 10 with MSVC, VS Code, MinGW and Cygwin, and things are generally smooth and just work. I'm sure there's still going to be weirdnesses on some platforms regardless of that.

This series is based on 15030f9556 (The second batch, 2024-10-15) and has the following dependencies:

  - ps/cmake-clar at c6d3e52c91 (cmake: set up proper
    dependencies for generated clar headers, 2024-10-15).
  - ps/upgrade-clar at f3501edb0e (Makefile: adjust sed command for
    generating "clar-decls.h", 2024-10-14).
  - ps/platform-compat-fixes at 80ebd91b83 (http: fix build error on
    FreeBSD, 2024-10-16).

These deps are mostly just there to make tests pass on all platforms, but I wouldn't want folks to go test things and discover breakage that is not caused by Meson itself :) You can also find this version of the patch series at [1], branch "pks-meson-v3". @Taylor, I'm fine with keeping this out of "seen" if you prefer to wait for those dependencies to land first.

Thanks!
Patrick
[1]: https://gitlab.com/gitlab-org/git.git
Patrick Steinhardt (15):
  Makefile: use common template for GIT-BUILD-OPTIONS
  Makefile: consistently use @PLACEHOLDER@ to substitute
  Makefile: consistently use PERL_PATH
  Makefile: extract script to massage Perl scripts
  Makefile: use "generate-perl.sh" to massage Perl library
  Makefile: extract script to massage Shell scripts
  Makefile: extract script to generate gitweb.cgi
  Makefile: refactor GIT-VERSION-GEN to be reusable
  Makefile: refactor generators to be PWD-independent
  Makefile: allow "bin-wrappers/" directory to exist
  Makefile: simplify building of templates
  t: better support for out-of-tree builds
  t: allow overriding build dir
  Documentation: add comparison of build systems
  Introduce support for the Meson build system
 .gitignore                                    |    1 -
 Documentation/CodingGuidelines                |    2 +-
 Documentation/Makefile                        |    1 +
 Documentation/technical/build-systems.txt     |  224 +++
 GIT-BUILD-OPTIONS.in                          |   47 +
 GIT-VERSION-GEN                               |   12 +-
 Makefile                                      |  208 +--
 bin-wrappers/.gitignore                       |    9 +
 bin-wrappers/meson.build                      |   28 +
 bin-wrappers/wrap-for-bin.sh                  |   37 +
 configure.ac                                  |    2 +-
 contrib/buildsystems/CMakeLists.txt           |  218 ++-
 contrib/completion/meson.build                |    8 +
 contrib/meson.build                           |    1 +
 generate-cmdlist.sh                           |   42 +-
 generate-configlist.sh                        |   20 +-
 generate-hooklist.sh                          |   15 +-
 generate-perl.sh                              |   36 +
 generate-script.sh                            |   34 +
 git-cvsserver.perl                            |    2 +-
 git-instaweb.sh                               |    8 +-
 git-request-pull.sh                           |    2 +-
 git-send-email.perl                           |    2 +-
 git-sh-i18n.sh                                |    6 +-
 git-sh-setup.sh                               |    6 +-
 git-svn.perl                                  |    2 +-
 gitk-git/po/vi.po                             |    2 +-
 gitweb/GITWEB-BUILD-OPTIONS.in                |   25 +
 gitweb/Makefile                               |   58 +-
 gitweb/generate-gitweb.sh                     |   45 +
 gitweb/gitweb.perl                            |   44 +-
 gitweb/meson.build                            |   63 +
 meson.build                                   | 1614 +++++++++++++++++
 meson_options.txt                             |   70 +
 perl/FromCPAN/Mail/meson.build                |    7 +
 perl/FromCPAN/meson.build                     |    9 +
 perl/Git/I18N.pm                              |    6 +-
 perl/Git/LoadCPAN.pm                          |    6 +-
 perl/Git/LoadCPAN/Mail/meson.build            |    7 +
 perl/Git/LoadCPAN/meson.build                 |    9 +
 perl/Git/SVN/Memoize/meson.build              |    7 +
 perl/Git/SVN/meson.build                      |   20 +
 perl/Git/meson.build                          |   18 +
 .../header_templates/fixed_prefix.template.pl |    2 +-
 .../runtime_prefix.template.pl                |    8 +-
 perl/meson.build                              |   12 +
 po/meson.build                                |   28 +
 subprojects/.gitignore                        |    1 +
 subprojects/curl.wrap                         |   13 +
 subprojects/expat.wrap                        |   13 +
 subprojects/openssl.wrap                      |   15 +
 subprojects/pcre2.wrap                        |   16 +
 subprojects/zlib.wrap                         |   13 +
 t/helper/meson.build                          |   91 +
 t/lib-gettext.sh                              |    4 +-
 t/meson.build                                 | 1103 +++++++++++
 t/t7609-mergetool--lib.sh                     |    2 +-
 t/test-lib.sh                                 |   22 +-
 templates/Makefile                            |   39 +-
 templates/branches--                          |    1 -
 templates/{this--description => description}  |    0
 .../applypatch-msg.sample}                    |    0
 .../commit-msg.sample}                        |    0
 .../fsmonitor-watchman.sample}                |    0
 templates/hooks/meson.build                   |   24 +
 .../post-update.sample}                       |    0
 .../pre-applypatch.sample}                    |    0
 .../pre-commit.sample}                        |    0
 .../pre-merge-commit.sample}                  |    0
 .../pre-push.sample}                          |    0
 .../pre-rebase.sample}                        |    0
 .../pre-receive.sample}                       |    0
 .../prepare-commit-msg.sample}                |    0
 .../push-to-checkout.sample}                  |    0
 .../sendemail-validate.sample}                |    0
 .../update.sample}                            |    0
 templates/{info--exclude => info/exclude}     |    0
 templates/info/meson.build                    |    5 +
 templates/meson.build                         |   13 +
 unimplemented.sh                              |    2 +-
 wrap-for-bin.sh                               |   36 -
 81 files changed, 4040 insertions(+), 406 deletions(-)
 create mode 100644 Documentation/technical/build-systems.txt
 create mode 100644 GIT-BUILD-OPTIONS.in
 create mode 100644 bin-wrappers/.gitignore
 create mode 100644 bin-wrappers/meson.build
 create mode 100755 bin-wrappers/wrap-for-bin.sh
 create mode 100644 contrib/completion/meson.build
 create mode 100644 contrib/meson.build
 create mode 100755 generate-perl.sh
 create mode 100755 generate-script.sh
 create mode 100644 gitweb/GITWEB-BUILD-OPTIONS.in
 create mode 100755 gitweb/generate-gitweb.sh
 create mode 100644 gitweb/meson.build
 create mode 100644 meson.build
 create mode 100644 meson_options.txt
 create mode 100644 perl/FromCPAN/Mail/meson.build
 create mode 100644 perl/FromCPAN/meson.build
 create mode 100644 perl/Git/LoadCPAN/Mail/meson.build
 create mode 100644 perl/Git/LoadCPAN/meson.build
 create mode 100644 perl/Git/SVN/Memoize/meson.build
 create mode 100644 perl/Git/SVN/meson.build
 create mode 100644 perl/Git/meson.build
 create mode 100644 perl/meson.build
 create mode 100644 po/meson.build
 create mode 100644 subprojects/.gitignore
 create mode 100644 subprojects/curl.wrap
 create mode 100644 subprojects/expat.wrap
 create mode 100644 subprojects/openssl.wrap
 create mode 100644 subprojects/pcre2.wrap
 create mode 100644 subprojects/zlib.wrap
 create mode 100644 t/helper/meson.build
 create mode 100644 t/meson.build
 delete mode 100644 templates/branches--
 rename templates/{this--description => description} (100%)
 rename templates/{hooks--applypatch-msg.sample => hooks/applypatch-msg.sample} (100%)
 rename templates/{hooks--commit-msg.sample => hooks/commit-msg.sample} (100%)
 rename templates/{hooks--fsmonitor-watchman.sample => hooks/fsmonitor-watchman.sample} (100%)
 create mode 100644 templates/hooks/meson.build
 rename templates/{hooks--post-update.sample => hooks/post-update.sample} (100%)
 rename templates/{hooks--pre-applypatch.sample => hooks/pre-applypatch.sample} (100%)
 rename templates/{hooks--pre-commit.sample => hooks/pre-commit.sample} (100%)
 rename templates/{hooks--pre-merge-commit.sample => hooks/pre-merge-commit.sample} (100%)
 rename templates/{hooks--pre-push.sample => hooks/pre-push.sample} (100%)
 rename templates/{hooks--pre-rebase.sample => hooks/pre-rebase.sample} (100%)
 rename templates/{hooks--pre-receive.sample => hooks/pre-receive.sample} (100%)
 rename templates/{hooks--prepare-commit-msg.sample => hooks/prepare-commit-msg.sample} (100%)
 rename templates/{hooks--push-to-checkout.sample => hooks/push-to-checkout.sample} (100%)
 rename templates/{hooks--sendemail-validate.sample => hooks/sendemail-validate.sample} (100%)
 rename templates/{hooks--update.sample => hooks/update.sample} (100%)
 rename templates/{info--exclude => info/exclude} (100%)
 create mode 100644 templates/info/meson.build
 create mode 100644 templates/meson.build
 delete mode 100644 wrap-for-bin.sh
Range-diff against v2:
 1:  6dd59db9b2b <  -:  ----------- t/test-lib: fix quoting of TEST_RESULTS_SAN_FILE
 2:  5ec91ac12da <  -:  ----------- t/test-lib: wire up NO_ICONV prerequisite
 3:  94664e2cc06 <  -:  ----------- t/lib-gitweb: test against the build version of gitweb
 4:  ffb661dad71 <  -:  ----------- t/lib-gpg: fix setup of GNUPGHOME in MinGW
 5:  958cf3a6b57 <  -:  ----------- t1401: make invocation of tar(1) work with Win32-provided one
 6:  bada3a82fdd <  -:  ----------- t3404: work around platform-specific behaviour on macOS 10.15
 7:  b4bdefe9e34 <  -:  ----------- t5500, t5601: skip tests which exercise paths with '[::1]' on Cygwin
 8:  48ce19d876f <  -:  ----------- t7300: work around platform-specific behaviour with long paths on MinGW
 9:  73b4362164a <  -:  ----------- t/unit-tests: update clar unit test framework
10:  161f6b063af <  -:  ----------- builtin/credential-cache: fix missing parameter for stub function
11:  e4ef4bdf1c5 <  -:  ----------- http: fix build error on FreeBSD
12:  6ea97bc92f2 <  -:  ----------- Makefile: extract script to generate clar declarations
16:  dbf9e39e3df =  1:  800fb080f45 Makefile: use common template for GIT-BUILD-OPTIONS
17:  97b9789dd68 !  2:  1a4a23c66ca Makefile: consistently use @PLACEHOLDER@ to substitute
    @@ Makefile: GIT-SCRIPT-DEFINES: FORCE
          $@.sh >$@+
      endef
      
    +@@ Makefile: $(SCRIPT_PERL_GEN): % : %.perl GIT-PERL-DEFINES GIT-PERL-HEADER GIT-VERSION-FILE
    + 	    -e '	r GIT-PERL-HEADER' \
    + 	    -e '	G' \
    + 	    -e '}' \
    +-	    -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
    ++	    -e 's/@GIT_VERSION@/$(GIT_VERSION)/g' \
    + 	    $< >$@+ && \
    + 	chmod +x $@+ && \
    + 	mv $@+ $@
     @@ Makefile: GIT-PERL-HEADER: $(PERL_HEADER_TEMPLATE) GIT-PERL-DEFINES Makefile
      	INSTLIBDIR='$(perllibdir_SQ)' && \
      	INSTLIBDIR_EXTRA='$(PERLLIB_EXTRA_SQ)' && \
    @@ contrib/buildsystems/CMakeLists.txt: set(wrapper_test_scripts
      
      #options for configuring test options
     
    - ## generate-perl.sh ##
    -@@ generate-perl.sh: sed -e '1{' \
    -     -e "	r $PERL_HEADER" \
    -     -e '	G' \
    -     -e '}' \
    --    -e "s/@@GIT_VERSION@@/$GIT_VERSION/g" \
    -+    -e "s/@GIT_VERSION@/$GIT_VERSION/g" \
    -     "$PERL_SCRIPT" >"$OUT"
    - chmod a+x "$OUT"
    -
      ## git-cvsserver.perl ##
     @@
      use File::Basename;
18:  1ee9c61fc33 =  3:  8261f108968 Makefile: consistently use PERL_PATH
13:  7f567d7ce23 !  4:  4894179b948 Makefile: extract script to massage Perl scripts
    @@ Commit message
     
      ## Makefile ##
     @@ Makefile: endif
    + 
      PERL_DEFINES += $(gitexecdir) $(perllibdir) $(localedir)
      
    - $(SCRIPT_PERL_GEN): % : %.perl GIT-PERL-DEFINES GIT-PERL-HEADER GIT-VERSION-FILE
    +-$(SCRIPT_PERL_GEN): % : %.perl GIT-PERL-DEFINES GIT-PERL-HEADER GIT-VERSION-FILE
     -	$(QUIET_GEN) \
     -	sed -e '1{' \
     -	    -e '	s|#!.*perl|#!$(PERL_PATH_SQ)|' \
     -	    -e '	r GIT-PERL-HEADER' \
     -	    -e '	G' \
     -	    -e '}' \
    --	    -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
    +-	    -e 's/@GIT_VERSION@/$(GIT_VERSION)/g' \
     -	    $< >$@+ && \
     -	chmod +x $@+ && \
    -+	$(QUIET_GEN)$(SHELL_PATH) generate-perl.sh $(GIT_VERSION) GIT-PERL-HEADER "$(PERL_PATH_SQ)" "$<" "$@+" && \
    ++$(SCRIPT_PERL_GEN): % : %.perl generate-perl.sh GIT-PERL-DEFINES GIT-PERL-HEADER GIT-VERSION-FILE
    ++	$(QUIET_GEN)$(SHELL_PATH) generate-perl.sh ./GIT-BUILD-OPTIONS $(GIT_VERSION) GIT-PERL-HEADER "$<" "$@+" && \
      	mv $@+ $@
      
      PERL_DEFINES := $(subst $(space),:,$(PERL_DEFINES))
     
    + ## contrib/buildsystems/CMakeLists.txt ##
    +@@ contrib/buildsystems/CMakeLists.txt: foreach(script ${git_shell_scripts})
    + endforeach()
    + 
    + #perl scripts
    +-parse_makefile_for_scripts(git_perl_scripts "SCRIPT_PERL" ".perl")
    ++parse_makefile_for_scripts(git_perl_scripts "SCRIPT_PERL" "")
    + 
    + #create perl header
    + file(STRINGS ${CMAKE_SOURCE_DIR}/perl/header_templates/fixed_prefix.template.pl perl_header )
    + string(REPLACE "@PATHSEP@" ":" perl_header "${perl_header}")
    + string(REPLACE "@INSTLIBDIR@" "${INSTLIBDIR}" perl_header "${perl_header}")
    ++file(WRITE ${CMAKE_BINARY_DIR}/PERL-HEADER ${perl_header})
    + 
    + foreach(script ${git_perl_scripts})
    +-	file(STRINGS ${CMAKE_SOURCE_DIR}/${script}.perl content NEWLINE_CONSUME)
    +-	string(REPLACE "#!/usr/bin/perl" "#!/usr/bin/perl\n${perl_header}\n" content "${content}")
    +-	string(REPLACE "@GIT_VERSION@" "${PROJECT_VERSION}" content "${content}")
    +-	file(WRITE ${CMAKE_BINARY_DIR}/${script} ${content})
    ++	string(REPLACE ".perl" "" perl_gen_path "${script}")
    ++
    ++	add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${perl_gen_path}
    ++		COMMAND ${CMAKE_SOURCE_DIR}/generate-perl.sh
    ++			${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS
    ++			${PROJECT_VERSION}
    ++			${CMAKE_BINARY_DIR}/PERL-HEADER
    ++			${CMAKE_SOURCE_DIR}/${script}
    ++			${CMAKE_BINARY_DIR}/${perl_gen_path}
    ++		DEPENDS ${CMAKE_SOURCE_DIR}/generate-perl.sh
    ++			${CMAKE_SOURCE_DIR}/${script})
    ++	list(APPEND perl_gen ${CMAKE_BINARY_DIR}/${perl_gen_path})
    + endforeach()
    ++add_custom_target(perl-gen ALL DEPENDS ${perl_gen})
    + 
    + #python script
    + file(STRINGS ${CMAKE_SOURCE_DIR}/git-p4.py content NEWLINE_CONSUME)
    +
      ## generate-perl.sh (new) ##
     @@
     +#!/bin/sh
     +
    ++set -e
    ++
     +if test $# -ne 5
     +then
    -+	echo "USAGE: $0 <GIT_VERSION> <PERL_HEADER> <PERL_PATH> <PERL_SCRIPT> <OUT>" >&2
    ++	echo "USAGE: $0 <GIT_BUILD_OPTIONS> <GIT_VERSION> <PERL_HEADER> <INPUT> <OUTPUT>" >&2
     +	exit 1
     +fi
     +
    -+GIT_VERSION="$1"
    -+PERL_HEADER="$2"
    -+PERL_PATH="$3"
    -+PERL_SCRIPT="$4"
    -+OUT="$5"
    ++GIT_BUILD_OPTIONS="$1"
    ++GIT_VERSION="$2"
    ++PERL_HEADER="$3"
    ++INPUT="$4"
    ++OUTPUT="$5"
    ++
    ++. "$GIT_BUILD_OPTIONS"
     +
     +sed -e '1{' \
     +    -e "	s|#!.*perl|#!$PERL_PATH|" \
     +    -e "	r $PERL_HEADER" \
     +    -e '	G' \
     +    -e '}' \
    -+    -e "s/@@GIT_VERSION@@/$GIT_VERSION/g" \
    -+    "$PERL_SCRIPT" >"$OUT"
    -+chmod a+x "$OUT"
    ++    -e "s/@GIT_VERSION@/$GIT_VERSION/g" \
    ++    "$INPUT" >"$OUTPUT"
    ++chmod a+x "$OUTPUT"
 -:  ----------- >  5:  b40bc302291 Makefile: use "generate-perl.sh" to massage Perl library
 -:  ----------- >  6:  c13ce99be3a Makefile: extract script to massage Shell scripts
 -:  ----------- >  7:  ebffd855836 Makefile: extract script to generate gitweb.cgi
14:  dfc941cd18d !  8:  d2cdfad10f5 Makefile: refactor GIT-VERSION-GEN to be reusable
    @@ Commit message
         easier to compute the same version as our Makefile would without having
         to write the "GIT-VERSION-FILE".
     
    -    We should ideally refactor our CMake build instructions to stop writing
    -    into the source directory. But this step is out of scope of the current
    -    patch series.
    -
         Signed-off-by: Patrick Steinhardt <ps@pks.im>
     
      ## GIT-VERSION-GEN ##
    @@ GIT-VERSION-GEN
      #!/bin/sh
      
     -GVF=GIT-VERSION-FILE
    - DEF_VER=v2.47.0
    + DEF_VER=v2.47.GIT
      
      LF='
     @@ GIT-VERSION-GEN: fi
    @@ Makefile: include shared.mak
      # Set our default configuration.
     
      ## contrib/buildsystems/CMakeLists.txt ##
    -@@ contrib/buildsystems/CMakeLists.txt: endif()
    - if(NOT EXISTS ${CMAKE_SOURCE_DIR}/GIT-VERSION-FILE)
    - 	message("Generating GIT-VERSION-FILE")
    - 	execute_process(COMMAND ${SH_EXE} ${CMAKE_SOURCE_DIR}/GIT-VERSION-GEN
    --		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
    -+		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
    -+		OUTPUT_VARIABLE GIT_VERSION
    -+		OUTPUT_STRIP_TRAILING_WHITESPACE)
    -+	file(WRITE ${CMAKE_BINARY_DIR}/GIT-BUILD-OPTIONS "GIT_VERSION = '${GIT_VERSION}'\n")
    +@@ contrib/buildsystems/CMakeLists.txt: if(NOT SH_EXE)
    + 			"On Windows, you can get it as part of 'Git for Windows' install at https://gitforwindows.org/")
      endif()
      
    +-#Create GIT-VERSION-FILE using GIT-VERSION-GEN
    +-if(NOT EXISTS ${CMAKE_SOURCE_DIR}/GIT-VERSION-FILE)
    +-	message("Generating GIT-VERSION-FILE")
    +-	execute_process(COMMAND ${SH_EXE} ${CMAKE_SOURCE_DIR}/GIT-VERSION-GEN
    +-		WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
    +-endif()
    ++execute_process(COMMAND ${SH_EXE} ${CMAKE_SOURCE_DIR}/GIT-VERSION-GEN
    ++	WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
    ++	OUTPUT_VARIABLE git_version
    ++	OUTPUT_STRIP_TRAILING_WHITESPACE)
    + 
      #Parse GIT-VERSION-FILE to get the version
    +-file(STRINGS ${CMAKE_SOURCE_DIR}/GIT-VERSION-FILE git_version REGEX "GIT_VERSION = (.*)")
    +-string(REPLACE "GIT_VERSION = " "" git_version ${git_version})
    + string(FIND ${git_version} "GIT" location)
    + if(location EQUAL -1)
    + 	string(REGEX MATCH "[0-9]*\\.[0-9]*\\.[0-9]*" git_version ${git_version})
15:  e468d3751f0 !  9:  9be0719ce1b Makefile: refactor generators to be PWD-independent
    @@ contrib/buildsystems/CMakeLists.txt: set(EXCLUSION_PROGS_CACHE ${EXCLUSION_PROGS
     -	execute_process(COMMAND ${SH_EXE} ${CMAKE_SOURCE_DIR}/generate-configlist.sh
     -			WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
     -			OUTPUT_FILE ${CMAKE_BINARY_DIR}/config-list.h)
    -+	execute_process(COMMAND ${SH_EXE} ${CMAKE_SOURCE_DIR}/generate-configlist.sh ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}/config.list)
    ++	execute_process(COMMAND ${SH_EXE} ${CMAKE_SOURCE_DIR}/generate-configlist.sh ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}/config-list.h)
      endif()
      
      if(NOT EXISTS ${CMAKE_BINARY_DIR}/hook-list.h)
19:  9fd1aeb1e96 ! 10:  93869e53178 Makefile: allow "bin-wrappers/" directory to exist
    @@ Makefile: test_bindir_programs := $(patsubst %,bin-wrappers/%,$(BINDIR_PROGRAMS_
      
     -bin-wrappers/%: wrap-for-bin.sh
     -	$(call mkdir_p_parent_template)
    -+bin-wrappers/%: bin-wrappers/wrap-for-bin.sh
    ++$(test_bindir_programs): bin-wrappers/%: bin-wrappers/wrap-for-bin.sh
      	$(QUIET_GEN)sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
      	     -e 's|@BUILD_DIR@|$(shell pwd)|' \
      	     -e 's|@PROG@|$(patsubst test-%,t/helper/test-%,$(@F))$(if $(filter-out $(BINDIR_PROGRAMS_NO_X),$(@F)),$(X),)|' < $< > $@ && \
20:  4eda54cf0f5 ! 11:  1c37d6d1f19 Makefile: simplify building of templates
    @@ Commit message
         Signed-off-by: Patrick Steinhardt <ps@pks.im>
     
      ## contrib/buildsystems/CMakeLists.txt ##
    -@@ contrib/buildsystems/CMakeLists.txt: endforeach()
    +@@ contrib/buildsystems/CMakeLists.txt: project(git
    + #TODO Enable NLS on windows natively
      
    + #macros for parsing the Makefile for sources and scripts
    +-macro(parse_makefile_for_sources list_var regex)
    +-	file(STRINGS ${CMAKE_SOURCE_DIR}/Makefile ${list_var} REGEX "^${regex} \\+=(.*)")
    ++macro(parse_makefile_for_sources list_var makefile regex)
    ++	file(STRINGS ${makefile} ${list_var} REGEX "^${regex} \\+=(.*)")
    + 	string(REPLACE "${regex} +=" "" ${list_var} ${${list_var}})
    + 	string(REPLACE "$(COMPAT_OBJS)" "" ${list_var} ${${list_var}}) #remove "$(COMPAT_OBJS)" This is only for libgit.
    + 	string(STRIP ${${list_var}} ${list_var}) #remove trailing/leading whitespaces
    +@@ contrib/buildsystems/CMakeLists.txt: include_directories(${CMAKE_BINARY_DIR})
      
    - #templates
    --file(GLOB templates "${CMAKE_SOURCE_DIR}/templates/*")
    -+file(GLOB templates "${CMAKE_SOURCE_DIR}/templates/**")
    - list(TRANSFORM templates REPLACE "${CMAKE_SOURCE_DIR}/templates/" "")
    - list(REMOVE_ITEM templates ".gitignore")
    - list(REMOVE_ITEM templates "Makefile")
    - list(REMOVE_ITEM templates "blt")# Prevents an error when reconfiguring for in source builds
    + #build
    + #libgit
    +-parse_makefile_for_sources(libgit_SOURCES "LIB_OBJS")
    ++parse_makefile_for_sources(libgit_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "LIB_OBJS")
    + 
    + list(TRANSFORM libgit_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")
    + list(TRANSFORM compat_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")
    + add_library(libgit ${libgit_SOURCES} ${compat_SOURCES})
    + 
    + #libxdiff
    +-parse_makefile_for_sources(libxdiff_SOURCES "XDIFF_OBJS")
    ++parse_makefile_for_sources(libxdiff_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "XDIFF_OBJS")
    + 
    + list(TRANSFORM libxdiff_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")
    + add_library(xdiff STATIC ${libxdiff_SOURCES})
    + 
    + #reftable
    +-parse_makefile_for_sources(reftable_SOURCES "REFTABLE_OBJS")
    ++parse_makefile_for_sources(reftable_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "REFTABLE_OBJS")
    + 
    + list(TRANSFORM reftable_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")
    + add_library(reftable STATIC ${reftable_SOURCES})
    +@@ contrib/buildsystems/CMakeLists.txt: elseif(UNIX)
    + endif()
    + 
    + #git
    +-parse_makefile_for_sources(git_SOURCES "BUILTIN_OBJS")
    ++parse_makefile_for_sources(git_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "BUILTIN_OBJS")
      
    + list(TRANSFORM git_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/")
    + add_executable(git ${CMAKE_SOURCE_DIR}/git.c ${git_SOURCES})
    +@@ contrib/buildsystems/CMakeLists.txt: file(STRINGS ${CMAKE_SOURCE_DIR}/git-p4.py content NEWLINE_CONSUME)
    + string(REPLACE "#!/usr/bin/env python" "#!/usr/bin/python" content "${content}")
    + file(WRITE ${CMAKE_BINARY_DIR}/git-p4 ${content})
    + 
    +-#templates
    +-file(GLOB templates "${CMAKE_SOURCE_DIR}/templates/*")
    +-list(TRANSFORM templates REPLACE "${CMAKE_SOURCE_DIR}/templates/" "")
    +-list(REMOVE_ITEM templates ".gitignore")
    +-list(REMOVE_ITEM templates "Makefile")
    +-list(REMOVE_ITEM templates "blt")# Prevents an error when reconfiguring for in source builds
    +-
     -list(REMOVE_ITEM templates "branches--")
     -file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/templates/blt/branches) #create branches
     -
    ++#${CMAKE_SOURCE_DIR}/Makefile templates
    ++parse_makefile_for_sources(templates ${CMAKE_SOURCE_DIR}/templates/Makefile "TEMPLATES")
    ++string(REPLACE " " ";" templates ${templates})
      #templates have @.*@ replacement so use configure_file instead
      foreach(tm ${templates})
     -	string(REPLACE "--" "/" blt_tm ${tm})
     -	string(REPLACE "this" "" blt_tm ${blt_tm})# for this--
    - 	configure_file(${CMAKE_SOURCE_DIR}/templates/${tm} ${CMAKE_BINARY_DIR}/templates/blt/${blt_tm} @ONLY)
    +-	configure_file(${CMAKE_SOURCE_DIR}/templates/${tm} ${CMAKE_BINARY_DIR}/templates/blt/${blt_tm} @ONLY)
    ++	configure_file(${CMAKE_SOURCE_DIR}/templates/${tm} ${CMAKE_BINARY_DIR}/templates/blt/${tm} @ONLY)
      endforeach()
      
     -
      #translations
      if(MSGFMT_EXE)
      	file(GLOB po_files "${CMAKE_SOURCE_DIR}/po/*.po")
    +@@ contrib/buildsystems/CMakeLists.txt: add_executable(test-fake-ssh ${CMAKE_SOURCE_DIR}/t/helper/test-fake-ssh.c)
    + target_link_libraries(test-fake-ssh common-main)
    + 
    + #unit-tests
    +-parse_makefile_for_sources(unit-test_SOURCES "UNIT_TEST_OBJS")
    ++parse_makefile_for_sources(unit-test_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "UNIT_TEST_OBJS")
    + list(TRANSFORM unit-test_SOURCES REPLACE "\\$\\(UNIT_TEST_DIR\\)/" "${CMAKE_SOURCE_DIR}/t/unit-tests/")
    + add_library(unit-test-lib STATIC ${unit-test_SOURCES})
    + 
    +@@ contrib/buildsystems/CMakeLists.txt: if(MSVC)
    + endif()
    + 
    + #test-tool
    +-parse_makefile_for_sources(test-tool_SOURCES "TEST_BUILTINS_OBJS")
    ++parse_makefile_for_sources(test-tool_SOURCES ${CMAKE_SOURCE_DIR}/Makefile "TEST_BUILTINS_OBJS")
    + add_library(test-lib OBJECT ${CMAKE_SOURCE_DIR}/t/unit-tests/test-lib.c)
    + 
    + list(TRANSFORM test-tool_SOURCES PREPEND "${CMAKE_SOURCE_DIR}/t/helper/")
     
      ## templates/Makefile ##
     @@ templates/Makefile: all: boilerplates.made custom
    @@ templates/Makefile: all: boilerplates.made custom
     -boilerplates.made : $(bpsrc)
     -	$(QUIET)umask 022 && ls *--* 2>/dev/null | \
     -	while read boilerplate; \
    -+TEMPLATES  = description
    ++TEMPLATES  =
    ++TEMPLATES += description
     +TEMPLATES += hooks/applypatch-msg.sample
     +TEMPLATES += hooks/commit-msg.sample
     +TEMPLATES += hooks/fsmonitor-watchman.sample
21:  1172c440600 ! 12:  c45d2df6b8d t: better support for out-of-tree builds
    @@ GIT-BUILD-OPTIONS.in: GIT_PERF_MAKE_COMMAND=@GIT_PERF_MAKE_COMMAND@
     +GIT_TEST_GITPERLLIB=@GIT_TEST_GITPERLLIB@
     +GIT_TEST_MERGE_TOOLS_DIR=@GIT_TEST_MERGE_TOOLS_DIR@
      RUNTIME_PREFIX=@RUNTIME_PREFIX@
    + GITWEBDIR=@GITWEBDIR@
    + USE_GETTEXT_SCHEME=@USE_GETTEXT_SCHEME@
     
      ## Makefile ##
     @@ Makefile: GIT-BUILD-OPTIONS: FORCE
    @@ Makefile: GIT-BUILD-OPTIONS: FORCE
     +		-e "s|@GIT_TEST_GITPERLLIB@|\'$(shell pwd)/perl/build/lib\'|" \
     +		-e "s|@GIT_TEST_MERGE_TOOLS_DIR@|\'$(shell pwd)/mergetools\'|" \
      		-e "s|@RUNTIME_PREFIX@|\'$(RUNTIME_PREFIX)\'|" \
    - 		GIT-BUILD-OPTIONS.in >$@+
    - 	@if cmp $@+ $@ >/dev/null 2>&1; then $(RM) $@+; else mv $@+ $@; fi
    + 		-e "s|@GITWEBDIR@|\'$(gitwebdir_SQ)\'|" \
    + 		-e "s|@USE_GETTEXT_SCHEME@|\'$(USE_GETTEXT_SCHEME)\'|" \
     @@ Makefile: all:: $(TEST_PROGRAMS) $(test_bindir_programs) $(UNIT_TEST_PROGS) $(CLAR_TEST_PR
    - bin-wrappers/%: bin-wrappers/wrap-for-bin.sh
    + $(test_bindir_programs): bin-wrappers/%: bin-wrappers/wrap-for-bin.sh
      	$(QUIET_GEN)sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
      	     -e 's|@BUILD_DIR@|$(shell pwd)|' \
     +	     -e 's|@GIT_TEXTDOMAINDIR@|$(shell pwd)/po/build/locale|' \
    @@ contrib/buildsystems/CMakeLists.txt: endforeach()
      string(REPLACE "@PROG@" "git-cvsserver" content "${content}")
      file(WRITE ${CMAKE_BINARY_DIR}/bin-wrappers/git-cvsserver ${content})
      
    -@@ contrib/buildsystems/CMakeLists.txt: string(REPLACE "@GIT_INTEROP_MAKE_OPTS@" "" git_build_options "${git_build_optio
    +@@ contrib/buildsystems/CMakeLists.txt: string(REPLACE "@GIT_PERF_MAKE_COMMAND@" "" git_build_options "${git_build_optio
    + string(REPLACE "@GIT_INTEROP_MAKE_OPTS@" "" git_build_options "${git_build_options}")
      string(REPLACE "@GIT_TEST_INDEX_VERSION@" "" git_build_options "${git_build_options}")
      string(REPLACE "@GIT_TEST_PERL_FATAL_WARNINGS@" "" git_build_options "${git_build_options}")
    - string(REPLACE "@RUNTIME_PREFIX@" "${RUNTIME_PREFIX}" git_build_options "${git_build_options}")
     +string(REPLACE "@GIT_TEST_TEXTDOMAINDIR@" "${CMAKE_BINARY_DIR}/po/build/locale" git_build_options "${git_build_options}")
     +string(REPLACE "@GIT_TEST_POPATH@" "${CMAKE_BINARY_DIR}/po" git_build_options "${git_build_options}")
     +string(REPLACE "@GIT_TEST_TEMPLATE_DIR@" "${CMAKE_BINARY_DIR}/templates/blt" git_build_options "${git_build_options}")
     +string(REPLACE "@GIT_TEST_GITPERLLIB@" "${CMAKE_BINARY_DIR}/perl/build/lib" git_build_options "${git_build_options}")
     +string(REPLACE "@GIT_TEST_MERGE_TOOLS_DIR@" "${RUNTIME_PREFIX}" git_build_options "${git_build_options}")
    - if(USE_VCPKG)
    - 	string(APPEND git_build_options "PATH=\"$PATH:$TEST_DIRECTORY/../compat/vcbuild/vcpkg/installed/x64-windows/bin\"\n")
    - endif()
    + string(REPLACE "@RUNTIME_PREFIX@" "${RUNTIME_PREFIX}" git_build_options "${git_build_options}")
    + string(REPLACE "@GITWEBDIR@" "${GITWEBDIR}" git_build_options "${git_build_options}")
    + string(REPLACE "@USE_GETTEXT_SCHEME@" "" git_build_options "${git_build_options}")
     
      ## t/lib-gettext.sh ##
     @@
22:  b5cd5250b77 = 13:  542b01515e1 t: allow overriding build dir
23:  afa2f79d46c ! 14:  bd59e31bb55 Documentation: add comparison of build systems
    @@ Documentation/technical/build-systems.txt (new)
     +== Requirements
     +
     +The following subsections present a list of requirements that we have for any
    -+potential build system. Sections are sorted by decreasing priority, even though
    -+these priorities will naturally differ between users.
    ++potential build system. Sections are sorted by decreasing priority.
     +
     +=== Platform support
     +
    -+The build system must have support for all of our primary platforms as outlined
    -+by. These platforms are:
    ++The build system must have support for all of our platforms that we continually
    ++test against as outlined by our platform support policy. These platforms are:
     +
     +  - Linux
     +  - Windows
     +  - macOS
     +
    -+Furthermore, the build system should have support for the following secondary
    -+platforms:
    ++Furthermore, the build system should have support for the following platforms
    ++that generally have somebody running test pipelines against regularly:
     +
     +  - AIX
     +  - FreeBSD
     +  - NetBSD
    ++  - NonStop
     +  - OpenBSD
     +
     +The platforms which must be supported by the tool should be aligned with our
    @@ Documentation/technical/build-systems.txt (new)
     +  - Detection of available features.
     +  - Discovery of relevant toolchains.
     +  - Linking libraries and executables.
    ++  - Templating placeholders in scripts.
     +
     +=== Test integration
     +
    @@ Documentation/technical/build-systems.txt (new)
     +  - Track build-time dependencies for respective tests. Unit tests have
     +    different requirements than integration tests.
     +  - Allow filtering of which tests to run.
    -+  - Allow interactive tests that drop the user into a shell with `test_pause` or
    -+    `debug`.
    ++  - Allow running tests such that utilities like `test_pause` or `debug` work.
     +
     +== Comparison
     +
24:  724232b0fad ! 15:  ac327d98e9c Introduce support for the Meson build system
    @@ Commit message
     
           - Apple macOS 10.15.
     
    -      - FreeBSD 14.1, except gitweb-based tests.
    +      - FreeBSD 14.1.
     
           - NixOS 24.11.
     
    +      - OpenBSD 7.6.
    +
           - Ubuntu 24.04.
     
    -      - Windows 10 with Cygwin, using `-Dperl=disabled -Dpython=disabled`.
    +      - Windows 10 with Cygwin.
    +
    +      - Windows 10 with MinGW64, except for t9700, which is also broken with
    +        our Makefile.
    +
    +      - Windows 10 with Visual Studio 2022 toolchain, using the Native Tools
    +        Command Prompt with `meson setup --vsenv`. Tests pass, except for
    +        t9700.
     
    -      - Windows 10 with MinGW64, using `-Dperl=disabled -Dpython=disabled`.
    +      - Windows 10 with Visual Studio 2022 solution, using the Native Tools
    +        Command Prompt with `meson setup --backend vs2022`. Tests pass,
    +        except for t9700.
     
    -      - Windows 10 with MSVC 2022, using `-Dperl=disabled -Dpython=disabled
    -        -Dgettext=disabled -Diconv=disabled --wrap-mode=forcefallback`.
    +      - Windows 10 with VS Code, using the Meson plug-in.
     
         It is expected that there will still be rough edges in the current
         version. If this patch lands the expectation is that it will coexist
    @@ Commit message
             dependencies preinstalled, and Meson will fetch and build them
             automatically. This is especially helpful on Windows.
     
    +    Helped-by: Eli Schwartz <eschwartz@gentoo.org>
         Signed-off-by: Patrick Steinhardt <ps@pks.im>
     
      ## bin-wrappers/meson.build (new) ##
    @@ contrib/meson.build (new)
     
      ## gitweb/meson.build (new) ##
     @@
    ++gitweb_config = configuration_data()
    ++gitweb_config.set_quoted('PERL_PATH', perl.full_path())
    ++gitweb_config.set_quoted('CSSMIN', '')
    ++gitweb_config.set_quoted('JSMIN', '')
    ++gitweb_config.set_quoted('GIT_VERSION', git_version)
    ++gitweb_config.set_quoted('GIT_BINDIR', get_option('prefix') / get_option('bindir'))
    ++gitweb_config.set_quoted('GITWEB_CONFIG', get_option('gitweb_config'))
    ++gitweb_config.set_quoted('GITWEB_CONFIG_SYSTEM', get_option('gitweb_config_system'))
    ++gitweb_config.set_quoted('GITWEB_CONFIG_COMMON', get_option('gitweb_config_common'))
    ++gitweb_config.set_quoted('GITWEB_HOME_LINK_STR', get_option('gitweb_home_link_str'))
    ++gitweb_config.set_quoted('GITWEB_SITENAME', get_option('gitweb_sitename'))
    ++gitweb_config.set_quoted('GITWEB_PROJECTROOT', get_option('gitweb_projectroot'))
    ++gitweb_config.set_quoted('GITWEB_PROJECT_MAXDEPTH', get_option('gitweb_project_maxdepth'))
    ++gitweb_config.set_quoted('GITWEB_EXPORT_OK', get_option('gitweb_export_ok'))
    ++gitweb_config.set_quoted('GITWEB_STRICT_EXPORT', get_option('gitweb_strict_export'))
    ++gitweb_config.set_quoted('GITWEB_BASE_URL', get_option('gitweb_base_url'))
    ++gitweb_config.set_quoted('GITWEB_LIST', get_option('gitweb_list'))
    ++gitweb_config.set_quoted('GITWEB_HOMETEXT', get_option('gitweb_hometext'))
    ++gitweb_config.set_quoted('GITWEB_CSS', get_option('gitweb_css'))
    ++gitweb_config.set_quoted('GITWEB_LOGO', get_option('gitweb_logo'))
    ++gitweb_config.set_quoted('GITWEB_FAVICON', get_option('gitweb_favicon'))
    ++gitweb_config.set_quoted('GITWEB_JS', get_option('gitweb_js'))
    ++gitweb_config.set_quoted('GITWEB_SITE_HTML_HEAD_STRING', get_option('gitweb_site_html_head_string'))
    ++gitweb_config.set_quoted('GITWEB_SITE_HEADER', get_option('gitweb_site_header'))
    ++gitweb_config.set_quoted('GITWEB_SITE_FOOTER', get_option('gitweb_site_footer'))
    ++gitweb_config.set_quoted('HIGHLIGHT_BIN', get_option('highlight_bin'))
    ++
     +configure_file(
    ++  input: 'GITWEB-BUILD-OPTIONS.in',
    ++  output: 'GITWEB-BUILD-OPTIONS',
    ++  configuration: gitweb_config,
    ++)
    ++
    ++test_dependencies += custom_target(script,
     +  input: 'gitweb.perl',
     +  output: 'gitweb.cgi',
    -+  configuration: {
    -+    'GIT_VERSION': meson.project_version(),
    -+    'GIT_BINDIR': get_option('prefix') / get_option('bindir'),
    -+    'GITWEB_CONFIG': get_option('gitweb_config'),
    -+    'GITWEB_CONFIG_SYSTEM': get_option('gitweb_config_system'),
    -+    'GITWEB_CONFIG_COMMON': get_option('gitweb_config_common'),
    -+    'GITWEB_HOME_LINK_STR': get_option('gitweb_home_link_str'),
    -+    'GITWEB_SITENAME': get_option('gitweb_sitename'),
    -+    'GITWEB_PROJECTROOT': get_option('gitweb_projectroot'),
    -+    'GITWEB_PROJECT_MAXDEPTH': get_option('gitweb_project_maxdepth'),
    -+    'GITWEB_EXPORT_OK': get_option('gitweb_export_ok'),
    -+    'GITWEB_STRICT_EXPORT': get_option('gitweb_strict_export'),
    -+    'GITWEB_BASE_URL': get_option('gitweb_base_url'),
    -+    'GITWEB_LIST': get_option('gitweb_list'),
    -+    'GITWEB_HOMETEXT': get_option('gitweb_hometext'),
    -+    'GITWEB_CSS': get_option('gitweb_css'),
    -+    'GITWEB_LOGO': get_option('gitweb_logo'),
    -+    'GITWEB_FAVICON': get_option('gitweb_favicon'),
    -+    'GITWEB_JS': get_option('gitweb_js'),
    -+    'GITWEB_SITE_HTML_HEAD_STRING': get_option('gitweb_site_html_head_string'),
    -+    'GITWEB_SITE_HEADER': get_option('gitweb_site_header'),
    -+    'GITWEB_SITE_FOOTER': get_option('gitweb_site_footer'),
    -+    'HIGHLIGHT_BIN': get_option('highlight_bin'),
    -+  },
    ++  command: [
    ++    shell,
    ++    meson.current_source_dir() / 'generate-gitweb.sh',
    ++    meson.current_build_dir() / 'GITWEB-BUILD-OPTIONS',
    ++    '@INPUT@',
    ++    '@OUTPUT@',
    ++  ],
     +  install: true,
     +  install_dir: get_option('datadir') / 'gitweb',
     +)
     +
    -+subdir('static')
    -
    - ## gitweb/static/meson.build (new) ##
    -@@
     +foreach asset : [
    -+  'git-favicon.png',
    -+  'git-logo.png',
    -+  'gitweb.css',
    ++  'static/git-favicon.png',
    ++  'static/git-logo.png',
    ++  'static/gitweb.css',
    ++  'static/js/adjust-timezone.js',
    ++  'static/js/blame_incremental.js',
    ++  'static/js/javascript-detection.js',
    ++  'static/js/lib/common-lib.js',
    ++  'static/js/lib/cookies.js',
    ++  'static/js/lib/datetime.js',
     +]
     +  fs.copyfile(asset,
     +    install: true,
    -+    install_dir: get_option('datadir') / 'gitweb/static',
    ++    install_dir: get_option('datadir') / 'gitweb' / fs.parent(asset),
     +  )
     +endforeach
    -+
    -+javascript_sources = [
    -+  meson.current_source_dir() / 'js/adjust-timezone.js',
    -+  meson.current_source_dir() / 'js/blame_incremental.js',
    -+  meson.current_source_dir() / 'js/javascript-detection.js',
    -+  meson.current_source_dir() / 'js/lib/common-lib.js',
    -+  meson.current_source_dir() / 'js/lib/cookies.js',
    -+  meson.current_source_dir() / 'js/lib/datetime.js',
    -+]
    -+
    -+custom_target(
    -+  input: javascript_sources,
    -+  output: 'gitweb.js',
    -+  capture: true,
    -+  command: ['cat'] + javascript_sources,
    -+  install: true,
    -+  install_dir: get_option('datadir') / 'gitweb/static',
    -+)
     
      ## meson.build (new) ##
     @@
    @@ meson.build (new)
     +  # MSVC does not support GNU99, and C99 does not define __STDC_VERSION__
     +  # on MSVC. So we instead fall back to C11 there.
     +  default_options: ['c_std=gnu99,c11'],
    -+  version: run_command('GIT-VERSION-GEN', check: true).stdout().strip(),
    ++  version: 'v2.47.GIT',
     +)
     +
     +fs = import('fs')
     +
    -+compiler = meson.get_compiler('c')
    ++program_path = []
    ++# Git for Windows provides all the tools we need to build Git.
    ++if host_machine.system() == 'windows'
    ++  program_path += [ 'C:/Program Files/Git/bin', 'C:/Program Files/Git/usr/bin' ]
    ++endif
     +
    -+cygpath = find_program('cygpath', required: false)
    -+shell = find_program('sh')
    -+tar = find_program('tar')
    -+diff = find_program('diff')
    ++awk = find_program('awk', dirs: program_path)
    ++cygpath = find_program('cygpath', dirs: program_path, required: false)
    ++diff = find_program('diff', dirs: program_path)
    ++shell = find_program('sh', dirs: program_path)
    ++tar = find_program('tar', dirs: program_path)
    ++
    ++script_environment = environment()
    ++foreach tool : ['cat', 'cut', 'git', 'grep', 'sed', 'sort', 'tr', 'uname']
    ++  program = find_program(tool, dirs: program_path)
    ++  script_environment.prepend('PATH', fs.parent(program.full_path()))
    ++endforeach
    ++
    ++git_version = run_command(shell, 'GIT-VERSION-GEN', check: false, env: script_environment).stdout().strip()
    ++if git_version == ''
    ++  git_version = meson.project_version()
    ++endif
    ++
    ++compiler = meson.get_compiler('c')
     +
     +libgit_sources = [
     +  'abspath.c',
    @@ meson.build (new)
     +  'reftable/block.c',
     +  'reftable/blocksource.c',
     +  'reftable/iter.c',
    -+  'reftable/publicbasics.c',
     +  'reftable/merged.c',
     +  'reftable/pq.c',
     +  'reftable/reader.c',
    @@ meson.build (new)
     +  'builtin/write-tree.c',
     +]
     +
    -+script_environment = environment()
    -+foreach tool : ['cat', 'cut', 'grep', 'sed', 'sort', 'tr', 'uname']
    -+  program = find_program(tool)
    -+  script_environment.prepend('PATH', fs.parent(program.full_path()))
    -+endforeach
    -+
     +libgit_sources += custom_target(
     +  'command-list.h',
     +  input: 'command-list.txt',
    @@ meson.build (new)
     +build_options_config.set('GIT_TEST_UTF8_LOCALE', '')
     +build_options_config.set('SANITIZE_ADDRESS', '')
     +build_options_config.set('SANITIZE_LEAK', '')
    ++build_options_config.set('BROKEN_PATH_FIX', '')
    ++build_options_config.set_quoted('LOCALEDIR', fs.as_posix(get_option('prefix') / get_option('localedir')))
    ++build_options_config.set('GITWEBDIR', fs.as_posix(get_option('prefix') / get_option('datadir') / 'gitweb'))
     +
     +test_output_directory = get_option('test_output_directory')
     +if test_output_directory == ''
    @@ meson.build (new)
     +
     +# Note that we only set NO_PERL if the Perl features were disabled by the user.
     +# It may not be set when we have found Perl, but only use it to run tests.
    -+perl = find_program('perl', version: '>=5.8.1', required: perl_required)
    ++perl = find_program('perl', version: '>=5.8.1', dirs: program_path, required: perl_required)
     +perl_features_enabled = perl.found() and get_option('perl').allowed()
     +if perl_features_enabled
     +  build_options_config.set('NO_PERL', '')
    ++
    ++  if get_option('runtime_prefix')
    ++    build_options_config.set('PERL_LOCALEDIR', '')
    ++  else
    ++    build_options_config.set_quoted('PERL_LOCALEDIR', fs.as_posix(get_option('prefix') / get_option('localedir')))
    ++  endif
    ++
    ++  if get_option('perl_cpan_fallback')
    ++    build_options_config.set('NO_PERL_CPAN_FALLBACKS', '')
    ++  else
    ++    build_options_config.set_quoted('NO_PERL_CPAN_FALLBACKS', 'YesPlease')
    ++  endif
     +else
     +  libgit_c_args += '-DNO_PERL'
     +  build_options_config.set('NO_PERL', '1')
    ++  build_options_config.set('PERL_LOCALEDIR', '')
    ++  build_options_config.set('NO_PERL_CPAN_FALLBACKS', '')
     +endif
     +
     +zlib = dependency('zlib', default_options: ['default_library=static', 'tests=disabled'])
    -+if zlib.type_name() != 'internal' and not compiler.has_function('deflateBound',
    -+  prefix: '#include <zlib.h>',
    -+  dependencies: zlib,
    -+)
    ++if zlib.version().version_compare('<1.2.0')
     +  libgit_c_args += '-DNO_DEFLATE_BOUND'
     +endif
     +libgit_dependencies += zlib
    @@ meson.build (new)
     +if intl.found()
     +  libgit_dependencies += intl
     +  build_options_config.set('NO_GETTEXT', '')
    ++  build_options_config.set('USE_GETTEXT_SCHEME', '')
     +else
     +  libgit_c_args += '-DNO_GETTEXT'
     +  build_options_config.set('NO_GETTEXT', '1')
    ++  build_options_config.set('USE_GETTEXT_SCHEME', 'fallthrough')
     +endif
     +
     +iconv = dependency('iconv', required: get_option('iconv'))
    @@ meson.build (new)
     +libgit_version_library = static_library('git-version',
     +  sources: ['version.c'],
     +  c_args: libgit_c_args + [
    -+    '-DGIT_VERSION="' + meson.project_version() + '"',
    -+    '-DGIT_USER_AGENT="' + 'git/' + meson.project_version() + '"',
    ++    '-DGIT_VERSION="' + git_version + '"',
    ++    '-DGIT_USER_AGENT="' + 'git/' + git_version + '"',
     +    '-DGIT_BUILT_FROM_COMMIT="' + run_command('git', 'rev-parse', '-q', '--verify', 'HEAD', check: false).stdout().strip() + '"',
     +  ],
     +  dependencies: libgit_dependencies,
    @@ meson.build (new)
     +    '-DMINOR=1',
     +    '-DMICRO=1',
     +    '-DPATCHLEVEL=0',
    -+    '-DGIT_VERSION=\\\"' + meson.project_version() + '.GIT\\\"',
    ++    '-DGIT_VERSION=\\\"' + git_version + '.GIT\\\"',
     +  ])
     +  if compiler.get_argument_syntax() == 'gcc'
     +    common_main_link_args += [
    @@ meson.build (new)
     +  )
     +endforeach
     +
    -+script_sh_config = configuration_data()
    -+script_sh_config.set('BROKEN_PATH_FIX', '')
    -+script_sh_config.set('DIFF', fs.as_posix(diff.full_path()))
    -+script_sh_config.set('PAGER_ENV', get_option('pager_environment'))
    -+script_sh_config.set('PERL_PATH', perl.found() ? fs.as_posix(perl.full_path()) : '')
    -+script_sh_config.set('SHELL_PATH', fs.as_posix(shell.full_path()))
    -+script_sh_config.set_quoted('LOCALEDIR', fs.as_posix(get_option('prefix') / get_option('localedir')))
    -+if intl.found()
    -+  script_sh_config.set('USE_GETTEXT_SCHEME', '')
    -+else
    -+  script_sh_config.set('USE_GETTEXT_SCHEME', 'fallthrough')
    -+endif
    -+script_sh_config.set('GITWEBDIR', fs.as_posix(get_option('prefix') / get_option('datadir') / 'gitweb'))
    -+
     +scripts_sh = [
     +  'git-difftool--helper.sh',
     +  'git-filter-branch.sh',
     +  'git-merge-octopus.sh',
     +  'git-merge-one-file.sh',
     +  'git-merge-resolve.sh',
    ++  'git-mergetool--lib.sh',
     +  'git-mergetool.sh',
     +  'git-quiltimport.sh',
     +  'git-request-pull.sh',
    ++  'git-sh-i18n.sh',
    ++  'git-sh-setup.sh',
     +  'git-submodule.sh',
     +  'git-web--browse.sh',
     +]
    -+
     +if perl_features_enabled
     +  scripts_sh += 'git-instaweb.sh'
     +endif
     +
     +foreach script : scripts_sh
    -+  configure_file(
    ++  test_dependencies += custom_target(script,
     +    input: script,
     +    output: fs.stem(script),
    -+    configuration: script_sh_config,
    -+    install: true,
    -+    install_dir: get_option('libexecdir') / 'git-core',
    -+  )
    -+endforeach
    -+
    -+scripts_lib = [
    -+  'git-mergetool--lib.sh',
    -+  'git-sh-i18n.sh',
    -+  'git-sh-setup.sh',
    -+]
    -+
    -+foreach script : scripts_lib
    -+  configure_file(
    -+    input: script,
    -+    output: fs.stem(script),
    -+    configuration: script_sh_config,
    ++    command: [
    ++      shell,
    ++      meson.project_source_root() / 'generate-script.sh',
    ++      '@INPUT@',
    ++      '@OUTPUT@',
    ++      meson.project_build_root() / 'GIT-BUILD-OPTIONS',
    ++    ],
     +    install: true,
     +    install_dir: get_option('libexecdir') / 'git-core',
     +  )
    @@ meson.build (new)
     +    },
     +  )
     +
    ++  generate_perl_command = [
    ++    shell,
    ++    meson.project_source_root() / 'generate-perl.sh',
    ++    meson.project_build_root() / 'GIT-BUILD-OPTIONS',
    ++    git_version,
    ++    perl_header,
    ++    '@INPUT@',
    ++    '@OUTPUT@',
    ++  ]
    ++
     +  foreach script : scripts_perl
     +    generated_script = custom_target(script,
     +      input: script,
     +      output: fs.stem(script),
    -+      command: [
    -+        shell,
    -+        meson.project_source_root() / 'generate-perl.sh',
    -+        meson.project_version(),
    -+        perl_header,
    -+        perl.full_path(),
    -+        '@INPUT@',
    -+        '@OUTPUT@',
    -+      ],
    ++      command: generate_perl_command,
     +      install: true,
     +      install_dir: get_option('datadir') / 'perl5',
     +    )
    @@ meson_options.txt (new)
     +  description: 'Build helpers used to access remotes with the HTTP transport.')
     +option('expat', type: 'feature', value: 'enabled',
     +  description: 'Build helpers used to push to remotes with the HTTP transport.')
    -+option('gettext', type: 'feature', value: 'enabled',
    ++option('gettext', type: 'feature', value: 'auto',
     +  description: 'Build translation files.')
    -+option('iconv', type: 'feature', value: 'enabled',
    ++option('iconv', type: 'feature', value: 'auto',
     +  description: 'Support reencoding strings with different encodings.')
     +option('pcre2', type: 'feature', value: 'enabled',
     +  description: 'Support Perl-compatible regular expressions in e.g. git-grep(1).')
    -+option('perl', type: 'feature', value: 'enabled',
    ++option('perl', type: 'feature', value: 'auto',
     +  description: 'Build tools written in Perl.')
     +option('perl_cpan_fallback', type: 'boolean', value: true,
     +  description: 'Install bundled copies of CPAN modules that serve as a fallback in case the modules are not available on the system.')
    -+option('python', type: 'feature', value: 'enabled',
    ++option('python', type: 'feature', value: 'auto',
     +  description: 'Build tools written in Python.')
     +
     +option('openssl', type: 'feature', value: 'auto',
    @@ meson_options.txt (new)
     
      ## perl/FromCPAN/Mail/meson.build (new) ##
     @@
    -+configure_file(
    ++test_dependencies += custom_target('Address.pm',
     +  input: 'Address.pm',
     +  output: 'Address.pm',
    -+  configuration: perl_config,
    ++  command: generate_perl_command,
     +  install: true,
     +  install_dir: get_option('datadir') / 'perl5/FromCPAN/Mail',
     +)
     
      ## perl/FromCPAN/meson.build (new) ##
     @@
    -+configure_file(
    ++test_dependencies += custom_target('Error.pm',
     +  input: 'Error.pm',
     +  output: 'Error.pm',
    -+  configuration: perl_config,
    ++  command: generate_perl_command,
     +  install: true,
     +  install_dir: get_option('datadir') / 'perl5/FromCPAN',
     +)
    @@ perl/FromCPAN/meson.build (new)
     
      ## perl/Git/LoadCPAN/Mail/meson.build (new) ##
     @@
    -+configure_file(
    ++test_dependencies += custom_target('Address.pm',
     +  input: 'Address.pm',
     +  output: 'Address.pm',
    -+  configuration: perl_config,
    ++  command: generate_perl_command,
     +  install: true,
     +  install_dir: get_option('datadir') / 'perl5/Git/LoadCPAN/Mail',
     +)
     
      ## perl/Git/LoadCPAN/meson.build (new) ##
     @@
    -+configure_file(
    ++test_dependencies += custom_target('Error.pm',
     +  input: 'Error.pm',
     +  output: 'Error.pm',
    -+  configuration: perl_config,
    ++  command: generate_perl_command,
     +  install: true,
     +  install_dir: get_option('datadir') / 'perl5/Git/LoadCPAN',
     +)
    @@ perl/Git/LoadCPAN/meson.build (new)
     
      ## perl/Git/SVN/Memoize/meson.build (new) ##
     @@
    -+configure_file(
    ++test_dependencies += custom_target('YAML.pm',
     +  input: 'YAML.pm',
     +  output: 'YAML.pm',
    -+  configuration: perl_config,
    ++  command: generate_perl_command,
     +  install: true,
     +  install_dir: get_option('datadir') / 'perl5/Git/SVN',
     +)
    @@ perl/Git/SVN/meson.build (new)
     +  'Ra.pm',
     +  'Utils.pm',
     +]
    -+  configure_file(
    ++  test_dependencies += custom_target(source,
     +    input: source,
     +    output: source,
    -+    configuration: perl_config,
    ++    command: generate_perl_command,
     +    install: true,
     +    install_dir: get_option('datadir') / 'perl5/Git/SVN',
     +  )
    @@ perl/Git/meson.build (new)
     +  'Packet.pm',
     +  'SVN.pm',
     +]
    -+  configure_file(
    ++  test_dependencies += custom_target(source,
     +    input: source,
     +    output: source,
    -+    configuration: perl_config,
    ++    command: generate_perl_command,
     +    install: true,
     +    install_dir: get_option('datadir') / 'perl5/Git',
     +  )
    @@ perl/Git/meson.build (new)
     
      ## perl/meson.build (new) ##
     @@
    -+perl_config = {
    -+  'LOCALEDIR': get_option('prefix') / get_option('datadir') / 'locale',
    -+  'NO_GETTEXT': iconv.found() ? '' : '1',
    -+  'NO_PERL_CPAN_FALLBACKS': get_option('perl_cpan_fallback') ? '' : '1',
    -+}
    -+
    -+configure_file(
    ++test_dependencies += custom_target('Git.pm',
     +  input: 'Git.pm',
     +  output: 'Git.pm',
    -+  configuration: perl_config,
    ++  command: generate_perl_command,
     +  install: true,
     +  install_dir: get_option('datadir') / 'perl5',
     +)
    @@ po/meson.build (new)
     +)
     +test_dependencies += translations[0]
     
    + ## subprojects/.gitignore (new) ##
    +@@
    ++/*/
    +
      ## subprojects/curl.wrap (new) ##
     @@
     +[wrap-file]
    @@ t/helper/meson.build (new)
     
      ## t/meson.build (new) ##
     @@
    -+awk = find_program('awk')
    -+
     +clar_test_suites = [
     +  'unit-tests/ctype.c',
     +  'unit-tests/strvec.c',
    @@ templates/hooks/meson.build (new)
     +  configure_file(
     +    input: hook,
     +    output: hook,
    -+    configuration: script_sh_config,
    ++    configuration: template_config,
     +  )
     +endforeach
     
    @@ templates/info/meson.build (new)
     +configure_file(
     +  input: 'exclude',
     +  output: 'exclude',
    -+  configuration: script_sh_config,
    ++  configuration: template_config,
     +)
     
      ## templates/meson.build (new) ##
     @@
    ++template_config = configuration_data()
    ++template_config.set('PERL_PATH', perl.found() ? fs.as_posix(perl.full_path()) : '')
    ++template_config.set('SHELL_PATH', fs.as_posix(shell.full_path()))
    ++template_config.set('GITWEBDIR', fs.as_posix(get_option('prefix') / get_option('datadir') / 'gitweb'))
    ++
     +configure_file(
     +  input: 'description',
     +  output: 'description',
    -+  configuration: script_sh_config,
    ++  configuration: template_config,
     +)
     +
     +subdir('hooks')
-- 
2.47.0.72.gef8ce8f3d4.dirty
Previous: Taylor BlauNext: Patrick Steinhardt
Message 81 of 355 in “Modernize the build system”
  1. 00/21 Modernize the build systemPatrick Steinhardt, Oct 2, 2024
  2. 01/21 Documentation: add comparison of build systemsPatrick Steinhardt, Oct 2, 2024
  3. Junio C HamanoOct 2, 2024
  4. Eli SchwartzOct 6, 2024
  5. Patrick SteinhardtOct 7, 2024
  6. Junio C HamanoOct 7, 2024
  7. Eric SunshineOct 2, 2024
  8. Patrick SteinhardtOct 7, 2024
  9. 02/21 t/test-lib: fix quoting of TEST_RESULTS_SAN_FILEPatrick Steinhardt, Oct 2, 2024
  10. 03/21 t/lib-gitweb: test against the build version of gitwebPatrick Steinhardt, Oct 2, 2024
  11. 04/21 t/lib-gpg: fix setup of GNUPGHOME in MinGWPatrick Steinhardt, Oct 2, 2024
  12. Eric SunshineOct 2, 2024
  13. Patrick SteinhardtOct 7, 2024
  14. 05/21 t3404: work around platform-specific behaviour on macOS 10.15Patrick Steinhardt, Oct 2, 2024
  15. Eric SunshineOct 2, 2024
  16. Phillip WoodOct 3, 2024
  17. Eric SunshineOct 3, 2024
  18. Junio C HamanoOct 3, 2024
  19. Patrick SteinhardtOct 7, 2024
  20. Patrick SteinhardtOct 7, 2024
  21. Patrick SteinhardtOct 7, 2024
  22. 06/21 t/unit-tests: update clar unit test frameworkPatrick Steinhardt, Oct 2, 2024
  23. 07/21 t/clar: simplify how the clar derives `struct stat`Patrick Steinhardt, Oct 2, 2024
  24. 08/21 builtin/credential-cache: fix missing parameter for stub functionPatrick Steinhardt, Oct 2, 2024
  25. 09/21 http: fix build error on FreeBSDPatrick Steinhardt, Oct 2, 2024
  26. 10/21 Makefile: extract script to generate clar declarationsPatrick Steinhardt, Oct 2, 2024
  27. 11/21 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Oct 2, 2024
  28. 12/21 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Oct 2, 2024
  29. 13/21 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Oct 2, 2024
  30. 14/21 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Oct 2, 2024
  31. 15/21 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Oct 2, 2024
  32. Phillip WoodOct 8, 2024
  33. Patrick SteinhardtOct 8, 2024
  34. 16/21 Makefile: consistently use PERL_PATHPatrick Steinhardt, Oct 2, 2024
  35. 17/21 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Oct 2, 2024
  36. 18/21 Makefile: simplify building of templatesPatrick Steinhardt, Oct 2, 2024
  37. 19/21 t: better support for out-of-tree buildsPatrick Steinhardt, Oct 2, 2024
  38. 20/21 t: allow overriding build dirPatrick Steinhardt, Oct 2, 2024
  39. Phillip WoodOct 8, 2024
  40. Patrick SteinhardtOct 8, 2024
  41. 21/21 Introduce support for the Meson build systemPatrick Steinhardt, Oct 2, 2024
  42. Phillip WoodOct 8, 2024
  43. Patrick SteinhardtOct 8, 2024
  44. 00/24 Modernize our build systemPatrick Steinhardt, Oct 9, 2024
  45. 01/24 t/test-lib: fix quoting of TEST_RESULTS_SAN_FILEPatrick Steinhardt, Oct 9, 2024
  46. 02/24 t/test-lib: wire up NO_ICONV prerequisitePatrick Steinhardt, Oct 9, 2024
  47. 03/24 t/lib-gitweb: test against the build version of gitwebPatrick Steinhardt, Oct 9, 2024
  48. 04/24 t/lib-gpg: fix setup of GNUPGHOME in MinGWPatrick Steinhardt, Oct 9, 2024
  49. 05/24 t1401: make invocation of tar(1) work with Win32-provided onePatrick Steinhardt, Oct 9, 2024
  50. 06/24 t3404: work around platform-specific behaviour on macOS 10.15Patrick Steinhardt, Oct 9, 2024
  51. 07/24 t5500, t5601: skip tests which exercise paths with '[::1]' on CygwinPatrick Steinhardt, Oct 9, 2024
  52. 08/24 t7300: work around platform-specific behaviour with long paths on MinGWPatrick Steinhardt, Oct 9, 2024
  53. 09/24 t/unit-tests: update clar unit test frameworkPatrick Steinhardt, Oct 9, 2024
  54. 10/24 builtin/credential-cache: fix missing parameter for stub functionPatrick Steinhardt, Oct 9, 2024
  55. 11/24 http: fix build error on FreeBSDPatrick Steinhardt, Oct 9, 2024
  56. 12/24 Makefile: extract script to generate clar declarationsPatrick Steinhardt, Oct 9, 2024
  57. 13/24 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Oct 9, 2024
  58. 14/24 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Oct 9, 2024
  59. 15/24 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Oct 9, 2024
  60. 16/24 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Oct 9, 2024
  61. 17/24 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Oct 9, 2024
  62. 18/24 Makefile: consistently use PERL_PATHPatrick Steinhardt, Oct 9, 2024
  63. 19/24 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Oct 9, 2024
  64. 20/24 Makefile: simplify building of templatesPatrick Steinhardt, Oct 9, 2024
  65. 21/24 t: better support for out-of-tree buildsPatrick Steinhardt, Oct 9, 2024
  66. 22/24 t: allow overriding build dirPatrick Steinhardt, Oct 9, 2024
  67. 23/24 Documentation: add comparison of build systemsPatrick Steinhardt, Oct 9, 2024
  68. Phillip WoodOct 14, 2024
  69. Patrick SteinhardtOct 15, 2024
  70. phillip.wood123@gmail.comOct 16, 2024
  71. Patrick SteinhardtOct 17, 2024
  72. Patrick SteinhardtOct 17, 2024
  73. 24/24 Introduce support for the Meson build systemPatrick Steinhardt, Oct 9, 2024
  74. Eli SchwartzOct 14, 2024
  75. Patrick SteinhardtOct 14, 2024
  76. Junio C HamanoOct 10, 2024
  77. Patrick SteinhardtOct 10, 2024
  78. Patrick SteinhardtOct 10, 2024
  79. Junio C HamanoOct 12, 2024
  80. Taylor BlauOct 12, 2024
  81. 00/15 Modernize the build systemPatrick Steinhardt, Oct 18, 2024
  82. 01/15 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Oct 18, 2024
  83. Eric SunshineOct 19, 2024
  84. Patrick SteinhardtOct 23, 2024
  85. 02/15 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Oct 18, 2024
  86. 03/15 Makefile: consistently use PERL_PATHPatrick Steinhardt, Oct 18, 2024
  87. 04/15 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Oct 18, 2024
  88. 05/15 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Oct 18, 2024
  89. 06/15 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Oct 18, 2024
  90. 07/15 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Oct 18, 2024
  91. 08/15 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Oct 18, 2024
  92. 09/15 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Oct 18, 2024
  93. Eric SunshineOct 19, 2024
  94. 10/15 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Oct 18, 2024
  95. 11/15 Makefile: simplify building of templatesPatrick Steinhardt, Oct 18, 2024
  96. Eric SunshineOct 19, 2024
  97. 12/15 t: better support for out-of-tree buildsPatrick Steinhardt, Oct 18, 2024
  98. 13/15 t: allow overriding build dirPatrick Steinhardt, Oct 18, 2024
  99. Eric SunshineOct 19, 2024
  100. 14/15 Documentation: add comparison of build systemsPatrick Steinhardt, Oct 18, 2024
  101. 15/15 Introduce support for the Meson build systemPatrick Steinhardt, Oct 18, 2024
  102. Eric SunshineOct 19, 2024
  103. Ramsay JonesOct 18, 2024
  104. Eli SchwartzOct 20, 2024
  105. Ramsay JonesOct 21, 2024
  106. Patrick SteinhardtOct 23, 2024
  107. Ramsay JonesOct 23, 2024
  108. Eli SchwartzOct 23, 2024
  109. Ramsay JonesOct 24, 2024
  110. Patrick SteinhardtOct 24, 2024
  111. Patrick SteinhardtOct 24, 2024
  112. Ramsay JonesOct 24, 2024
  113. Patrick SteinhardtOct 25, 2024
  114. Ramsay JonesOct 25, 2024
  115. Patrick SteinhardtNov 4, 2024
  116. Patrick SteinhardtOct 23, 2024
  117. Taylor BlauOct 18, 2024
  118. Patrick SteinhardtOct 23, 2024
  119. Taylor BlauOct 23, 2024
  120. Patrick SteinhardtOct 24, 2024
  121. Taylor BlauOct 21, 2024
  122. Patrick SteinhardtOct 23, 2024
  123. Taylor BlauOct 23, 2024
  124. 00/19 Modernize the build systemPatrick Steinhardt, Oct 24, 2024
  125. 01/19 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Oct 24, 2024
  126. 02/19 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Oct 24, 2024
  127. 03/19 Makefile: consistently use PERL_PATHPatrick Steinhardt, Oct 24, 2024
  128. 04/19 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Oct 24, 2024
  129. Phillip WoodNov 10, 2024
  130. Patrick SteinhardtNov 11, 2024
  131. 05/19 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Oct 24, 2024
  132. Phillip WoodNov 11, 2024
  133. Patrick SteinhardtNov 11, 2024
  134. Paul SmithNov 11, 2024
  135. Patrick SteinhardtNov 11, 2024
  136. 06/19 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Oct 24, 2024
  137. Phillip WoodNov 10, 2024
  138. 07/19 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Oct 24, 2024
  139. 08/19 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Oct 24, 2024
  140. 09/19 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Oct 24, 2024
  141. 10/19 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Oct 24, 2024
  142. 11/19 Makefile: simplify building of templatesPatrick Steinhardt, Oct 24, 2024
  143. 12/19 Documentation: allow sourcing generated includes from separate dirPatrick Steinhardt, Oct 24, 2024
  144. 13/19 Documentation: teach "cmd-list.perl" about out-of-tree buildsPatrick Steinhardt, Oct 24, 2024
  145. 14/19 Documentation: extract script to generate a list of mergetoolsPatrick Steinhardt, Oct 24, 2024
  146. 15/19 t: better support for out-of-tree buildsPatrick Steinhardt, Oct 24, 2024
  147. 16/19 t: allow overriding build dirPatrick Steinhardt, Oct 24, 2024
  148. 17/19 Documentation: add comparison of build systemsPatrick Steinhardt, Oct 24, 2024
  149. 18/19 Introduce support for the Meson build systemPatrick Steinhardt, Oct 24, 2024
  150. 19/19 meson: fix conflicts with in-flight topicsPatrick Steinhardt, Oct 24, 2024
  151. Taylor BlauOct 24, 2024
  152. Taylor BlauOct 25, 2024
  153. Patrick SteinhardtNov 4, 2024
  154. Eli SchwartzNov 4, 2024
  155. Patrick SteinhardtNov 11, 2024
  156. Taylor BlauNov 4, 2024
  157. David AguilarNov 9, 2024
  158. Eli SchwartzNov 10, 2024
  159. Patrick SteinhardtNov 11, 2024
  160. Eli SchwartzNov 11, 2024
  161. Patrick SteinhardtNov 12, 2024
  162. Patrick SteinhardtNov 12, 2024
  163. David AguilarNov 13, 2024
  164. Patrick SteinhardtNov 13, 2024
  165. Eli SchwartzNov 13, 2024
  166. Patrick SteinhardtNov 14, 2024
  167. Junio C HamanoNov 14, 2024
  168. Eli SchwartzNov 14, 2024
  169. Patrick SteinhardtNov 14, 2024
  170. Junio C HamanoNov 14, 2024
  171. Eli SchwartzNov 13, 2024
  172. Patrick SteinhardtNov 14, 2024
  173. Patrick SteinhardtNov 11, 2024
  174. Jeff KingNov 11, 2024
  175. Eli SchwartzNov 11, 2024
  176. Jeff KingNov 11, 2024
  177. Eli SchwartzNov 11, 2024
  178. Jeff KingNov 12, 2024
  179. Eli SchwartzNov 12, 2024
  180. Jeff KingNov 12, 2024
  181. Junio C HamanoNov 12, 2024
  182. Patrick SteinhardtNov 12, 2024
  183. Eli SchwartzNov 12, 2024
  184. Eli SchwartzNov 4, 2024
  185. Ramsay JonesOct 28, 2024
  186. Patrick SteinhardtNov 4, 2024
  187. 00/19 Modernize the build systemPatrick Steinhardt, Nov 11, 2024
  188. 01/19 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Nov 11, 2024
  189. 02/19 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Nov 11, 2024
  190. 03/19 Makefile: consistently use PERL_PATHPatrick Steinhardt, Nov 11, 2024
  191. 04/19 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Nov 11, 2024
  192. 05/19 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Nov 11, 2024
  193. 06/19 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Nov 11, 2024
  194. 07/19 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Nov 11, 2024
  195. 08/19 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Nov 11, 2024
  196. 09/19 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Nov 11, 2024
  197. 10/19 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Nov 11, 2024
  198. 11/19 Makefile: simplify building of templatesPatrick Steinhardt, Nov 11, 2024
  199. 12/19 Documentation: allow sourcing generated includes from separate dirPatrick Steinhardt, Nov 11, 2024
  200. 13/19 Documentation: teach "cmd-list.perl" about out-of-tree buildsPatrick Steinhardt, Nov 11, 2024
  201. 14/19 Documentation: extract script to generate a list of mergetoolsPatrick Steinhardt, Nov 11, 2024
  202. 15/19 t: better support for out-of-tree buildsPatrick Steinhardt, Nov 11, 2024
  203. 16/19 t: allow overriding build dirPatrick Steinhardt, Nov 11, 2024
  204. 17/19 Documentation: add comparison of build systemsPatrick Steinhardt, Nov 11, 2024
  205. 18/19 Introduce support for the Meson build systemPatrick Steinhardt, Nov 11, 2024
  206. 19/19 meson: fix conflicts with in-flight topicsPatrick Steinhardt, Nov 11, 2024
  207. Ramsay JonesNov 13, 2024
  208. 00/19 Modernize the build systemPatrick Steinhardt, Nov 12, 2024
  209. 01/19 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Nov 12, 2024
  210. Junio C HamanoNov 13, 2024
  211. Patrick SteinhardtNov 13, 2024
  212. 03/19 Makefile: consistently use PERL_PATHPatrick Steinhardt, Nov 12, 2024
  213. 02/19 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Nov 12, 2024
  214. 04/19 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Nov 12, 2024
  215. 05/19 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Nov 12, 2024
  216. 06/19 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Nov 12, 2024
  217. 07/19 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Nov 12, 2024
  218. 08/19 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Nov 12, 2024
  219. Phillip WoodNov 13, 2024
  220. Patrick SteinhardtNov 14, 2024
  221. Junio C HamanoNov 14, 2024
  222. 09/19 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Nov 12, 2024
  223. 10/19 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Nov 12, 2024
  224. 11/19 Makefile: simplify building of templatesPatrick Steinhardt, Nov 12, 2024
  225. 12/19 Documentation: allow sourcing generated includes from separate dirPatrick Steinhardt, Nov 12, 2024
  226. 13/19 Documentation: teach "cmd-list.perl" about out-of-tree buildsPatrick Steinhardt, Nov 12, 2024
  227. 14/19 Documentation: extract script to generate a list of mergetoolsPatrick Steinhardt, Nov 12, 2024
  228. 15/19 t: better support for out-of-tree buildsPatrick Steinhardt, Nov 12, 2024
  229. 16/19 t: allow overriding build dirPatrick Steinhardt, Nov 12, 2024
  230. 17/19 Documentation: add comparison of build systemsPatrick Steinhardt, Nov 12, 2024
  231. 18/19 Introduce support for the Meson build systemPatrick Steinhardt, Nov 12, 2024
  232. Junio C HamanoNov 13, 2024
  233. Patrick SteinhardtNov 13, 2024
  234. Phillip WoodNov 13, 2024
  235. 19/19 meson: fix conflicts with in-flight topicsPatrick Steinhardt, Nov 12, 2024
  236. Ramsay JonesNov 13, 2024
  237. Patrick SteinhardtNov 13, 2024
  238. Christian CouderNov 13, 2024
  239. Patrick SteinhardtNov 13, 2024
  240. 00/23 Modernize the build systemPatrick Steinhardt, Nov 19, 2024
  241. 02/23 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Nov 19, 2024
  242. Johannes SixtNov 19, 2024
  243. Patrick SteinhardtNov 20, 2024
  244. 01/23 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Nov 19, 2024
  245. 03/23 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Nov 19, 2024
  246. Junio C HamanoNov 20, 2024
  247. Patrick SteinhardtNov 20, 2024
  248. Junio C HamanoNov 21, 2024
  249. Patrick SteinhardtNov 25, 2024
  250. 05/23 Makefile: generate "git.rc" via GIT-VERSION-GENPatrick Steinhardt, Nov 19, 2024
  251. 04/23 Makefile: propagate Git version via generated headerPatrick Steinhardt, Nov 19, 2024
  252. 06/23 Makefile: generate doc versions via GIT-VERSION-GENPatrick Steinhardt, Nov 19, 2024
  253. 07/23 Makefile: consistently use PERL_PATHPatrick Steinhardt, Nov 19, 2024
  254. 08/23 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Nov 19, 2024
  255. 09/23 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Nov 19, 2024
  256. 10/23 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Nov 19, 2024
  257. 11/23 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Nov 19, 2024
  258. 12/23 Makefile: extract script to generate gitweb.jsPatrick Steinhardt, Nov 19, 2024
  259. 13/23 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Nov 19, 2024
  260. 14/23 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Nov 19, 2024
  261. 15/23 Makefile: simplify building of templatesPatrick Steinhardt, Nov 19, 2024
  262. 16/23 Documentation: allow sourcing generated includes from separate dirPatrick Steinhardt, Nov 19, 2024
  263. 17/23 Documentation: teach "cmd-list.perl" about out-of-tree buildsPatrick Steinhardt, Nov 19, 2024
  264. 18/23 Documentation: extract script to generate a list of mergetoolsPatrick Steinhardt, Nov 19, 2024
  265. 19/23 t: better support for out-of-tree buildsPatrick Steinhardt, Nov 19, 2024
  266. 20/23 t: allow overriding build dirPatrick Steinhardt, Nov 19, 2024
  267. 21/23 Documentation: add comparison of build systemsPatrick Steinhardt, Nov 19, 2024
  268. 23/23 meson: fix conflicts with in-flight topicsPatrick Steinhardt, Nov 19, 2024
  269. 22/23 Introduce support for the Meson build systemPatrick Steinhardt, Nov 19, 2024
  270. Junio C HamanoNov 20, 2024
  271. Patrick SteinhardtNov 20, 2024
  272. 00/23 Modernize the build systemPatrick Steinhardt, Nov 25, 2024
  273. 01/23 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Nov 25, 2024
  274. 02/23 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Nov 25, 2024
  275. 04/23 Makefile: propagate Git version via generated headerPatrick Steinhardt, Nov 25, 2024
  276. 03/23 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Nov 25, 2024
  277. 05/23 Makefile: generate "git.rc" via GIT-VERSION-GENPatrick Steinhardt, Nov 25, 2024
  278. 06/23 Makefile: generate doc versions via GIT-VERSION-GENPatrick Steinhardt, Nov 25, 2024
  279. Renato BotelhoJan 13, 2025
  280. Patrick SteinhardtJan 17, 2025
  281. 07/23 Makefile: consistently use PERL_PATHPatrick Steinhardt, Nov 25, 2024
  282. 08/23 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Nov 25, 2024
  283. 09/23 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Nov 25, 2024
  284. 10/23 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Nov 25, 2024
  285. 11/23 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Nov 25, 2024
  286. 12/23 Makefile: extract script to generate gitweb.jsPatrick Steinhardt, Nov 25, 2024
  287. 13/23 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Nov 25, 2024
  288. 14/23 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Nov 25, 2024
  289. 15/23 Makefile: simplify building of templatesPatrick Steinhardt, Nov 25, 2024
  290. 16/23 Documentation: allow sourcing generated includes from separate dirPatrick Steinhardt, Nov 25, 2024
  291. 17/23 Documentation: teach "cmd-list.perl" about out-of-tree buildsPatrick Steinhardt, Nov 25, 2024
  292. 18/23 Documentation: extract script to generate a list of mergetoolsPatrick Steinhardt, Nov 25, 2024
  293. 19/23 t: better support for out-of-tree buildsPatrick Steinhardt, Nov 25, 2024
  294. 20/23 t: allow overriding build dirPatrick Steinhardt, Nov 25, 2024
  295. 21/23 Documentation: add comparison of build systemsPatrick Steinhardt, Nov 25, 2024
  296. 23/23 meson: fix conflicts with in-flight topicsPatrick Steinhardt, Nov 25, 2024
  297. 22/23 Introduce support for the Meson build systemPatrick Steinhardt, Nov 25, 2024
  298. 00/23 Modernize the build systemPatrick Steinhardt, Nov 28, 2024
  299. 01/23 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Nov 28, 2024
  300. 02/23 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Nov 28, 2024
  301. 03/23 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Nov 28, 2024
  302. 04/23 Makefile: propagate Git version via generated headerPatrick Steinhardt, Nov 28, 2024
  303. 05/23 Makefile: generate "git.rc" via GIT-VERSION-GENPatrick Steinhardt, Nov 28, 2024
  304. 06/23 Makefile: generate doc versions via GIT-VERSION-GENPatrick Steinhardt, Nov 28, 2024
  305. 07/23 Makefile: consistently use PERL_PATHPatrick Steinhardt, Nov 28, 2024
  306. 08/23 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Nov 28, 2024
  307. 10/23 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Nov 28, 2024
  308. 11/23 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Nov 28, 2024
  309. 09/23 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Nov 28, 2024
  310. 14/23 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Nov 28, 2024
  311. 12/23 Makefile: extract script to generate gitweb.jsPatrick Steinhardt, Nov 28, 2024
  312. 13/23 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Nov 28, 2024
  313. 15/23 Makefile: simplify building of templatesPatrick Steinhardt, Nov 28, 2024
  314. 17/23 Documentation: teach "cmd-list.perl" about out-of-tree buildsPatrick Steinhardt, Nov 28, 2024
  315. 16/23 Documentation: allow sourcing generated includes from separate dirPatrick Steinhardt, Nov 28, 2024
  316. 18/23 Documentation: extract script to generate a list of mergetoolsPatrick Steinhardt, Nov 28, 2024
  317. 19/23 t: better support for out-of-tree buildsPatrick Steinhardt, Nov 28, 2024
  318. 20/23 t: allow overriding build dirPatrick Steinhardt, Nov 28, 2024
  319. 21/23 Documentation: add comparison of build systemsPatrick Steinhardt, Nov 28, 2024
  320. 23/23 meson: fix conflicts with in-flight topicsPatrick Steinhardt, Nov 28, 2024
  321. 22/23 Introduce support for the Meson build systemPatrick Steinhardt, Nov 28, 2024
  322. 00/26 Modernize the build systemPatrick Steinhardt, Dec 6, 2024
  323. 01/26 Makefile: use common template for GIT-BUILD-OPTIONSPatrick Steinhardt, Dec 6, 2024
  324. 02/26 Makefile: consistently use @PLACEHOLDER@ to substitutePatrick Steinhardt, Dec 6, 2024
  325. 03/26 Makefile: refactor GIT-VERSION-GEN to be reusablePatrick Steinhardt, Dec 6, 2024
  326. 04/26 Makefile: propagate Git version via generated headerPatrick Steinhardt, Dec 6, 2024
  327. 05/26 Makefile: generate "git.rc" via GIT-VERSION-GENPatrick Steinhardt, Dec 6, 2024
  328. 06/26 Makefile: generate doc versions via GIT-VERSION-GENPatrick Steinhardt, Dec 6, 2024
  329. 07/26 Makefile: consistently use PERL_PATHPatrick Steinhardt, Dec 6, 2024
  330. 08/26 Makefile: extract script to massage Perl scriptsPatrick Steinhardt, Dec 6, 2024
  331. 09/26 Makefile: use "generate-perl.sh" to massage Perl libraryPatrick Steinhardt, Dec 6, 2024
  332. 11/26 Makefile: extract script to massage Python scriptsPatrick Steinhardt, Dec 6, 2024
  333. 10/26 Makefile: extract script to massage Shell scriptsPatrick Steinhardt, Dec 6, 2024
  334. 12/26 Makefile: extract script to generate gitweb.cgiPatrick Steinhardt, Dec 6, 2024
  335. 13/26 Makefile: extract script to generate gitweb.jsPatrick Steinhardt, Dec 6, 2024
  336. 14/26 Makefile: refactor generators to be PWD-independentPatrick Steinhardt, Dec 6, 2024
  337. 15/26 Makefile: allow "bin-wrappers/" directory to existPatrick Steinhardt, Dec 6, 2024
  338. 16/26 Makefile: write absolute program path into bin-wrappersPatrick Steinhardt, Dec 6, 2024
  339. 17/26 Makefile: simplify building of templatesPatrick Steinhardt, Dec 6, 2024
  340. 18/26 Documentation: allow sourcing generated includes from separate dirPatrick Steinhardt, Dec 6, 2024
  341. 19/26 Documentation: teach "cmd-list.perl" about out-of-tree buildsPatrick Steinhardt, Dec 6, 2024
  342. 20/26 Documentation: extract script to generate a list of mergetoolsPatrick Steinhardt, Dec 6, 2024
  343. 21/26 t: better support for out-of-tree buildsPatrick Steinhardt, Dec 6, 2024
  344. 22/26 t: allow overriding build dirPatrick Steinhardt, Dec 6, 2024
  345. 23/26 Documentation: add comparison of build systemsPatrick Steinhardt, Dec 6, 2024
  346. 24/26 Introduce support for the Meson build systemPatrick Steinhardt, Dec 6, 2024
  347. 25/26 meson: fix conflicts with in-flight topicsPatrick Steinhardt, Dec 6, 2024
  348. Junio C HamanoDec 8, 2024
  349. Junio C HamanoDec 9, 2024
  350. Patrick SteinhardtDec 9, 2024
  351. Junio C HamanoDec 9, 2024
  352. Patrick SteinhardtDec 10, 2024
  353. Junio C HamanoDec 10, 2024
  354. 26/26 Revert "meson: fix conflicts with in-flight topics"Patrick Steinhardt, Dec 6, 2024
  355. Patrick SteinhardtDec 6, 2024

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.