summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2023-07-10 08:11:41 +0200
committerKhem Raj <raj.khem@gmail.com>2023-07-10 11:01:40 -0700
commit564af52a771d1454b4b859553a4bbbbc3dfe38ea (patch)
treea77e9e1a2eebdebb572ec42d411d7b16f7125471
parentcd97171f02cd3103e27fc5219e5356be68a141be (diff)
downloadmeta-openembedded-564af52a771d1454b4b859553a4bbbbc3dfe38ea.tar.gz
spdlog: upgrade 1.11.0 -> 1.12.0
- remove unneeded patches Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-support/spdlog/spdlog/0001-Do-not-use-LFS64-functions-on-linux-musl.patch30
-rw-r--r--meta-oe/recipes-support/spdlog/spdlog/fix-build-for-master-fmt.patch44
-rw-r--r--meta-oe/recipes-support/spdlog/spdlog_1.12.0.bb (renamed from meta-oe/recipes-support/spdlog/spdlog_1.11.0.bb)7
3 files changed, 2 insertions, 79 deletions
diff --git a/meta-oe/recipes-support/spdlog/spdlog/0001-Do-not-use-LFS64-functions-on-linux-musl.patch b/meta-oe/recipes-support/spdlog/spdlog/0001-Do-not-use-LFS64-functions-on-linux-musl.patch
deleted file mode 100644
index b997389aa2..0000000000
--- a/meta-oe/recipes-support/spdlog/spdlog/0001-Do-not-use-LFS64-functions-on-linux-musl.patch
+++ /dev/null
@@ -1,30 +0,0 @@
1From ce7a593e74c8e0c2ece15c73e7614d4f13a19a53 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 30 Dec 2022 13:04:08 -0800
4Subject: [PATCH] Do not use LFS64 functions on linux/musl
5
6On musl, off_t is 64bit always ( even on 32bit platforms ), therefore using
7LFS64 funcitons is not needed on such platforms. Moreover, musl has stopped
8providing aliases for these functions [1] which means it wont compile on
9newer musl systems. Therefore only use it on 32bit glibc/linux platforms
10and exclude musl like cygwin or OSX
11
12[1] https://git.musl-libc.org/cgit/musl/commit/?id=246f1c811448f37a44b41cd8df8d0ef9736d95f4
13
14Upstream-Status: Submitted [https://github.com/gabime/spdlog/pull/2589]
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 include/spdlog/details/os.h | 4 +++-
18 1 file changed, 3 insertions(+), 1 deletion(-)
19
20--- a/include/spdlog/details/os-inl.h
21+++ b/include/spdlog/details/os-inl.h
22@@ -237,7 +237,7 @@ SPDLOG_INLINE size_t filesize(FILE *f)
23 int fd = ::fileno(f);
24 # endif
25 // 64 bits(but not in osx or cygwin, where fstat64 is deprecated)
26-# if (defined(__linux__) || defined(__sun) || defined(_AIX)) && (defined(__LP64__) || defined(_LP64))
27+# if ((defined(__linux__) && defined(__GLIBC__)) || defined(__sun) || defined(_AIX)) && (defined(__LP64__) || defined(_LP64))
28 struct stat64 st;
29 if (::fstat64(fd, &st) == 0)
30 {
diff --git a/meta-oe/recipes-support/spdlog/spdlog/fix-build-for-master-fmt.patch b/meta-oe/recipes-support/spdlog/spdlog/fix-build-for-master-fmt.patch
deleted file mode 100644
index c767db919f..0000000000
--- a/meta-oe/recipes-support/spdlog/spdlog/fix-build-for-master-fmt.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1Upstream-Status: Backport
2[https://github.com/gabime/spdlog/commit/0ca574ae168820da0268b3ec7607ca7b33024d05]
3
4Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
5
6From 0ca574ae168820da0268b3ec7607ca7b33024d05 Mon Sep 17 00:00:00 2001
7From: H1X4 <10332146+H1X4Dev@users.noreply.github.com>
8Date: Fri, 31 Mar 2023 20:39:32 +0300
9Subject: [PATCH] fix build for master fmt (non-bundled) (#2694)
10
11* fix build for master fmt (non-bundled)
12
13* update fmt_runtime_string macro
14
15* fix build of updated macro
16---
17 include/spdlog/common.h | 9 ++++++++-
18 1 file changed, 8 insertions(+), 1 deletion(-)
19
20diff --git a/include/spdlog/common.h b/include/spdlog/common.h
21index e69201a81..5f671c5c6 100644
22--- a/include/spdlog/common.h
23+++ b/include/spdlog/common.h
24@@ -173,12 +173,19 @@ using format_string_t = fmt::format_string<Args...>;
25 template<class T>
26 using remove_cvref_t = typename std::remove_cv<typename std::remove_reference<T>::type>::type;
27
28+template <typename Char>
29+#if FMT_VERSION >= 90101
30+using fmt_runtime_string = fmt::runtime_format_string<Char>;
31+#else
32+using fmt_runtime_string = fmt::basic_runtime<Char>;
33+#endif
34+
35 // clang doesn't like SFINAE disabled constructor in std::is_convertible<> so have to repeat the condition from basic_format_string here,
36 // in addition, fmt::basic_runtime<Char> is only convertible to basic_format_string<Char> but not basic_string_view<Char>
37 template<class T, class Char = char>
38 struct is_convertible_to_basic_format_string
39 : std::integral_constant<bool,
40- std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value>
41+ std::is_convertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt_runtime_string<Char>>::value>
42 {};
43
44 # if defined(SPDLOG_WCHAR_FILENAMES) || defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)
diff --git a/meta-oe/recipes-support/spdlog/spdlog_1.11.0.bb b/meta-oe/recipes-support/spdlog/spdlog_1.12.0.bb
index 2800be4784..c7d8ff8f3d 100644
--- a/meta-oe/recipes-support/spdlog/spdlog_1.11.0.bb
+++ b/meta-oe/recipes-support/spdlog/spdlog_1.12.0.bb
@@ -3,11 +3,8 @@ HOMEPAGE = "https://github.com/gabime/spdlog/wiki"
3LICENSE = "MIT" 3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" 4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5 5
6SRCREV = "ad0e89cbfb4d0c1ce4d097e134eb7be67baebb36" 6SRCREV = "7e635fca68d014934b4af8a1cf874f63989352b7"
7SRC_URI = "git://github.com/gabime/spdlog.git;protocol=https;branch=v1.x \ 7SRC_URI = "git://github.com/gabime/spdlog.git;protocol=https;branch=v1.x"
8 file://0001-Do-not-use-LFS64-functions-on-linux-musl.patch \
9 file://fix-build-for-master-fmt.patch \
10 "
11 8
12DEPENDS += "fmt" 9DEPENDS += "fmt"
13 10