spec: remove some workaround for external mlx driver

This commit is contained in:
Kairui Song 2022-03-25 09:50:06 +08:00
parent 1d986e8903
commit 417b2cbfae
2 changed files with 10 additions and 10 deletions

View File

@ -214,7 +214,7 @@ distro=$(cat distro 2>/dev/null)
echo "This MLNX_OFED was built for distro: ${distro}"
#this will cause error in chroot environment
#echo "%__os_install_post %{nil}" >> ~/.rpmmacros
echo "%__os_install_post %{nil}" >> ~/.rpmmacros
echo "%__brp_mangle_shebangs %{nil}" >> ~/.rpmmacros
# compile modules against target kernel

View File

@ -192,12 +192,12 @@ function handle_rpms_all()
done
}
__cleanup()
{
sed -i '/__os_install_post/d' ~/.rpmmacros
sed -i '/__brp_mangle_shebangs/d' ~/.rpmmacros
}
trap '__cleanup' INT TERM ERR EXIT
#__cleanup()
#{
# sed -i '/__os_install_post/d' ~/.rpmmacros
# sed -i '/__brp_mangle_shebangs/d' ~/.rpmmacros
#}
#trap '__cleanup' INT TERM ERR EXIT
############################################################################
@ -215,7 +215,7 @@ echo "This MLNX_OFED was built for distro: ${distro}"
#this will cause error in chroot environment
#echo "%__os_install_post %{nil}" >> ~/.rpmmacros
echo "%__brp_mangle_shebangs %{nil}" >> ~/.rpmmacros
#echo "%__brp_mangle_shebangs %{nil}" >> ~/.rpmmacros
# compile modules against target kernel
./mlnxofedinstall \
@ -228,8 +228,8 @@ echo "%__brp_mangle_shebangs %{nil}" >> ~/.rpmmacros
--skip-distro-check \
--skip-repo ${mlnxofedinstall_flags}
sed -i '/__os_install_post/d' ~/.rpmmacros
sed -i '/__brp_mangle_shebangs/d' ~/.rpmmacros
#sed -i '/__os_install_post/d' ~/.rpmmacros
#sed -i '/__brp_mangle_shebangs/d' ~/.rpmmacros
# fix permissiosn
chown -R ${USER} ${TMPD}