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 <[email protected]>
---
 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
-- 
1.7.11.7


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to