pkgdep/git: Rearrange order in which install_refspdk() is called

Since refspdk has its source built, we should give it a chance to
avoid any potential issues with missing dependencies. To do that,
let's run it at the very end after all other sources were already
put in place (this is mainly relevant to FreeBSD where cmdline
for ./configure is hardcoded).

Change-Id: Ic07129c7b879eff7fddd734c9c4a6787df3da7ec
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4190
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:
Michal Berger 2020-09-11 22:02:13 +02:00 committed by Tomasz Zawadzki
parent b85b7e2b93
commit db31afaaef

View File

@ -336,7 +336,6 @@ IFS="," read -ra conf_env <<< "$CONF"
for conf in "${conf_env[@]}"; do
export "INSTALL_${conf^^}=true"
done
sources=(install_refspdk)
if [[ $OSID == freebsd ]]; then
jobs=$(($(sysctl -n hw.ncpu) * 2))
@ -354,18 +353,11 @@ else
fi
sources+=(install_fio)
sources+=(install_vagrant)
sources+=(install_spdk)
sudo mkdir -p /usr/{,local}/src
sudo mkdir -p "$GIT_REPOS"
if [[ $INSTALL_REFSPDK == true ]]; then
# Serialize builds as refspdk depends on spdk
install_spdk
install_refspdk
else
sources+=(install_spdk)
fi
for source in "${sources[@]}"; do
source_conf=${source^^}
if [[ ${!source_conf} == true ]]; then
@ -373,3 +365,9 @@ for source in "${sources[@]}"; do
fi
done
wait
if [[ $INSTALL_REFSPDK == true ]]; then
# Serialize builds as refspdk depends on spdk
[[ $INSTALL_SPDK != true ]] && install_spdk
install_refspdk
fi