git: 5e07b13e80ef - main - net/arataga: fix fmt.dev formatting
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Aug 2025 19:03:26 UTC
The branch main has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5e07b13e80ef9ae7896ba2a149fe4653e79a02cd
commit 5e07b13e80ef9ae7896ba2a149fe4653e79a02cd
Author: Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-08-09 13:21:12 +0000
Commit: Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-08-10 19:02:45 +0000
net/arataga: fix fmt.dev formatting
for compatibility with upcoming fmt 11.2.0.
Also fixes "make test" which probably had been broken for a while.
PR: 286861
Reported by: diizzy@
Approved by: maintainer timeout (danfe@, 82 days)
---
.../patch-__tests__connection_handler_simulator__impl.cpp | 14 ++++++++++++++
net/arataga/files/patch-io__threads__count.hpp | 11 +++++++++++
2 files changed, 25 insertions(+)
diff --git a/net/arataga/files/patch-__tests__connection_handler_simulator__impl.cpp b/net/arataga/files/patch-__tests__connection_handler_simulator__impl.cpp
new file mode 100644
index 000000000000..e03b148c00d8
--- /dev/null
+++ b/net/arataga/files/patch-__tests__connection_handler_simulator__impl.cpp
@@ -0,0 +1,14 @@
+This patch reuses the formatter from patch-git-01-* to fix "make test"
+
+diff -up ../tests/connection_handler_simulator/impl.cpp.orig ../tests/connection_handler_simulator/impl.cpp
+--- ../tests/connection_handler_simulator/impl.cpp.orig 2022-07-13 07:09:45.000000000 +0200
++++ ../tests/connection_handler_simulator/impl.cpp 2025-08-09 15:17:18.509362000 +0200
+@@ -3,6 +3,8 @@
+ #include <arataga/acl_handler/connection_handler_ifaces.hpp>
+ #include <arataga/acl_handler/handler_factories.hpp>
+
++#include <arataga/utils/string_literal_fmt.hpp>
++
+ #include <so_5_extra/disp/asio_one_thread/pub.hpp>
+
+ #include <so_5_extra/sync/pub.hpp>
diff --git a/net/arataga/files/patch-io__threads__count.hpp b/net/arataga/files/patch-io__threads__count.hpp
new file mode 100644
index 000000000000..3e3727c21dc1
--- /dev/null
+++ b/net/arataga/files/patch-io__threads__count.hpp
@@ -0,0 +1,11 @@
+--- io_threads_count.hpp.orig 2022-07-13 05:09:45 UTC
++++ io_threads_count.hpp
+@@ -134,7 +134,7 @@ struct fmt::formatter< arataga::io_threads_count_t >
+ template< typename FormatContext >
+ auto format(
+ const arataga::io_threads_count_t & tc,
+- FormatContext & ctx )
++ FormatContext & ctx ) const
+ {
+ const auto str = arataga::to_string(tc);
+ return fmt::formatter< std::string >::format( str, ctx );