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:
Michal Berger 2023-02-17 23:31:29 +01:00 committed by Tomasz Zawadzki
parent 4dcb94480b
commit ea91da8d2d

View File

@ -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() {