[Pkg-rust-maintainers] Bug#1088343: rust-libseccomp: Add support for loongarch64
zhangdandan
zhangdandan at loongson.cn
Wed Nov 27 08:10:08 GMT 2024
Source: rust-libseccomp
Version: 0.3.0-9
Severity: wishlist
Tags: patch FTBFS
User: debian-loongarch at lists.debian.org
Usertags: loong64
Dear maintainers,
Compiling the rust-libseccomp failed for loong64 in the Debian Package
Auto-Building environment.
I have added loongarch64 support for rust-libseccomp.
When I built rust-libseccomp, I found that rust-libseccomp depends
rust-libseccomp-sys(lacks loongarch64 support).
So, I have submitted bug and
patch(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088333) for
rust-libseccomp-sys and built rust-libseccomp-sys in local ENV.
Based on rust-libseccomp-sys(add loongarch64 support and then build
binary package), I added loongarch64 patch to rust-libseccomp.
The successfully build result of rust-libseccomp is as follows,
```
test test_scmparch_native ... ok
test test_set_api ... ok
test test_rule_add_load ... ok
test test_set_syscall_priority ... ok
test test_syscall_eq_i32 ... ok
test test_syscall_i32 ... ok
test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered
out; finished in 0.00s
librust-bitflags-1-dev:loong64 1.3.2-6 0
librust-libc-dev:loong64 0.2.161-1 0
librust-libseccomp-sys-dev:loong64 0.2.1-1+loong64 0
rustc 1.82.0+dfsg1-2 1
make[1]: Leaving directory
'/home/11.25/rust-libseccomp/again/rust-libseccomp-0.3.0'
......
dh_builddeb -O--buildsystem=cargo
dpkg-deb: building package 'librust-libseccomp-dev' in
'../librust-libseccomp-dev_0.3.0-9+loong64_loong64.deb'.
dpkg-genbuildinfo -O../rust-libseccomp_0.3.0-9+loong64_loong64.buildinfo
dpkg-genchanges -O../rust-libseccomp_0.3.0-9+loong64_loong64.changes
```
In summary, I have added loongarch64 support in rust-libseccomp 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.
Note that before building rust-libseccomp for loong64, should add
loongarch64 support for rust-libseccomp-sys(bug: 1088333) firstly.
thanks,
Dandan Zhang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rust-libseccomp-add-loongarch64-support.patch
Type: text/x-patch
Size: 10738 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20241127/efc10217/attachment.bin>
More information about the Pkg-rust-maintainers
mailing list