]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
classes/meson: dump the end of the meson-log.txt on failure
authorRoss Burton <ross.burton@arm.com>
Fri, 28 Nov 2025 13:13:40 +0000 (13:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Dec 2025 14:45:36 +0000 (14:45 +0000)
commitdbf2d59ca368ea707dc3fe91936842d6db4d380f
tree5ef38d8efbc626651609a2ba8be3e1bcb8ab8ee0
parent48518c65a1f463896f04a4d8eae5fa57ef0da97a
classes/meson: dump the end of the meson-log.txt on failure

When 'meson setup' fails it just prints the summary of the failure and
leaves the full details in the meson-log.txt.

  ../sources/xorgproto-2024.1/meson.build:22:0: ERROR:
  Executables created by c compiler x86-poky-linux-gcc [...] are not runnable.

  A full log can be found at [${B}]/meson-logs/meson-log.txt
  ERROR: meson failed

In CI systems where the build tree is then thrown away this is not very
useful, so on failure also output the last ten lines of the log file:
hopefully that is enough for context without flooding the logs.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/meson.bbclass