Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] autotools.bbclass: output failed config.log
@ 2019-05-15  9:23 Hongxu Jia
  2019-05-15  9:32 ` Andreas Müller
  2019-05-15 13:32 ` [PATCH V2] " Hongxu Jia
  0 siblings, 2 replies; 15+ messages in thread
From: Hongxu Jia @ 2019-05-15  9:23 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

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@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



^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2019-05-20 20:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-15  9:23 [PATCH] autotools.bbclass: output failed config.log Hongxu Jia
2019-05-15  9:32 ` Andreas Müller
2019-05-15  9:50   ` Hongxu Jia
2019-05-15 10:54     ` Andreas Müller
2019-05-15 11:57       ` Hongxu Jia
2019-05-15 11:08     ` Adrian Bunk
2019-05-15 12:30       ` Hongxu Jia
2019-05-15 13:42         ` Adrian Bunk
2019-05-15 13:50           ` Hongxu Jia
2019-05-15 13:53             ` Hongxu Jia
2019-05-15 14:02             ` Adrian Bunk
2019-05-20 20:50               ` Khem Raj
2019-05-15 13:32 ` [PATCH V2] " Hongxu Jia
2019-05-15 14:01   ` richard.purdie
2019-05-15 14:05     ` Hongxu Jia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox