public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] fmt: Include missing header <algorithm>
@ 2024-08-29 16:31 Khem Raj
  2024-08-29 16:49 ` Patchtest results for " patchtest
  0 siblings, 1 reply; 2+ messages in thread
From: Khem Raj @ 2024-08-29 16:31 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../0001-Include-algorithm-for-std-copy.patch | 29 +++++++++++++++++++
 meta/recipes-devtools/fmt/fmt_11.0.2.bb       |  4 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/fmt/fmt/0001-Include-algorithm-for-std-copy.patch

diff --git a/meta/recipes-devtools/fmt/fmt/0001-Include-algorithm-for-std-copy.patch b/meta/recipes-devtools/fmt/fmt/0001-Include-algorithm-for-std-copy.patch
new file mode 100644
index 00000000000..0391de9a7a3
--- /dev/null
+++ b/meta/recipes-devtools/fmt/fmt/0001-Include-algorithm-for-std-copy.patch
@@ -0,0 +1,29 @@
+From 170d72330a2253eec4c1e37f6671f787df532782 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Thu, 29 Aug 2024 09:19:29 -0700
+Subject: [PATCH] Include <algorithm> for std::copy
+
+Some headers like color.h are using std::copy API
+from C++ std library, but missing to include the
+right header [1]
+
+[1] https://en.cppreference.com/w/cpp/algorithm/copy
+
+Upstream-Status: Submitted [https://github.com/fmtlib/fmt/pull/4138]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ include/fmt/color.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/fmt/color.h b/include/fmt/color.h
+index 231d93c8..6130a2d0 100644
+--- a/include/fmt/color.h
++++ b/include/fmt/color.h
+@@ -8,6 +8,7 @@
+ #ifndef FMT_COLOR_H_
+ #define FMT_COLOR_H_
+ 
++#include <algorithm>                   // std::copy
+ #include "format.h"
+ 
+ FMT_BEGIN_NAMESPACE
diff --git a/meta/recipes-devtools/fmt/fmt_11.0.2.bb b/meta/recipes-devtools/fmt/fmt_11.0.2.bb
index 5a7041088cd..fdc2a7dd5fa 100644
--- a/meta/recipes-devtools/fmt/fmt_11.0.2.bb
+++ b/meta/recipes-devtools/fmt/fmt_11.0.2.bb
@@ -4,7 +4,9 @@ HOMEPAGE = "https://fmt.dev"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b9257785fc4f3803a4b71b76c1412729"
 
-SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https"
+SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https \
+           file://0001-Include-algorithm-for-std-copy.patch \
+           "
 SRCREV = "0c9fce2ffefecfdce794e1859584e25877b7b592"
 
 S = "${WORKDIR}/git"


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-29 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 16:31 [PATCH] fmt: Include missing header <algorithm> Khem Raj
2024-08-29 16:49 ` Patchtest results for " patchtest

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox