pkgdep: Install git at the default /usr/local/bin dir
There's no point in keeping track of the extra path and pollute the global bash profiles with it. Just put the target binary under the /usr/local/bin which most distros, including centos7 keep in their $PATH. Also, drop the proxyconf mention as we are not using it anymore. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I2a531fb140aea4c87ad8c3f053a39d262d2d02ae Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16853 Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com>
This commit is contained in:
parent
4dcb94480b
commit
ea91da8d2d
@ -346,12 +346,8 @@ function install_git() {
|
||||
tar -C "$GIT_REPOS" -xzof <(wget -qO- "$GIT_REPO_GIT")
|
||||
(cd "$GIT_REPOS/git-$GIT_VERSION" \
|
||||
&& make configure \
|
||||
&& ./configure --prefix=/usr/local/git \
|
||||
&& ./configure \
|
||||
&& 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user