Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jul 2021 18:15:17 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fa3cd60121f6 - main - x11/waybar: Fix build with libfmt 8.0.0
Message-ID:  <202107211815.16LIFHGf045485@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fa3cd60121f67b7d15394eb616a123a827e50b46

commit fa3cd60121f67b7d15394eb616a123a827e50b46
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-07-21 17:59:55 +0000
Commit:     Po-Chuan Hsieh <sunpoet@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));
+   }
+ };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107211815.16LIFHGf045485>