Control: tags 1098921 + patch
Control: tags 1098921 + pending


Dear maintainer,

I've prepared an NMU for rust-uucore (versioned as 0.0.23-3.1) and
uploaded it.

Since the patch will be dropped in any case on next release, I didn't bother 
committing or doing anything on git,
since this NMU will be useless in any case
diff -Nru rust-uucore-0.0.23/debian/changelog rust-uucore-0.0.23/debian/changelog
--- rust-uucore-0.0.23/debian/changelog	2024-11-04 03:23:03.000000000 +0100
+++ rust-uucore-0.0.23/debian/changelog	2025-03-07 13:11:56.000000000 +0100
@@ -1,3 +1,12 @@
+rust-uucore (0.0.23-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ zhangdandan <zhangdan...@loongson.cn> ] 
+  * Cherry-pick upstream patch to add loongarch64 support (Closes: #1098921)
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org>  Fri, 07 Mar 2025 13:11:56 +0100
+
 rust-uucore (0.0.23-3) unstable; urgency=medium
 
   * Team upload.
diff -Nru rust-uucore-0.0.23/debian/patches/loong64.diff rust-uucore-0.0.23/debian/patches/loong64.diff
--- rust-uucore-0.0.23/debian/patches/loong64.diff	1970-01-01 01:00:00.000000000 +0100
+++ rust-uucore-0.0.23/debian/patches/loong64.diff	2025-03-07 13:11:52.000000000 +0100
@@ -0,0 +1,50 @@
+Origin: https://github.com/uutils/coreutils/commit/550f3b0c488451bbe9f930e0520d558f01e3c891
+From 550f3b0c488451bbe9f930e0520d558f01e3c891 Mon Sep 17 00:00:00 2001
+From: zoze0 <licardo...@gmail.com>
+Date: Fri, 24 Nov 2023 00:41:11 +0800
+Subject: [PATCH] uucore: add support for loongarch64 (#5574)
+
+* uucore: add support for loongarch64
+
+* add loongarch
+
+---------
+
+Co-authored-by: Sylvestre Ledru <sylves...@debian.org>
+---
+ .vscode/cspell.dictionaries/acronyms+names.wordlist.txt | 1 +
+ src/uucore/src/lib/features/fs.rs                       | 2 ++
+ 2 files changed, 3 insertions(+)
+
+#diff --git a/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt b/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt
+#index c004ea2f822..4a59ed094bd 100644
+#--- a/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt
+#+++ b/.vscode/cspell.dictionaries/acronyms+names.wordlist.txt
+#@@ -37,6 +37,7 @@ aarch
+# flac
+# impls
+# lzma
+#+loongarch
+# 
+# # * names
+# BusyBox
+diff --git a/src/lib/features/fs.rs b/src/lib/features/fs.rs
+index f8593dfede5..de4c0b08dbe 100644
+--- a/src/lib/features/fs.rs
++++ b/src/lib/features/fs.rs
+@@ -119,6 +119,7 @@ impl FileInformation {
+             not(target_os = "solaris"),
+             not(target_arch = "aarch64"),
+             not(target_arch = "riscv64"),
++            not(target_arch = "loongarch64"),
+             target_pointer_width = "64"
+         ))]
+         return self.0.st_nlink;
+@@ -133,6 +134,7 @@ impl FileInformation {
+                 target_os = "solaris",
+                 target_arch = "aarch64",
+                 target_arch = "riscv64",
++                target_arch = "loongarch64",
+                 not(target_pointer_width = "64")
+             )
+         ))]
diff -Nru rust-uucore-0.0.23/debian/patches/series rust-uucore-0.0.23/debian/patches/series
--- rust-uucore-0.0.23/debian/patches/series	2024-11-04 03:23:03.000000000 +0100
+++ rust-uucore-0.0.23/debian/patches/series	2025-03-07 13:10:47.000000000 +0100
@@ -9,3 +9,4 @@
 nix-0.28.diff
 fix-test-feature-requirements.diff
 nix-0.29.diff
+loong64.diff

Reply via email to