summaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-02 16:35:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-03 14:54:59 +0100
commitb8bd56e34d05ed7463d3125e630f6e70ff2fdbd9 (patch)
tree86aa35d5ef5ac8fe7fa2626dd7185b0865b7ae50 /meta/classes/autotools.bbclass
parentb6cf8f90238c3dd21b536a436bb5e10d02d1cb22 (diff)
downloadpoky-b8bd56e34d05ed7463d3125e630f6e70ff2fdbd9.tar.gz
autotools.bbclass: When configure fails, dump the config.log files the logs
When configure fails, it usually says "see config.log" yet nobody ever shares the config.log file meaning the person trying to help invariably has to ask for more information. This patch dumps all the config.log files into the main bitbake log files when configure fails, meaning all the information is present to help someone debug such failures. It does make the log rather larger but this is preferable to not having enough information in most cases. [YOCTO #2463] (From OE-Core rev: 7ad08f5b73aa949a877adc5641b4bb1d007de750) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 9b36f3c7b6..02b984db63 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -74,7 +74,14 @@ oe_runconf () {
74 cfgscript="${S}/configure" 74 cfgscript="${S}/configure"
75 if [ -x "$cfgscript" ] ; then 75 if [ -x "$cfgscript" ] ; then
76 bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" 76 bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
77 ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" 77 set +e
78 ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
79 if [ "$?" != "0" ]; then
80 echo "Configure failed. The contents of all config.log files follows to aid debugging"
81 find ${S} -name config.log -print -exec cat {} \;
82 bbfatal "oe_runconf failed"
83 fi
84 set -e
78 else 85 else
79 bbfatal "no configure script found at $cfgscript" 86 bbfatal "no configure script found at $cfgscript"
80 fi 87 fi