git: d632f5cdfd9d - 2025Q3 - sysutils/bareos23-server: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Sep 2025 08:34:12 UTC
The branch 2025Q3 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d632f5cdfd9d16bab1a4437e4a23bfce641c7975
commit d632f5cdfd9d16bab1a4437e4a23bfce641c7975
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-09-18 21:51:24 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-09-19 08:33:22 +0000
sysutils/bareos23-server: fix build on armv7
Add some missing casts.
Approved by: portmgr (build fix blanket)
MFH: 2025Q3
(cherry picked from commit cf96806bf2048dbb353b091e9b1ac33373337ad1)
---
.../patch-core_src_stored_backends_dedupable_volume.cc | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/sysutils/bareos23-server/files/patch-core_src_stored_backends_dedupable_volume.cc b/sysutils/bareos23-server/files/patch-core_src_stored_backends_dedupable_volume.cc
new file mode 100644
index 000000000000..0462f219f117
--- /dev/null
+++ b/sysutils/bareos23-server/files/patch-core_src_stored_backends_dedupable_volume.cc
@@ -0,0 +1,13 @@
+--- core/src/stored/backends/dedupable/volume.cc.orig 2025-09-18 21:46:06 UTC
++++ core/src/stored/backends/dedupable/volume.cc
+@@ -228,8 +228,8 @@ data::data(open_context ctx, const config& conf)
+
+ raii_fd bfd = OpenRelative(ctx, bf.relpath.c_str());
+ raii_fd pfd = OpenRelative(ctx, pf.relpath.c_str());
+- blocks = decltype(blocks){ctx.read_only, bfd.fileno(), bf.End};
+- parts = decltype(parts){ctx.read_only, pfd.fileno(), pf.End};
++ blocks = decltype(blocks){ctx.read_only, bfd.fileno(), static_cast<size_t>(bf.End)};
++ parts = decltype(parts){ctx.read_only, pfd.fileno(), static_cast<size_t>(pf.End)};
+ fds.emplace_back(std::move(bfd));
+ fds.emplace_back(std::move(pfd));
+