git: a1b4bec45db9 - main - cad/cura-engine: fix const-ness of custom formatter
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Aug 2025 19:03:25 UTC
The branch main has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a1b4bec45db91c813146c600408c6308873c93c9
commit a1b4bec45db91c813146c600408c6308873c93c9
Author: Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2025-08-09 12:21:40 +0000
Commit: Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2025-08-10 19:02:44 +0000
cad/cura-engine: fix const-ness of custom formatter
for compatibility with upcoming fmt 11.2.0
PR: 286859
Reported by: diizzy@
Approved by: maintainer timeout (db@, 82 days)
and fix dependencies while here.
Approved by: portmgr@ (blanket)
---
cad/cura-engine/Makefile | 4 +++-
.../files/patch-include_utils_format_filesystem__path.h | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/cad/cura-engine/Makefile b/cad/cura-engine/Makefile
index 71b7b15089fb..1754321f977a 100644
--- a/cad/cura-engine/Makefile
+++ b/cad/cura-engine/Makefile
@@ -15,7 +15,9 @@ BUILD_DEPENDS= ${LOCALBASE}/include/boost/uuid/uuid.hpp:devel/boost-libs \
${LOCALBASE}/include/fmt/format.h:devel/libfmt \
${LOCALBASE}/include/range/v3/range.hpp:devel/range-v3 \
${LOCALBASE}/include/rapidjson/rapidjson.h:devel/rapidjson
-LIB_DEPENDS= libArcus.so:net/libarcus \
+LIB_DEPENDS= libabsl_log_internal_message.so:devel/abseil \
+ libArcus.so:net/libarcus \
+ libfmt.so:devel/libfmt \
libpolyclipping.so:graphics/polyclipping \
libprotobuf.so:devel/protobuf \
libspdlog.so:devel/spdlog
diff --git a/cad/cura-engine/files/patch-include_utils_format_filesystem__path.h b/cad/cura-engine/files/patch-include_utils_format_filesystem__path.h
new file mode 100644
index 000000000000..430fcd516f0a
--- /dev/null
+++ b/cad/cura-engine/files/patch-include_utils_format_filesystem__path.h
@@ -0,0 +1,11 @@
+--- include/utils/format/filesystem_path.h.orig 2024-04-02 12:26:14 UTC
++++ include/utils/format/filesystem_path.h
+@@ -30,7 +30,7 @@ struct formatter<std::filesystem::path> : formatter<st
+ }
+
+ template<typename FormatContext>
+- auto format(const std::filesystem::path& path, FormatContext& ctx)
++ auto format(const std::filesystem::path& path, FormatContext& ctx) const
+ {
+ return formatter<string_view>::format(anonymizePath(path.generic_string()), ctx);
+ }