1From 9f4330f94cc471d880df7d9089ee1105b27fd321 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sat, 6 Jan 2024 10:26:54 +0100 4Subject: [PATCH] uucore: add support for sparc64 5 6Add support for sparc64 in uucore to avoid the following build failure 7with nushell: 8 9error[E0308]: mismatched types 10 --> /home/autobuild/autobuild/instance-7/output-1/build/nushell-0.85.0/VENDOR/uucore/src/lib/features/fs.rs:121:16 11 | 12111 | pub fn number_of_links(&self) -> u64 { 13 | --- expected `u64` because of return type 14... 15121 | return self.0.st_nlink; 16 | ^^^^^^^^^^^^^^^ expected `u64`, found `u32` 17 | 18help: you can convert a `u32` to a `u64` 19 | 20121 | return self.0.st_nlink.into(); 21 | +++++++ 22 23For more information about this error, try `rustc --explain E0308`. 24error: could not compile `uucore` (lib) due to previous error 25 26Fixes: 27 - http://autobuild.buildroot.org/results/f9f0287a8e39c65895014ca513ed25071f020add 28 29Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 30Upstream: https://github.com/uutils/coreutils/commit/d158f1a396d19cc2aed68131b80ec3b7325d108e 31--- 32 src/uucore/src/lib/features/fs.rs | 2 ++ 33 1 file changed, 2 insertions(+) 34 35diff --git a/VENDOR/uucore/src/lib/features/fs.rs b/VENDOR/uucore/src/lib/features/fs.rs 36index 20cc9e13d..3b9170bc3 100644 37--- a/VENDOR/uucore/src/lib/features/fs.rs 38+++ b/VENDOR/uucore/src/lib/features/fs.rs 39@@ -121,6 +121,7 @@ impl FileInformation { 40 not(target_os = "solaris"), 41 not(target_arch = "aarch64"), 42 not(target_arch = "riscv64"), 43+ not(target_arch = "sparc64"), 44 target_pointer_width = "64" 45 ))] 46 return self.0.st_nlink; 47@@ -137,6 +138,7 @@ impl FileInformation { 48 target_os = "solaris", 49 target_arch = "aarch64", 50 target_arch = "riscv64", 51+ target_arch = "sparc64", 52 not(target_pointer_width = "64") 53 ) 54 ))] 55-- 562.43.0 57 58