From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Khem Raj <raj.khem@gmail.com>
Subject: [PATCH] fmt: Include missing header <algorithm>
Date: Thu, 29 Aug 2024 09:31:28 -0700 [thread overview]
Message-ID: <20240829163128.502025-1-raj.khem@gmail.com> (raw)
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"
next reply other threads:[~2024-08-29 16:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-29 16:31 Khem Raj [this message]
2024-08-29 16:49 ` Patchtest results for [PATCH] fmt: Include missing header <algorithm> patchtest
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240829163128.502025-1-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox