diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-04-02 16:45:26 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-04-19 17:15:54 -0700 |
commit | 2be81121e2efad2dd04045cf3e2a0bcff50a02a5 (patch) | |
tree | 7c99c1be206cddc3e27ac6802b55087cf3d3e498 | |
parent | 44b435987116618a1898e3b8ae6e6d5d31c7afba (diff) | |
download | openembedded-core-contrib-2be81121e2efad2dd04045cf3e2a0bcff50a02a5.tar.gz |
sanity: Require gcc 5.0 minimum version
After polling various develoeprs, its clear that many layers are struggling
with gcc 4.8 and its better for the project to adopt 5.0 as a minimum
version at this point in time. We should have technology like
buildtools-extended-tarball available to ensure things still work on Centos 7
and Debian 8.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit abc741af16311cb473b7e3185ae34265b243d804)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta/classes/sanity.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 15b05d442b..f82676bf90 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass @@ -521,7 +521,7 @@ def check_wsl(d): return "OpenEmbedded doesn't work under WSL at this time, sorry" return None -# Require at least gcc version 4.8. +# Require at least gcc version 5.0. # # This can be fixed on CentOS-7 with devtoolset-6+ # https://www.softwarecollections.org/en/scls/rhscl/devtoolset-6/ @@ -535,8 +535,8 @@ def check_gcc_version(sanity_data): build_cc, version = oe.utils.get_host_compiler_version(sanity_data) if build_cc.strip() == "gcc": - if LooseVersion(version) < LooseVersion("4.8"): - return "Your version of gcc is older than 4.8 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" + if LooseVersion(version) < LooseVersion("5.0"): + return "Your version of gcc is older than 5.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" return None # Tar version 1.24 and onwards handle overwriting symlinks correctly |