From 0499a6403aca3a1e1c0c6a33d1c07fe41c72b647 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 19 Aug 2024 22:53:44 +0200 Subject: [PATCH] package/botan: needs gcc >= 11 The "using enum" was added in gcc 11.x [0] (see also [1]). Compile successfully tested with internal Buildroot toolchain for sparc with gcc 12.x as gcc 11.x is not available anymore. The autobuild failure will be avoided now and fixed with newer external bootlin toolchains. Fixes: - http://autobuild.buildroot.org/results/ab8/ab83b920156f5a1e51ef960e4007769b5c27d0a1 [0] https://gcc.gnu.org/projects/cxx-status.html#cxx20 [1] https://stackoverflow.com/questions/75018634/how-to-use-the-using-keyword-in-gcc-10-4 Signed-off-by: Waldemar Brodkorb Signed-off-by: Yann E. MORIN (cherry picked from commit 10a70b1af67cf79986c2e401f7a54aa850ea82d6) Signed-off-by: Peter Korsgaard --- package/botan/Config.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/botan/Config.in b/package/botan/Config.in index c61b368801..305cc2fe8c 100644 --- a/package/botan/Config.in +++ b/package/botan/Config.in @@ -14,7 +14,7 @@ config BR2_PACKAGE_BOTAN_ARCH_SUPPORTS config BR2_PACKAGE_BOTAN bool "botan" depends on BR2_INSTALL_LIBSTDCPP - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_10 # C++20 + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_11 # C++20 depends on BR2_PACKAGE_BOTAN_ARCH_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_BOOST_FILESYSTEM if BR2_PACKAGE_BOOST && BR2_TOOLCHAIN_SUPPORTS_ALWAYS_LOCKFREE_ATOMIC_INTS @@ -24,8 +24,8 @@ config BR2_PACKAGE_BOTAN http://botan.randombit.net -comment "botan needs a toolchain w/ threads, C++, gcc >= 10" +comment "botan needs a toolchain w/ threads, C++, gcc >= 11" depends on !BR2_INSTALL_LIBSTDCPP \ - || !BR2_TOOLCHAIN_GCC_AT_LEAST_10 \ + || !BR2_TOOLCHAIN_GCC_AT_LEAST_11 \ || !BR2_TOOLCHAIN_HAS_THREADS depends on BR2_PACKAGE_BOTAN_ARCH_SUPPORTS