[Pkg-rust-maintainers] Bug#1059268: rust-coreutils: add loongarch64 support

zhangdandan zhangdandan at loongson.cn
Fri Dec 22 10:01:25 GMT 2023


Source: rust-coreutils
Version: 0.0.23-2
Severity: wishlist
Tags: patch ftbfs
User: debian-loongarch at lists.debian.org
Usertags: loong64

Dear maintainers,

Compiling the rust-coreutils failed for loong64 in the my local loong64 
environment.
The error messages are as follows,
```
......
Compiling uu_stdbuf v0.0.23 
(/home/build/rust-coreutils-0.0.23/src/uu/stdbuf)
error[E0308]: mismatched types
    --> src/uucore/src/lib/features/fs.rs:124:16
     |
111 |     pub fn number_of_links(&self) -> u64 {
     |                                      --- expected `u64` because 
of return type
...
124 |         return self.0.st_nlink;
     |                ^^^^^^^^^^^^^^^ expected `u64`, found `u32`
     |
help: you can convert a `u32` to a `u64`
     |
124 |         return self.0.st_nlink.into();
     |                               +++++++

For more information about this error, try `rustc --explain E0308`.
error: could not compile `uucore` due to previous error
```

I have added loongarch64 support for rust-coreutils.
The rust-coreutils source package was compiled successfully on my local 
loong64 rootfs environment.
Please consider the patch I have attached.
Your opinions are welcome.

thanks,
Dandan Zhang

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rust-coreutils-add-loongarch64-support.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20231222/57d065d1/attachment.bin>


More information about the Pkg-rust-maintainers mailing list