From 4be6d32b97a1bbba14dba8552d073a1a0dacc3ba Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Thu, 17 Sep 2020 15:16:13 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4292 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki --- test/common/config/pkgdep/git | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/common/config/pkgdep/git b/test/common/config/pkgdep/git index befdaa2c8..0157164f2 100644 --- a/test/common/config/pkgdep/git +++ b/test/common/config/pkgdep/git @@ -250,6 +250,8 @@ function install_git() { && sudo make -j${jobs} install) sudo sh -c "echo 'export PATH=/usr/local/git/bin:$PATH' >> /etc/bashrc" export "PATH=/usr/local/git/bin:$PATH" + # Be nice for vagrant-proxyconf setup + mkdir -p "/usr/local/git/etc" } function install_extra_pkgs() {