[Pkg-rust-maintainers] Bug#1088333: rust-libseccomp-sys: Add support for loongarch64
zhangdandan
zhangdandan at loongson.cn
Wed Nov 27 07:31:09 GMT 2024
Source: rust-libseccomp-sys
Version: 0.2.1-1
Severity: wishlist
Tags: patch FTBFS
User: debian-loongarch at lists.debian.org
Usertags: loong64
Dear maintainers,
When I added loongarch64 support for rust-libseccomp and built locally,
I found rust-libseccomp-sys source package lacks LoongArch architecture
support.
The error log can be found as follows,
```
error[E0425]: cannot find value `SCMP_ARCH_LOONGARCH64` in this scope
--> src/arch.rs:67:34
|
67 | Self::Loongarch64 => SCMP_ARCH_LOONGARCH64,
| ^^^^^^^^^^^^^^^^^^^^^ help: a
constant with a similar name exists: `SCMP_ARCH_AARCH64`
|
::: /usr/share/cargo/registry/libseccomp-sys-0.2.1/src/lib.rs:211:1
|
211 | pub const SCMP_ARCH_AARCH64: u32 = 0xc00000b7;
| -------------------------------- similarly named constant
`SCMP_ARCH_AARCH64` defined here
```
We can check that
/usr/share/cargo/registry/libseccomp-sys-0.2.1/src/lib.rs is provided by
librust-libseccomp-sys-dev.
# dpkg -S /usr/share/cargo/registry/libseccomp-sys-0.2.1/src/lib.rs
librust-libseccomp-sys-dev:loong64:
/usr/share/cargo/registry/libseccomp-sys-0.2.1/src/lib.rs
I have added loongarch64 support in rust-libseccomp-sys source package.
And built successfully on my local ENV.
Please consider the patch I attached.
If you have any questions, you can contact me at any time.
thanks,
Dandan Zhang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rust-libseccomp-sys-add-loongarch64-support.patch
Type: text/x-patch
Size: 1306 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20241127/6060a91a/attachment-0001.bin>
More information about the Pkg-rust-maintainers
mailing list