From: Robert Yang Date: Mon, 17 Nov 2025 06:37:08 +0000 (-0800) Subject: fmt: 11.2.0 -> 12.1.0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08549c5ae90e3cb21976636098b1bb1d9ea41661;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git fmt: 11.2.0 -> 12.1.0 * Remove backport patch 0001-Fix-compilation-on-cl * Refresh 0001-Workaround-an-ABI-issue-in-spdlog.patch Signed-off-by: Robert Yang Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/recipes-devtools/fmt/fmt/0001-Fix-compilation-on-clang-21-libc-21-4477.patch b/meta/recipes-devtools/fmt/fmt/0001-Fix-compilation-on-clang-21-libc-21-4477.patch deleted file mode 100644 index 911fa90a40c..00000000000 --- a/meta/recipes-devtools/fmt/fmt/0001-Fix-compilation-on-clang-21-libc-21-4477.patch +++ /dev/null @@ -1,46 +0,0 @@ -From f4345467fce7edbc6b36c3fa1cf197a67be617e2 Mon Sep 17 00:00:00 2001 -From: Remy Jette -Date: Sat, 21 Jun 2025 07:28:14 -0700 -Subject: [PATCH] Fix compilation on clang-21 / libc++-21 (#4477) - -`` was not being included, so malloc and free were only declared -via transitive includes. Some includes changed in the latest libc++-21 -build which broke fmt. - -Also changed `malloc`/`free` to `std::malloc` and `std::free`, as -putting those symbols in the global namespace is optional for the -implementation when including ``. - -Upstream-Status: Backport [https://github.com/fmtlib/fmt/pull/4477] -Signed-off-by: Khem Raj ---- - include/fmt/format.h | 5 +++-- - 1 file changed, 3 insertions(+), 2 deletions(-) - -Index: fmt-11.2.0/include/fmt/format.h -=================================================================== ---- fmt-11.2.0.orig/include/fmt/format.h -+++ fmt-11.2.0/include/fmt/format.h -@@ -44,6 +44,7 @@ - # include // std::signbit - # include // std::byte - # include // uint32_t -+# include // std::malloc, std::free - # include // std::memcpy - # include // std::numeric_limits - # include // std::bad_alloc -@@ -744,12 +745,12 @@ template struct allocator { - - T* allocate(size_t n) { - FMT_ASSERT(n <= max_value() / sizeof(T), ""); -- T* p = static_cast(malloc(n * sizeof(T))); -+ T* p = static_cast(std::malloc(n * sizeof(T))); - if (!p) FMT_THROW(std::bad_alloc()); - return p; - } - -- void deallocate(T* p, size_t) { free(p); } -+ void deallocate(T* p, size_t) { std::free(p); } - }; - - } // namespace detail diff --git a/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch b/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch index 3fe85d51ee4..442506f8345 100644 --- a/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch +++ b/meta/recipes-devtools/fmt/fmt/0001-Workaround-an-ABI-issue-in-spdlog.patch @@ -1,4 +1,4 @@ -From 5a5637c306c617ddb3726c76d3f7490a2dc0a5cd Mon Sep 17 00:00:00 2001 +From 32f4a4a634c99d4e00cc6149786a9180ad651f76 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 22 Mar 2025 06:57:04 -0700 Subject: [PATCH] Workaround an ABI issue in spdlog @@ -10,10 +10,10 @@ Signed-off-by: Khem Raj 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h -index 287e7163..61cb2825 100644 +index 4a653007..82f80efd 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h -@@ -774,7 +774,9 @@ enum { inline_buffer_size = 500 }; +@@ -793,7 +793,9 @@ enum { inline_buffer_size = 500 }; * converted to `std::string` with `to_string(out)`. */ template { private: T store_[SIZE]; -@@ -2594,7 +2596,7 @@ class bigint { +@@ -2746,7 +2748,7 @@ class bigint { } public: diff --git a/meta/recipes-devtools/fmt/fmt_11.2.0.bb b/meta/recipes-devtools/fmt/fmt_12.1.0.bb similarity index 84% rename from meta/recipes-devtools/fmt/fmt_11.2.0.bb rename to meta/recipes-devtools/fmt/fmt_12.1.0.bb index 133e1ae77d9..22cab6f1382 100644 --- a/meta/recipes-devtools/fmt/fmt_11.2.0.bb +++ b/meta/recipes-devtools/fmt/fmt_12.1.0.bb @@ -4,12 +4,11 @@ HOMEPAGE = "https://fmt.dev" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=b9257785fc4f3803a4b71b76c1412729" -SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https;tag=${PV}\ +SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https;tag=${PV} \ file://0001-Workaround-an-ABI-issue-in-spdlog.patch \ - file://0001-Fix-compilation-on-clang-21-libc-21-4477.patch \ file://run-ptest \ " -SRCREV = "40626af88bd7df9a5fb80be7b25ac85b122d6c21" +SRCREV = "407c905e45ad75fc29bf0f9bb7c5c2fd3475976f" inherit cmake ptest