gitaly: Add Git build opts to Gitaly definition
With https://gitlab.com/gitlab-org/gitaly/-/merge_requests/7035, we'll start embedding the Git binaries inside Gitaly itself. This means that Gitaly's `make install` target will also implicitly build Git, and embed the binaries using the go:embed machinery. Omnibus' Git software definition (config/software/git.rb) specifies a number of build options to tell Git where specific required libraries are located, and also toggles some compiler options depending on the system we're compiling on. These options must now be set whenever Gitaly is compiled. Merge the options from config/software/git.rb into Gitaly's software definition. This allows us to roll out embedded Git binaries without disrupting how Git is built by Omnibus. Build options are set directly as env vars since we can't write a config.mak file directly. This should be okay as Gitaly itself does not use these flags. Later on, we'll remove Omnibus' ability to build Git binaries with https://gitlab.com/gitlab-org/gitaly/-/issues/6195
parent
afc6ab8e