From d8b21bb3cfd6d1273a2ec6f65a430c166c830f37 Mon Sep 17 00:00:00 2001 From: Tobias Kortkamp Date: Wed, 6 Feb 2019 10:41:52 +0000 Subject: [PATCH] sysutils/fusefs-sandboxfs: Add missing patch to unbreak build on i386 --- .../files/patch-src_nodes_conv.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sysutils/fusefs-sandboxfs/files/patch-src_nodes_conv.rs diff --git a/sysutils/fusefs-sandboxfs/files/patch-src_nodes_conv.rs b/sysutils/fusefs-sandboxfs/files/patch-src_nodes_conv.rs new file mode 100644 index 000000000000..716b04562db5 --- /dev/null +++ b/sysutils/fusefs-sandboxfs/files/patch-src_nodes_conv.rs @@ -0,0 +1,19 @@ +Unbreak on i386 + +error[E0308]: mismatched types + --> src/nodes/conv.rs:72:19 + | +72 | Timespec::new(val.tv_sec() as sys::time::time_t, usec) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i64, found i32 + +--- src/nodes/conv.rs.orig 2019-02-06 10:25:59 UTC ++++ src/nodes/conv.rs +@@ -69,7 +69,7 @@ pub fn timeval_to_timespec(val: sys::time::TimeVal) -> + } else { + val.tv_usec() as i32 + }; +- Timespec::new(val.tv_sec() as sys::time::time_t, usec) ++ Timespec::new((val.tv_sec() as sys::time::time_t).into(), usec) + } + + /// Converts a file type as returned by the file system to a FUSE file type.