head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.4 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.2 pkgsrc-2025Q4-base:1.1; locks; strict; comment @// @; 1.1 date 2025.12.07.00.17.25; author maya; state Exp; branches; next ; commitid YZTAovhvek4fqplG; desc @@ 1.1 log @fcitx5: Fix build failure with fmtlib > 12.0.0 (pkgsrc version: 12.1.0) Don't use optional code hunk that adds timestamps to logs for newer fmtlib. The recommended migration path is for std::localtime, but this seemed like a patch that I'm less likely to get wrong, as someone who is not experienced in C++. @ text @$NetBSD$ Avoid optional hunk of code that uses fmt::localtime, which was removed in fmtlib 12.0.0. This removes timestamps from logs. --- src/lib/fcitx-utils/log.cpp.orig 2025-12-07 00:04:14.180802233 +0000 +++ src/lib/fcitx-utils/log.cpp @@@@ -207,7 +207,7 @@@@ LogMessageBuilder::LogMessageBuilder(std break; } -#if FMT_VERSION >= 50300 +#if FMT_VERSION >= 50300 && FMT_VERSION < 120000 if (globalLogConfig.showTimeDate) { auto now = std::chrono::system_clock::now(); auto floor = std::chrono::floor(now); @