pkgdep/git: Create etc directory in git's custom path
By default, git will use path relative to the prefix it was built with to determine location of git{config,attributes} files. In our case, that would be /usr/local/git/etc. Lack of this directory may be problematic for vagrant's proxyconf plugin. If it picks up git binary at our location, it will depend on existance of the /usr/local/git/etc directory. In case it's missing it simply fails as git won't create it on its own. To avoid that, let's create it ourselves. Change-Id: Ie1fadd36d5888866b20375a7184031c73058fe3d Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4292 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
3c98c8f764
commit
4be6d32b97
@ -250,6 +250,8 @@ function install_git() {
|
|||||||
&& sudo make -j${jobs} install)
|
&& sudo make -j${jobs} install)
|
||||||
sudo sh -c "echo 'export PATH=/usr/local/git/bin:$PATH' >> /etc/bashrc"
|
sudo sh -c "echo 'export PATH=/usr/local/git/bin:$PATH' >> /etc/bashrc"
|
||||||
export "PATH=/usr/local/git/bin:$PATH"
|
export "PATH=/usr/local/git/bin:$PATH"
|
||||||
|
# Be nice for vagrant-proxyconf setup
|
||||||
|
mkdir -p "/usr/local/git/etc"
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_extra_pkgs() {
|
function install_extra_pkgs() {
|
||||||
|
Loading…
Reference in New Issue
Block a user