From 574aa17a02be8b74f2d0bd49d72636c7650bbaa5 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 16 Apr 2026 16:25:20 -0700 Subject: [PATCH] libtoml11: Fix build with C23 and clang Signed-off-by: Khem Raj --- ...move-more-whitespaces-after-operator.patch | 34 +++++++++++++++++++ .../libtoml11/libtoml11_4.4.0.bb | 3 ++ 2 files changed, 37 insertions(+) create mode 100644 meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch diff --git a/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch b/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch new file mode 100644 index 0000000000..5bff81eaf6 --- /dev/null +++ b/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch @@ -0,0 +1,34 @@ +From 6af7de3d5eaae59c53c42aab8eca1e1e9a365da5 Mon Sep 17 00:00:00 2001 +From: Steffen Winter +Date: Thu, 25 Dec 2025 20:48:02 +0100 +Subject: [PATCH] Remove more whitespaces after operator"" + +Upstream-Status: Submitted [https://github.com/ToruNiina/toml11/pull/306] +Signed-off-by: Khem Raj +--- + include/toml11/fwd/literal_fwd.hpp | 4 ++-- + include/toml11/impl/literal_impl.hpp | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +--- a/include/toml11/fwd/literal_fwd.hpp ++++ b/include/toml11/fwd/literal_fwd.hpp +@@ -24,7 +24,7 @@ inline namespace toml_literals + #if defined(TOML11_HAS_CHAR8_T) + // value of u8"" literal has been changed from char to char8_t and char8_t is + // NOT compatible to char +-::toml::value operator"" _toml(const char8_t* str, std::size_t len); ++::toml::value operator""_toml(const char8_t* str, std::size_t len); + #endif + + } // toml_literals +--- a/include/toml11/impl/literal_impl.hpp ++++ b/include/toml11/impl/literal_impl.hpp +@@ -146,7 +146,7 @@ operator""_toml(const char* str, std::si + // value of u8"" literal has been changed from char to char8_t and char8_t is + // NOT compatible to char + TOML11_INLINE ::toml::value +-operator"" _toml(const char8_t* str, std::size_t len) ++operator""_toml(const char8_t* str, std::size_t len) + { + if(len == 0) + { diff --git a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb index 7e097e4612..49f9840f06 100644 --- a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb +++ b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb @@ -16,12 +16,15 @@ PE = "1" SRC_URI = "\ gitsm://github.com/ToruNiina/toml11.git;protocol=https;branch=main;tag=v${PV} \ file://0001-Remove-whitespace-in-operator.patch \ + file://0001-Remove-more-whitespaces-after-operator.patch \ file://run-ptest \ " SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286" inherit cmake ptest +CXXFLAGS:append:toolchain-clang = " -Wno-error=c2y-extensions" + EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \ -DTOML11_BUILD_TESTS=${@bb.utils.contains("PTEST_ENABLED", "1", "ON", "OFF", d)} \ "