xbps-src-doinst-helper: if 'make install' fails print the log file and inform the user.
This commit is contained in:
@@ -200,8 +200,12 @@ make_install()
|
|||||||
#
|
#
|
||||||
# Install package via make.
|
# Install package via make.
|
||||||
#
|
#
|
||||||
${make_cmd} ${make_install_target} ${make_install_args} \
|
${make_cmd} ${make_install_target} ${make_install_args}
|
||||||
|| msg_error "Package '$pkgname ($lver)': make install failed!"
|
if [ $? -ne 0 -a -f ${wrksrc}/.xbps_make_install.log ]; then
|
||||||
|
msg_red "Package '$pkgname ($lver)': make install failed! full log below:"
|
||||||
|
cat ${wrksrc}/.xbps_make_install.log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -z "$PKG_TMPLNAME" ] && exit 2
|
[ -z "$PKG_TMPLNAME" ] && exit 2
|
||||||
|
|||||||
Reference in New Issue
Block a user