From 4b71f4195b3645c4a7d5febc2b29083d92c2121e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 11 Dec 2010 00:48:32 +0100 Subject: [PATCH] xbps-src-doinst-helper: if 'make install' fails print the log file and inform the user. --- xbps-src/libexec/xbps-src-doinst-helper.sh.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xbps-src/libexec/xbps-src-doinst-helper.sh.in b/xbps-src/libexec/xbps-src-doinst-helper.sh.in index 2423276953f..4b642325c5b 100644 --- a/xbps-src/libexec/xbps-src-doinst-helper.sh.in +++ b/xbps-src/libexec/xbps-src-doinst-helper.sh.in @@ -200,8 +200,12 @@ make_install() # # Install package via make. # - ${make_cmd} ${make_install_target} ${make_install_args} \ - || msg_error "Package '$pkgname ($lver)': make install failed!" + ${make_cmd} ${make_install_target} ${make_install_args} + 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