George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / 
cargo-supply-chain


Commits:
b478de05 by Acid Xeon at 2025-02-10T08:51:56+00:00
Get target architecture for fetching sources more generically

>From https://wiki.archlinux.org/title/Rust_package_guidelines#Prepare

This allows other architectures to fetch sources with cargo without a patch.
- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -17,7 +17,7 @@ 
b2sums=('c196e9b8bd6882c6fa4360f27d623ff91275a0209612a1b74043a9869ead3e21557052d
 prepare() {
   cd "$pkgname-$pkgver"
 
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
 }
 
 build() {



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-supply-chain/-/commit/b478de0598a797c65b89cc0f3070aac8e4046660

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-supply-chain/-/commit/b478de0598a797c65b89cc0f3070aac8e4046660
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to