Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Conner Clere (3ddd8bc6cb48be2e773952b127a505dfe105d0f6)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Conner Clere <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Conner Clere (3ddd8bc6cb48be2e773952b127a505dfe105d0f6)
  • Date: Mon, 26 Jun 2023 03:15:14 +0000

GIT changes to master grimoire by Conner Clere <xenanthropy AT sourcemage.org>:

libs/spdlog/HISTORY | 4 +++
libs/spdlog/PRE_BUILD | 3 ++
libs/spdlog/patches/fmt10-fix.patch | 39
++++++++++++++++++++++++++++++++++++
3 files changed, 46 insertions(+)

New commits:
commit 3ddd8bc6cb48be2e773952b127a505dfe105d0f6
Author: Conner Clere <xenanthropy AT sourcemage.org>
Commit: Conner Clere <xenanthropy AT sourcemage.org>

spdlog: fix build with fmt 10

diff --git a/libs/spdlog/HISTORY b/libs/spdlog/HISTORY
index a8d5616..da0fa91 100644
--- a/libs/spdlog/HISTORY
+++ b/libs/spdlog/HISTORY
@@ -1,3 +1,7 @@
+2023-06-25 Conner Clere <xenanthropy AT sourcemage.org>
+ * PRE_BUILD: added, apply patch
+ * patches/fmt10-fix.patch, added, fix building with fmt version 10
+
2022-12-11 Florian Franzmann <bwlf AT bandrate.org>
* DETAILS: version 1.11.0

diff --git a/libs/spdlog/PRE_BUILD b/libs/spdlog/PRE_BUILD
new file mode 100755
index 0000000..0cab101
--- /dev/null
+++ b/libs/spdlog/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+apply_patch_dir patches
diff --git a/libs/spdlog/patches/fmt10-fix.patch
b/libs/spdlog/patches/fmt10-fix.patch
new file mode 100644
index 0000000..6717370
--- /dev/null
+++ b/libs/spdlog/patches/fmt10-fix.patch
@@ -0,0 +1,39 @@
+From 0ca574ae168820da0268b3ec7607ca7b33024d05 Mon Sep 17 00:00:00 2001
+From: H1X4 <10332146+H1X4Dev AT users.noreply.github.com>
+Date: Fri, 31 Mar 2023 20:39:32 +0300
+Subject: [PATCH] fix build for master fmt (non-bundled) (#2694)
+
+* fix build for master fmt (non-bundled)
+
+* update fmt_runtime_string macro
+
+* fix build of updated macro
+---
+ include/spdlog/common.h | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/include/spdlog/common.h b/include/spdlog/common.h
+index e69201a81..5f671c5c6 100644
+--- a/include/spdlog/common.h
++++ b/include/spdlog/common.h
+@@ -173,12 +173,19 @@ using format_string_t = fmt::format_string<Args...>;
+ template<class T>
+ using remove_cvref_t = typename std::remove_cv<typename
std::remove_reference<T>::type>::type;
+
++template <typename Char>
++#if FMT_VERSION >= 90101
++using fmt_runtime_string = fmt::runtime_format_string<Char>;
++#else
++using fmt_runtime_string = fmt::basic_runtime<Char>;
++#endif
++
+ // clang doesn't like SFINAE disabled constructor in std::is_convertible<>
so have to repeat the condition from basic_format_string here,
+ // in addition, fmt::basic_runtime<Char> is only convertible to
basic_format_string<Char> but not basic_string_view<Char>
+ template<class T, class Char = char>
+ struct is_convertible_to_basic_format_string
+ : std::integral_constant<bool,
+- std::is_convertible<T, fmt::basic_string_view<Char>>::value ||
std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value>
++ std::is_convertible<T, fmt::basic_string_view<Char>>::value ||
std::is_same<remove_cvref_t<T>, fmt_runtime_string<Char>>::value>
+ {};
+
+ # if defined(SPDLOG_WCHAR_FILENAMES) ||
defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)



  • [SM-Commit] GIT changes to master grimoire by Conner Clere (3ddd8bc6cb48be2e773952b127a505dfe105d0f6), Conner Clere, 06/25/2023

Archive powered by MHonArc 2.6.24.

Top of Page