From patchwork Fri Nov 16 17:24:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: autotools: do not output config.log to console Date: Fri, 16 Nov 2012 17:24:26 -0000 From: Enrico Scholz X-Patchwork-Id: 39173 Message-Id: <1353086666-25122-1-git-send-email-enrico.scholz@sigma-chemnitz.de> To: openembedded-core@lists.openembedded.org Cc: Enrico Scholz Flooding xterm console output with 10000+ lines of config.log is not very productive and hides the previously printed information. Because the interesting lines are usually in the middle of config.log, there is not easy way to trim down the output. Patch copies output of config.log into temp-dir and points to this file. Signed-off-by: Enrico Scholz --- meta/classes/autotools.bbclass | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index efeb67f..7dc39f3 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -91,14 +91,12 @@ oe_runconf () { cfgscript="${S}/configure" if [ -x "$cfgscript" ] ; then bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" - set +e - ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" - if [ "$?" != "0" ]; then - echo "Configure failed. The contents of all config.log files follows to aid debugging" - find ${S} -name config.log -print -exec cat {} \; + ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || ( + set +x + echo "Configure failed. The contents of all config.log files will be put into ${T}/config.log to ease debugging." + find ${S} -name config.log -print -exec cat {} \; > ${T}/config.log bbfatal "oe_runconf failed" - fi - set -e + ) else bbfatal "no configure script found at $cfgscript" fi