diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-01-20 11:45:20 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-21 13:26:07 +0000 |
| commit | a6554377a0310389d59d1013496feeece32bcef5 (patch) | |
| tree | fd2b7aa6b499074d61546767fbc2bf66748be2e0 | |
| parent | e977e38862ce4f0c08575f2a6d9e6d28505483ea (diff) | |
| download | poky-a6554377a0310389d59d1013496feeece32bcef5.tar.gz | |
fmt: fix build with GCC 9.4
fmt-native is needed to build ccache-native, and the compile fails on
hosts with GCC 9.4 (such as Ubuntu 20.04). Backport a patch to fix this
issue.
(From OE-Core rev: 7dbb984f86d04e79d2311411cd8b775e2674b5f3)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/fmt/files/fix-gcc9.patch | 26 | ||||
| -rw-r--r-- | meta/recipes-devtools/fmt/fmt_11.1.1.bb | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/meta/recipes-devtools/fmt/files/fix-gcc9.patch b/meta/recipes-devtools/fmt/files/fix-gcc9.patch new file mode 100644 index 0000000000..1d67f7094d --- /dev/null +++ b/meta/recipes-devtools/fmt/files/fix-gcc9.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From 5f0572acdca120e11f6d810765d7a6a3c593fcbb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Victor Zverovich <viz@meta.com> | ||
| 3 | Date: Sat, 18 Jan 2025 09:00:22 -0800 | ||
| 4 | Subject: [PATCH] Workaround a compilation error on gcc 9.4 | ||
| 5 | |||
| 6 | Upstream-Status: Backport [5f0572acdca120e11f6d810765d7a6a3c593fcbb] | ||
| 7 | Signed-off-by: Ross Burton <ross.burton@arm.com> | ||
| 8 | --- | ||
| 9 | include/fmt/format.h | 4 +++- | ||
| 10 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/include/fmt/format.h b/include/fmt/format.h | ||
| 13 | index 9cd523a9e6a5..4466b4f4d24b 100644 | ||
| 14 | --- a/include/fmt/format.h | ||
| 15 | +++ b/include/fmt/format.h | ||
| 16 | @@ -227,7 +227,9 @@ FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) { | ||
| 17 | #if defined(FMT_USE_STRING_VIEW) | ||
| 18 | template <typename Char> using std_string_view = std::basic_string_view<Char>; | ||
| 19 | #else | ||
| 20 | -template <typename T> struct std_string_view {}; | ||
| 21 | +template <typename Char> struct std_string_view { | ||
| 22 | + operator basic_string_view<Char>() const; | ||
| 23 | +}; | ||
| 24 | #endif | ||
| 25 | |||
| 26 | template <typename Char, Char... C> struct string_literal { | ||
diff --git a/meta/recipes-devtools/fmt/fmt_11.1.1.bb b/meta/recipes-devtools/fmt/fmt_11.1.1.bb index a99a377ad4..cfacd81a11 100644 --- a/meta/recipes-devtools/fmt/fmt_11.1.1.bb +++ b/meta/recipes-devtools/fmt/fmt_11.1.1.bb | |||
| @@ -4,7 +4,8 @@ HOMEPAGE = "https://fmt.dev" | |||
| 4 | LICENSE = "MIT" | 4 | LICENSE = "MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b9257785fc4f3803a4b71b76c1412729" | 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b9257785fc4f3803a4b71b76c1412729" |
| 6 | 6 | ||
| 7 | SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https" | 7 | SRC_URI = "git://github.com/fmtlib/fmt;branch=master;protocol=https \ |
| 8 | file://fix-gcc9.patch" | ||
| 8 | SRCREV = "e3ddede6c4ee818825c4e5a6dfa1d384860c27d9" | 9 | SRCREV = "e3ddede6c4ee818825c4e5a6dfa1d384860c27d9" |
| 9 | 10 | ||
| 10 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
