[OE-core] [PATCH] autotools.bbclass: output failed config.log

Hongxu Jia hongxu.jia at windriver.com
Wed May 15 09:23:13 UTC 2019


If do_configure failed, output content of config.log
to configure log, it is helpful to trace the do_configure
failure on the build system which is hard to login.
(such as autobuilder)

Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
 meta/classes/autotools.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 8768a6a..03cbe1b 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -90,7 +90,11 @@ oe_runconf () {
 		bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
 		if ! ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"; then
 			bbnote "The following config.log files may provide further information."
-			bbnote `find ${B} -ignore_readdir_race -type f -name config.log`
+			config_log="`find ${B} -ignore_readdir_race -type f -name config.log`"
+			bbnote "$config_log"
+			[ -e "$config_log" ] && cat "$config_log" | while read line; do
+				bbnote "$line"
+			done
 			bbfatal_log "configure failed"
 		fi
 	else
-- 
2.7.4



More information about the Openembedded-core mailing list