From 8758a4068561fcfd3cbd4ddb52b0c2f60b7217eb Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 14 Jan 2025 15:36:34 +0100 Subject: [PATCH] spdlog, bump version (#11648) --- .../spdlog/patches/spdlog-1.15.0.patchset | 31 +++++++++++++++++++ ...log-1.12.0.recipe => spdlog-1.15.0.recipe} | 10 +++--- 2 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 dev-libs/spdlog/patches/spdlog-1.15.0.patchset rename dev-libs/spdlog/{spdlog-1.12.0.recipe => spdlog-1.15.0.recipe} (89%) diff --git a/dev-libs/spdlog/patches/spdlog-1.15.0.patchset b/dev-libs/spdlog/patches/spdlog-1.15.0.patchset new file mode 100644 index 000000000..15b6590a4 --- /dev/null +++ b/dev-libs/spdlog/patches/spdlog-1.15.0.patchset @@ -0,0 +1,31 @@ +From 5a28aa089b689dd726e9baf05b5b4fd4c257a90e Mon Sep 17 00:00:00 2001 +From: Shengqi Chen +Date: Fri, 10 Jan 2025 13:47:17 +0100 +Subject: applying Debian patch fix-fmtlib-11-1.patch + +Bug: https://github.com/gabime/spdlog/pull/3301 +Bug: https://github.com/gabime/spdlog/pull/3314 + +https://sources.debian.org/data/main/s/spdlog/1%3A1.15.0%2Bds-2/debian/patches/fix-fmtlib-11-1.patch + +diff --git a/include/spdlog/common.h b/include/spdlog/common.h +index aca483c..71ffd24 100644 +--- a/include/spdlog/common.h ++++ b/include/spdlog/common.h +@@ -364,12 +364,7 @@ SPDLOG_CONSTEXPR_FUNC spdlog::wstring_view_t to_string_view(spdlog::wstring_view + } + #endif + +-#ifndef SPDLOG_USE_STD_FORMAT +-template +-inline fmt::basic_string_view to_string_view(fmt::basic_format_string fmt) { +- return fmt; +-} +-#elif __cpp_lib_format >= 202207L ++#if defined(SPDLOG_USE_STD_FORMAT) && __cpp_lib_format >= 202207L + template + SPDLOG_CONSTEXPR_FUNC std::basic_string_view to_string_view( + std::basic_format_string fmt) SPDLOG_NOEXCEPT { +-- +2.45.2 + diff --git a/dev-libs/spdlog/spdlog-1.12.0.recipe b/dev-libs/spdlog/spdlog-1.15.0.recipe similarity index 89% rename from dev-libs/spdlog/spdlog-1.12.0.recipe rename to dev-libs/spdlog/spdlog-1.15.0.recipe index e16bacb51..624927ceb 100644 --- a/dev-libs/spdlog/spdlog-1.12.0.recipe +++ b/dev-libs/spdlog/spdlog-1.15.0.recipe @@ -21,12 +21,10 @@ Features: COPYRIGHT="Gabi Melman" HOMEPAGE="https://github.com/gabime/spdlog" LICENSE="MIT" -REVISION="4" +REVISION="1" SOURCE_URI="https://github.com/gabime/spdlog/archive/v$portVersion.tar.gz" -CHECKSUM_SHA256="4dccf2d10f410c1e2feaff89966bfc49a1abb29ef6f08246335b110e001e09a9" -# Import patches from openSUSE -#PATCHES="spdlog-1.8.5-fmt8_tests.patch -# spdlog-1.8.5-fmt8.patch" +CHECKSUM_SHA256="9962648c9b4f1a7bbc76fd8d9172555bad1871fdb14ff4f842ef87949682caa5" +PATCHES="spdlog-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" @@ -54,7 +52,7 @@ REQUIRES_devel=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel - devel:libfmt$secondaryArchSuffix >= 8 + devel:libfmt$secondaryArchSuffix >= 11 " BUILD_PREREQUIRES=" cmd:cmake