[Pkg-rust-maintainers] Bug#1068620: rust-nix: please add support for loong64

wuruilong wuruilong at loongson.cn
Mon Apr 8 07:33:11 BST 2024


Source: rust-nix
Severity: normal
Tags: patch
User: debian-loongarch at lists.debian.org
Usertags: loong64
X-Debbugs-Cc: wuruilong at loongson.cn

Dear Maintainer,

The rust-nix package compiles incorrectly on the loong64 architecture, 
the attached patch solves this problem and has been verified to compile successfully

wuruilong

-- System Information:
Debian Release: trixie/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: loong64 (loongarch64)

Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
-------------- next part --------------
Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 rust-nix (0.26.2-1) unstable; urgency=medium
 .
   * Team upload.
   * Package nix 0.26.2 from crates.io using debcargo 2.6.0
   * Skip test_recvmm2 on s390x, it seems to be flaky there.
   * Skip a couple of tests that seem prone to hangs in my local testing.
Author: Peter Michael Green <plugwash at debian.org>

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: https://github.com/nix-rust/nix/pull/2045
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Signed-Off-By: heiher
Last-Update: 2024-04-08

--- rust-nix-0.26.2.orig/src/sys/ioctl/linux.rs
+++ rust-nix-0.26.2/src/sys/ioctl/linux.rs
@@ -42,7 +42,8 @@ mod consts {
     target_arch = "x86_64",
     target_arch = "aarch64",
     target_arch = "riscv32",
-    target_arch = "riscv64"
+    target_arch = "riscv64",
+    target_arch = "loongarch64"
 ))]
 mod consts {
     #[doc(hidden)]


More information about the Pkg-rust-maintainers mailing list