git: fa3cd60121f6 - main - x11/waybar: Fix build with libfmt 8.0.0
Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Jul 21 18:15:21 UTC 2021
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fa3cd60121f67b7d15394eb616a123a827e50b46
commit fa3cd60121f67b7d15394eb616a123a827e50b46
Author: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-07-21 17:59:55 +0000
Commit: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-07-21 18:12:13 +0000
x11/waybar: Fix build with libfmt 8.0.0
Obtained from: https://github.com/Alexays/Waybar/commit/1c2e0083ba5a80d0f22a14d2baa8df52024a7394
---
x11/waybar/files/patch-libfmt | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/x11/waybar/files/patch-libfmt b/x11/waybar/files/patch-libfmt
new file mode 100644
index 000000000000..f80a7cd6cf9a
--- /dev/null
+++ b/x11/waybar/files/patch-libfmt
@@ -0,0 +1,28 @@
+Obtained from: https://github.com/Alexays/Waybar/commit/1c2e0083ba5a80d0f22a14d2baa8df52024a7394
+
+--- include/util/format.hpp.orig 2021-04-15 19:17:54 UTC
++++ include/util/format.hpp
+@@ -35,7 +35,11 @@ namespace fmt {
+ // The rationale for ignoring it is that the only reason to specify
+ // an alignment and a with is to get a fixed width bar, and ">" is
+ // sufficient in this implementation.
++#if FMT_VERSION < 80000
+ width = parse_nonnegative_int(it, end, ctx);
++#else
++ width = detail::parse_nonnegative_int(it, end, -1);
++#endif
+ }
+ return it;
+ }
+--- src/modules/clock.cpp.orig 2021-04-15 19:17:54 UTC
++++ src/modules/clock.cpp
+@@ -196,6 +196,9 @@ template <>
+ struct fmt::formatter<waybar_time> : fmt::formatter<std::tm> {
+ template <typename FormatContext>
+ auto format(const waybar_time& t, FormatContext& ctx) {
++#if FMT_VERSION >= 80000
++ auto& tm_format = specs;
++#endif
+ return format_to(ctx.out(), "{}", date::format(t.locale, fmt::to_string(tm_format), t.ztime));
+ }
+ };
More information about the dev-commits-ports-all
mailing list