summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-global/sanity.bbclass9
1 files changed, 3 insertions, 6 deletions
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass
index d875a022db..439dc5ad75 100644
--- a/meta/classes-global/sanity.bbclass
+++ b/meta/classes-global/sanity.bbclass
@@ -505,18 +505,15 @@ def check_userns():
505 "See https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions for more information.") 505 "See https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions for more information.")
506 506
507 507
508# Require at least gcc version 8.0 508# Require at least gcc version 10.1
509#
510# This can be fixed on CentOS-7 with devtoolset-6+
511# https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/
512# 509#
513# A less invasive fix is with scripts/install-buildtools (or with user 510# A less invasive fix is with scripts/install-buildtools (or with user
514# built buildtools-extended-tarball) 511# built buildtools-extended-tarball)
515# 512#
516def check_gcc_version(sanity_data): 513def check_gcc_version(sanity_data):
517 version = oe.utils.get_host_gcc_version(sanity_data) 514 version = oe.utils.get_host_gcc_version(sanity_data)
518 if bb.utils.vercmp_string_op(version, "8.0", "<"): 515 if bb.utils.vercmp_string_op(version, "10.1", "<"):
519 return "Your version of gcc is older than 8.0 and will break builds. Please install a newer version of gcc (you could use the project's buildtools-extended-tarball or use scripts/install-buildtools).\n" 516 return "Your version of gcc is older than 10.1 and will break builds. Please install a newer version of gcc (you could use the project's buildtools-extended-tarball or use scripts/install-buildtools).\n"
520 return None 517 return None
521 518
522# Tar version 1.24 and onwards handle overwriting symlinks correctly 519# Tar version 1.24 and onwards handle overwriting symlinks correctly