summaryrefslogtreecommitdiff
path: root/dev-libs/spdlog
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-10 17:43:52 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-10 17:43:52 +0100
commit560358ad7081e6bb2a4e097d4c442b0bab626163 (patch)
treea6b7139b78fc7e22cc555611541081774c1fc8eb /dev-libs/spdlog
parent1d412f04b6e137f20cbe616b3203d2cbc8dfd5ad (diff)
gentoo auto-resync : 10:05:2023 - 17:43:52
Diffstat (limited to 'dev-libs/spdlog')
-rw-r--r--dev-libs/spdlog/Manifest3
-rw-r--r--dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch40
-rw-r--r--dev-libs/spdlog/spdlog-1.11.0.ebuild1
3 files changed, 43 insertions, 1 deletions
diff --git a/dev-libs/spdlog/Manifest b/dev-libs/spdlog/Manifest
index 9a67c8ac2f14..49c89a060b7e 100644
--- a/dev-libs/spdlog/Manifest
+++ b/dev-libs/spdlog/Manifest
@@ -1,5 +1,6 @@
AUX spdlog-force_external_fmt.patch 539 BLAKE2B 326f40d3d496e7373a77476d5aba237d8ad7828e5d21ccfc1e4183a74e3f7f2df1f61a2188a5cf0dc4c08ef9692c5de4a4589fae75c1daa4a9987d4be3f168f6 SHA512 257c7f7f56e66b88a16238a2c81887f2d5ba9692c18bf5fc371b95f44936018ec7c4a0abd0e54f38cb6a7957f82a1b95af9d238fa7fa16631f0be1980d76f692
+AUX spdlog-libfmt-10.0.0.patch 1750 BLAKE2B 2369a5dc8f15a52d61387a0686acdaf8c6ccfa7150f9d237153c036a8e990ed037733358d51c3c4deb136689cd4da7a02aca3efc38abaffcb9a766ff0d95d6a9 SHA512 d713c753a62cd84fdffab96c897105ab5bebe7938f0cb782fcceb7e65758c740c3a4ae849d85617a293b62333cb1633e6f3d86fad939cc9e383de934e5251fd9
DIST spdlog-1.11.0.tar.gz 373033 BLAKE2B a05a535ba55641ecb3bf484eeff902f266bf3967cfbd619234ab0ca2d0c15bddb27b73ce43c33623d02fb046f621933cd52cf39f377f354182d9cdab33340f28 SHA512 210f3135c7af3ec774ef9a5c77254ce172a44e2fa720bf590e1c9214782bf5c8140ff683403a85b585868bc308286fbdeb1c988e4ed1eb3c75975254ffe75412
-EBUILD spdlog-1.11.0.ebuild 991 BLAKE2B 6538e5fb820081f85cc44d28302f66afed3c4e5b45a8ca3df6e7316bedd9f02330b874b5d01099c045a2a09f9253624d7459422006c4578641119c59aa25bd81 SHA512 a7605ada9603e60a2f476c00c3327c7a3aa62b53b3d4fed46ea226fa6dd6c569c94c7ddd0c71132d9d2b9f2c1e2ac4cb985bad8ec8a2b0ffa140b9e095370bf6
+EBUILD spdlog-1.11.0.ebuild 1032 BLAKE2B 52bbcf3ea9fa6e13b84dd6e3b5808823154920c48f0cce19476764cf518433f92f3966a95ca44269f8ba46bf955d040a3dfed25287655c35c7ab1dd7904b075a SHA512 f2fb35e66d4722f7c4feb73f70fbcf16112418c983366aed5ea251092646e814900c1a0708bac90a74c4dd00e8ad789710ba36bb24e9c49806c20a6183cfd5c6
EBUILD spdlog-9999.ebuild 997 BLAKE2B 63ee00aedfb9a4aa437a72ed2d41dc28e590cb50c76476733ef5ee895ed5e2fe0b16f3ec0dce562a05bdcd5f373df2f657735ad30890a1eb1a4cec5b86422dcc SHA512 2628758065ca9a8bc93ad99c4c0f930b6aa7bb44a75e80a40cd781597124ab81f3e38e24e327401adb2128e5d909c3f46c500f1578bb198f8b47c23a566efd74
MISC metadata.xml 475 BLAKE2B cd5f474d10b31fb435f603c876f20d7a13c892eb6b10b4f135855fcd3c2da9ee5d9679ccf384de61472f36df06af8f49ac19c302a27fd0112b07a7da2dba1504 SHA512 89ddbd67b6fd5a54f035d068d71eac904b677d2370f9e15842eb442bc7e4ec9f579df8db2090480c3673d558371c6d7ca3a8f7b36c316ac54d47e4baa018381c
diff --git a/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch b/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch
new file mode 100644
index 000000000000..03ef4e591048
--- /dev/null
+++ b/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch
@@ -0,0 +1,40 @@
+Bug: https://bugs.gentoo.org/906069
+Upstream: https://github.com/gabime/spdlog/pull/2694
+
+Fixing spdlog-1.11.0 fails compile with libfmt-10.0.0
+
+https://github.com/gabime/spdlog/commit/0ca574ae168820da0268b3ec7607ca7b33024d05
+
+From 0ca574ae168820da0268b3ec7607ca7b33024d05 Mon Sep 17 00:00:00 2001
+From: H1X4 <10332146+H1X4Dev@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
+--- 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)
diff --git a/dev-libs/spdlog/spdlog-1.11.0.ebuild b/dev-libs/spdlog/spdlog-1.11.0.ebuild
index ebda7ae2f4a2..6759c44b79f8 100644
--- a/dev-libs/spdlog/spdlog-1.11.0.ebuild
+++ b/dev-libs/spdlog/spdlog-1.11.0.ebuild
@@ -31,6 +31,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-force_external_fmt.patch"
+ "${FILESDIR}/${PN}-libfmt-10.0.0.patch"
)
src_prepare() {