Source: rust-utmp-classic-raw
Version: 0.1.3-1
Severity: normal
Tags: patch
User: debian-loonga...@lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the rust-utmp-classic-raw failed for loong64 in the Debian
Package Auto-Building environment.
The error log is as follows,
```
error: The target platform is not supported, please help us add it.
--> src/lib.rs:67:9
|
67 | compile_error!("The target platform is not supported,
please help us add it.");
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
......
```
The full build log can be found at
https://buildd.debian.org/status/fetch.php?pkg=rust-utmp-classic-raw&arch=loong64&ver=0.1.3-1%2Bb1&stamp=1740507047&raw=0.
Please consider the patch I attached.
Based on the attached patch, rust-utmp-classic-raw (0.1.3-1+loong64) was
built successfully on local ENV.
```
......
dh_builddeb -O--buildsystem=cargo
dpkg-deb: building package 'librust-utmp-classic-raw-dev' in
'../librust-utmp-classic-raw-dev_0.1.3-1+loong64_loong64.deb'.
dpkg-genbuildinfo
-O../rust-utmp-classic-raw_0.1.3-1+loong64_loong64.buildinfo
dpkg-genchanges -O../rust-utmp-classic-raw_0.1.3-1+loong64_loong64.changes
```
Your opinions are welcome.
Best regards,
Dandan Zhang
Description: Add loongarch64 support
.
rust-utmp-classic-raw (0.1.3-1+loong64) unstable; urgency=medium
.
* Add loongarch64 support
Author: Dandan Zhang <zhangdan...@loongson.cn>
---
Last-Update: 2025-02-26
--- rust-utmp-classic-raw-0.1.3.orig/src/lib.rs
+++ rust-utmp-classic-raw-0.1.3/src/lib.rs
@@ -57,6 +57,7 @@ cfg_if! {
target_arch = "sparc",
target_arch = "sparc64",
target_arch = "aarch64",
+ target_arch = "loongarch64",
))] {
pub use x32::*;
} else if #[cfg(any(