From c75626a840b049c50a500b3d29a54986ea2372da Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 10 May 2023 17:09:19 +0100 Subject: [PATCH] Revert "dev-libs/spdlog: fix fails compile with libfmt-10.0.0" This reverts commit 03d7b984817fbf07c4d830f30e34ae20a79af7b4. Bug: https://bugs.gentoo.org/906069 Bug: https://bugs.gentoo.org/906071 Signed-off-by: Sam James --- .../spdlog/files/spdlog-libfmt-10.0.0.patch | 30 ------------------- dev-libs/spdlog/spdlog-1.11.0.ebuild | 1 - 2 files changed, 31 deletions(-) delete mode 100644 dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch diff --git a/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch b/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch deleted file mode 100644 index 185fb12fb7272..0000000000000 --- a/dev-libs/spdlog/files/spdlog-libfmt-10.0.0.patch +++ /dev/null @@ -1,30 +0,0 @@ -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 - -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; - template - using remove_cvref_t = typename std::remove_cv::type>::type; - -+template -+#if FMT_VERSION >= 90101 -+using fmt_runtime_string = fmt::runtime_format_string; -+#else -+using fmt_runtime_string = fmt::basic_runtime; -+#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 is only convertible to basic_format_string but not basic_string_view - template - struct is_convertible_to_basic_format_string - : std::integral_constant>::value || std::is_same, fmt::basic_runtime>::value> -+ std::is_convertible>::value || std::is_same, fmt_runtime_string>::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 6759c44b79f8d..ebda7ae2f4a2a 100644 --- a/dev-libs/spdlog/spdlog-1.11.0.ebuild +++ b/dev-libs/spdlog/spdlog-1.11.0.ebuild @@ -31,7 +31,6 @@ RDEPEND="${DEPEND}" PATCHES=( "${FILESDIR}/${PN}-force_external_fmt.patch" - "${FILESDIR}/${PN}-libfmt-10.0.0.patch" ) src_prepare() {