From: zhongyao <chen.zhongyao@zte.com.cn>
Date: Tue, 9 Sep 2025 07:51:34 +0800
Subject: Add support for riscv64a23-unknown-linux-gnu target triple
Origin: upstream, https://github.com/bytecodealliance/target-lexicon/commit/8c68f3e43bc2caf29c97442687673186e26e0f37.patch
Applied-Upstream: v0.13.3
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/rpds-py/+bug/2147337

Debian's riscv64 port uses the target triple riscv64a23-unknown-linux-gnu,
which the build script in target-lexicon 0.13.2 does not recognise, causing the
build to fail with "Invalid target name"

--- a/vendor/target-lexicon/src/targets.rs
+++ b/vendor/target-lexicon/src/targets.rs
@@ -448,6 +448,7 @@
     Riscv64,
     Riscv64gc,
     Riscv64imac,
+    Riscv64a23,
 }
 
 impl Riscv64Architecture {
@@ -459,6 +460,7 @@
             Riscv64 => Cow::Borrowed("riscv64"),
             Riscv64gc => Cow::Borrowed("riscv64gc"),
             Riscv64imac => Cow::Borrowed("riscv64imac"),
+            Riscv64a23 => Cow::Borrowed("riscv64a23"),
         }
     }
 }
@@ -1250,6 +1252,7 @@
             "riscv64" => Riscv64,
             "riscv64gc" => Riscv64gc,
             "riscv64imac" => Riscv64imac,
+            "riscv64a23" => Riscv64a23,
             _ => return Err(()),
         })
     }
@@ -1842,6 +1845,7 @@
             "riscv64gc-unknown-fuchsia",
             "riscv64gc-unknown-hermit",
             "riscv64gc-unknown-linux-gnu",
+            "riscv64a23-unknown-linux-gnu",
             "riscv64gc-unknown-linux-musl",
             "riscv64gc-unknown-netbsd",
             "riscv64gc-unknown-none-elf",
