summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-13 17:27:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-13 22:23:49 +0100
commit843b4094628cf7875224f69f664b0ba1040183c3 (patch)
treec3c0f3064ff7896cf1d047a14cafd038972ee187
parent31a693bae828992ac95e03f5e64dc24920e4bbb3 (diff)
downloadpoky-843b4094628cf7875224f69f664b0ba1040183c3.tar.gz
sanity: Show a warning that make 4.2.1 is buggy on non-ubuntu systems
We keep seeing hangs on the autobuilder with make 4.2.1 on Centos8, Alma8 and OpenSuse workers. The hang occurs in perl and kernel builds in particular. The issue is fixed in 4.3 and has been patched on Ubuntu systems: https://git.savannah.gnu.org/cgit/make.git/commit/?id=78b5fec6898c26956d00548427cda1101cb80f8a https://savannah.gnu.org/bugs/?51400 Add a sanity test for make 4.2.1 and error for non-ubuntu systems. We're making a buildtools-make-tarball available which can be used to allow systems with the broken version to use the project. (From OE-Core rev: 4b0e9601d3728b6cd62a7777abad2b6e362a9850) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/sanity.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index be956fbcd6..c385d92e8b 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -467,6 +467,12 @@ def check_make_version(sanity_data):
467 os.remove("makefile_test_b.c") 467 os.remove("makefile_test_b.c")
468 if os.path.exists("makefile_test.a"): 468 if os.path.exists("makefile_test.a"):
469 os.remove("makefile_test.a") 469 os.remove("makefile_test.a")
470
471 if bb.utils.vercmp_string_op(version, "4.2.1", "=="):
472 distro = oe.lsb.distro_identifier()
473 if "ubuntu" in distro:
474 return None
475 return "make version 4.2.1 is known to have issues on Centos/OpenSUSE and other non-Ubuntu systems. Please use a buildtools-make-tarball or a newer version of make.\n"
470 return None 476 return None
471 477
472 478