From 391a6742446f8a54ac2b78a098eaf4afb321eb90 Mon Sep 17 00:00:00 2001 From: Maksim Bondarenkov <119937608+ognevny@users.noreply.github.com> Date: Sun, 9 Nov 2025 21:39:26 +0300 Subject: [PATCH] use $RUST_CHOST for cargo fetch (#26316) --- mingw-w64-PKGBUILD-templates/PKGBUILD.cargo-tarball.sh | 2 +- mingw-w64-aichat/PKGBUILD | 2 +- mingw-w64-alacritty/PKGBUILD | 2 +- mingw-w64-asm-lsp/PKGBUILD | 2 +- mingw-w64-bat/PKGBUILD | 2 +- mingw-w64-blake3/PKGBUILD | 2 +- mingw-w64-cargo-about/PKGBUILD | 2 +- mingw-w64-cargo-c/PKGBUILD | 2 +- mingw-w64-cargo-component/PKGBUILD | 2 +- mingw-w64-cargo-create-tauri-app/PKGBUILD | 2 +- mingw-w64-cargo-edit/PKGBUILD | 2 +- mingw-w64-cargo-generate/PKGBUILD | 2 +- mingw-w64-cargo-leptos/PKGBUILD | 2 +- mingw-w64-cargo-local-registry/PKGBUILD | 2 +- mingw-w64-cargo-msrv/PKGBUILD | 2 +- mingw-w64-cargo-tauri/PKGBUILD | 2 +- mingw-w64-cbindgen/PKGBUILD | 2 +- mingw-w64-cotp/PKGBUILD | 2 +- mingw-w64-czkawka/PKGBUILD | 2 +- mingw-w64-dust/PKGBUILD | 2 +- mingw-w64-edit/PKGBUILD | 2 +- mingw-w64-evcxr/PKGBUILD | 2 +- mingw-w64-eza/PKGBUILD | 2 +- mingw-w64-fd/PKGBUILD | 2 +- mingw-w64-gitoxide/PKGBUILD | 2 +- mingw-w64-gitui/PKGBUILD | 2 +- mingw-w64-hayagriva/PKGBUILD | 2 +- mingw-w64-helix/PKGBUILD | 2 +- mingw-w64-hexyl/PKGBUILD | 2 +- mingw-w64-hyperfine/PKGBUILD | 2 +- mingw-w64-jj/PKGBUILD | 2 +- mingw-w64-just/PKGBUILD | 2 +- mingw-w64-leptosfmt/PKGBUILD | 2 +- mingw-w64-lsd/PKGBUILD | 2 +- mingw-w64-maturin/PKGBUILD | 2 +- mingw-w64-mdbook-admonish/PKGBUILD | 2 +- mingw-w64-mdbook-pikchr/PKGBUILD | 2 +- mingw-w64-mdbook/PKGBUILD | 2 +- mingw-w64-mdcat/PKGBUILD | 2 +- mingw-w64-minidump-stackwalk/PKGBUILD | 2 +- mingw-w64-neocmakelsp/PKGBUILD | 2 +- mingw-w64-onefetch/PKGBUILD | 2 +- mingw-w64-paper-terminal/PKGBUILD | 2 +- mingw-w64-powersession-rs/PKGBUILD | 2 +- mingw-w64-procs/PKGBUILD | 2 +- mingw-w64-python-pywinpty/PKGBUILD | 2 +- mingw-w64-python-rpds-py/PKGBUILD | 2 +- mingw-w64-repgrep/PKGBUILD | 2 +- mingw-w64-rio/PKGBUILD | 2 +- mingw-w64-ripgrep-all/PKGBUILD | 2 +- mingw-w64-ripgrep/PKGBUILD | 2 +- mingw-w64-rust-analyzer/PKGBUILD | 2 +- mingw-w64-rust-bindgen/PKGBUILD | 2 +- mingw-w64-rustlings/PKGBUILD | 2 +- mingw-w64-rustscan/PKGBUILD | 2 +- mingw-w64-rustup/PKGBUILD | 2 +- mingw-w64-sad/PKGBUILD | 2 +- mingw-w64-samply/PKGBUILD | 2 +- mingw-w64-sd/PKGBUILD | 2 +- mingw-w64-starship/PKGBUILD | 2 +- mingw-w64-stork/PKGBUILD | 2 +- mingw-w64-svg2pdf/PKGBUILD | 2 +- mingw-w64-tree-sitter/PKGBUILD | 2 +- mingw-w64-trunk/PKGBUILD | 2 +- mingw-w64-turbo/PKGBUILD | 2 +- mingw-w64-typst-lsp/PKGBUILD | 2 +- mingw-w64-typst/PKGBUILD | 2 +- mingw-w64-typstudio/PKGBUILD | 2 +- mingw-w64-uutils-coreutils/PKGBUILD | 2 +- mingw-w64-vivid/PKGBUILD | 2 +- mingw-w64-wac/PKGBUILD | 2 +- mingw-w64-wasm-bindgen/PKGBUILD | 2 +- mingw-w64-wasm-component-ld/PKGBUILD | 2 +- mingw-w64-wasm-pack/PKGBUILD | 2 +- mingw-w64-wasm-server-runner/PKGBUILD | 2 +- mingw-w64-wasmer/PKGBUILD | 2 +- mingw-w64-wasmtime/PKGBUILD | 4 ++-- mingw-w64-watchexec/PKGBUILD | 2 +- mingw-w64-wezterm/PKGBUILD | 2 +- mingw-w64-yazi/PKGBUILD | 2 +- mingw-w64-zed/PKGBUILD | 2 +- mingw-w64-zizmor/PKGBUILD | 2 +- mingw-w64-zola/PKGBUILD | 2 +- mingw-w64-zoxide/PKGBUILD | 2 +- 84 files changed, 85 insertions(+), 85 deletions(-) diff --git a/mingw-w64-PKGBUILD-templates/PKGBUILD.cargo-tarball.sh b/mingw-w64-PKGBUILD-templates/PKGBUILD.cargo-tarball.sh index 7b3481e35b..d652943fc7 100644 --- a/mingw-w64-PKGBUILD-templates/PKGBUILD.cargo-tarball.sh +++ b/mingw-w64-PKGBUILD-templates/PKGBUILD.cargo-tarball.sh @@ -25,7 +25,7 @@ prepare() { patch -Np1 -i "${srcdir}"/0002-A-less-important-fix.patch # if cargo wants to make an http request at build stage, use `cargo fetch --locked` instead - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-aichat/PKGBUILD b/mingw-w64-aichat/PKGBUILD index c10743954b..397cb15d0c 100644 --- a/mingw-w64-aichat/PKGBUILD +++ b/mingw-w64-aichat/PKGBUILD @@ -20,7 +20,7 @@ sha256sums=('e194cc89afc213a6e3169738221cae641c347421c4f2aacd5d6f4f7cc6edb387') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-alacritty/PKGBUILD b/mingw-w64-alacritty/PKGBUILD index eaeaa519f4..2c87fb5f2d 100644 --- a/mingw-w64-alacritty/PKGBUILD +++ b/mingw-w64-alacritty/PKGBUILD @@ -29,7 +29,7 @@ sha256sums=('e339261179f7edcaf9c28b1646d5a6761e76eae62078f07c308e8efa9ace18bb') prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-asm-lsp/PKGBUILD b/mingw-w64-asm-lsp/PKGBUILD index 6fea9cca23..da368d852d 100644 --- a/mingw-w64-asm-lsp/PKGBUILD +++ b/mingw-w64-asm-lsp/PKGBUILD @@ -35,7 +35,7 @@ zstd-sys = { path = "../zstd-sys-2.0.13+zstd.1.5.6" } END cargo update -p zstd-sys - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-bat/PKGBUILD b/mingw-w64-bat/PKGBUILD index 4044d49b5d..edae990155 100644 --- a/mingw-w64-bat/PKGBUILD +++ b/mingw-w64-bat/PKGBUILD @@ -33,7 +33,7 @@ sha256sums=('eb5addff1d189100ed411c7c43ce4f414935fd6985a39f6344e6866102d4dd29') prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-blake3/PKGBUILD b/mingw-w64-blake3/PKGBUILD index ebffc8fe84..7a1d970939 100644 --- a/mingw-w64-blake3/PKGBUILD +++ b/mingw-w64-blake3/PKGBUILD @@ -31,7 +31,7 @@ prepare() { cargo fetch \ --locked \ --manifest-path="${_realname}-${pkgver}"/b3sum/Cargo.toml \ - --target "$(rustc --print host-tuple)" + --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-about/PKGBUILD b/mingw-w64-cargo-about/PKGBUILD index ec6163ebad..9290f0e126 100644 --- a/mingw-w64-cargo-about/PKGBUILD +++ b/mingw-w64-cargo-about/PKGBUILD @@ -33,7 +33,7 @@ zstd-sys = { path = "../zstd-sys-2.0.16+zstd.1.5.7" } END cargo update -p zstd-sys - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-c/PKGBUILD b/mingw-w64-cargo-c/PKGBUILD index 10030f81b6..17b80cf8fa 100644 --- a/mingw-w64-cargo-c/PKGBUILD +++ b/mingw-w64-cargo-c/PKGBUILD @@ -32,7 +32,7 @@ prepare() { cp "${_realname}-${pkgver}.Cargo.lock" "${_realname}-${pkgver}/Cargo.lock" cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } _env() { diff --git a/mingw-w64-cargo-component/PKGBUILD b/mingw-w64-cargo-component/PKGBUILD index 3c538ea303..b6719eeb25 100644 --- a/mingw-w64-cargo-component/PKGBUILD +++ b/mingw-w64-cargo-component/PKGBUILD @@ -22,7 +22,7 @@ sha256sums=('04ded8443b34687641d0bf01fa682ce46c1a9300af3f13ea5cf1bf5487d6f8b1') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-create-tauri-app/PKGBUILD b/mingw-w64-cargo-create-tauri-app/PKGBUILD index 1646164f4e..f703bda965 100644 --- a/mingw-w64-cargo-create-tauri-app/PKGBUILD +++ b/mingw-w64-cargo-create-tauri-app/PKGBUILD @@ -21,7 +21,7 @@ sha256sums=('4276d826717c6ec763c92f90e93609bf9e080a24812d0c958334e5f45a4e81e3') prepare() { cd "${srcdir}/${_basename}-${_basename}-v${pkgver}" - "${MINGW_PREFIX}/bin/cargo.exe" fetch --locked --target "$(rustc --print host-tuple)" + "${MINGW_PREFIX}/bin/cargo.exe" fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-edit/PKGBUILD b/mingw-w64-cargo-edit/PKGBUILD index 5ace4d1c3d..0750dde43e 100644 --- a/mingw-w64-cargo-edit/PKGBUILD +++ b/mingw-w64-cargo-edit/PKGBUILD @@ -22,7 +22,7 @@ sha256sums=('f242010b4b0b8ccd245693858d26a35f70bef572a209f4977d192c1215e861c6') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-generate/PKGBUILD b/mingw-w64-cargo-generate/PKGBUILD index ebff98f700..414617a3d2 100644 --- a/mingw-w64-cargo-generate/PKGBUILD +++ b/mingw-w64-cargo-generate/PKGBUILD @@ -31,7 +31,7 @@ prepare() { # bump git2 crate cargo upgrade -p git2@0.20.0 - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-leptos/PKGBUILD b/mingw-w64-cargo-leptos/PKGBUILD index d2a51bf13e..92c9886b74 100644 --- a/mingw-w64-cargo-leptos/PKGBUILD +++ b/mingw-w64-cargo-leptos/PKGBUILD @@ -29,7 +29,7 @@ sha256sums=('ada691f4c0ae5a37994c8b2815791807287f36ff010d20889029b517c734431e') prepare() { cd "${srcdir}/${_realname}-${pkgver}" - "${MINGW_PREFIX}/bin/cargo.exe" fetch --target "$(rustc --print host-tuple)" + "${MINGW_PREFIX}/bin/cargo.exe" fetch --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-local-registry/PKGBUILD b/mingw-w64-cargo-local-registry/PKGBUILD index c978c2abaf..60412e45cf 100644 --- a/mingw-w64-cargo-local-registry/PKGBUILD +++ b/mingw-w64-cargo-local-registry/PKGBUILD @@ -32,7 +32,7 @@ prepare() { export LIBSSH2_SYS_USE_PKG_CONFIG=1 cargo update -p cc - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-msrv/PKGBUILD b/mingw-w64-cargo-msrv/PKGBUILD index f0722279ed..a1679dd6f9 100644 --- a/mingw-w64-cargo-msrv/PKGBUILD +++ b/mingw-w64-cargo-msrv/PKGBUILD @@ -25,7 +25,7 @@ prepare() { # have to specify target otherwise MSVC tooclhain is used export RUSTUP_TOOLCHAIN=stable-${RUST_CHOST} cargo update -p aws-lc-rs --precise 1.13.1 - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cargo-tauri/PKGBUILD b/mingw-w64-cargo-tauri/PKGBUILD index 0ba7534b47..fda8663c56 100644 --- a/mingw-w64-cargo-tauri/PKGBUILD +++ b/mingw-w64-cargo-tauri/PKGBUILD @@ -33,7 +33,7 @@ prepare() { "${MINGW_PREFIX}/bin/cargo.exe" fetch \ --locked \ --config='net.git-fetch-with-cli=true' \ - --target "$(rustc --print host-tuple)" + --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cbindgen/PKGBUILD b/mingw-w64-cbindgen/PKGBUILD index a762e71bc0..aa9fe4ada9 100644 --- a/mingw-w64-cbindgen/PKGBUILD +++ b/mingw-w64-cbindgen/PKGBUILD @@ -27,7 +27,7 @@ prepare() { cd "${_realname}-${pkgver}" rm rust-toolchain.toml - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-cotp/PKGBUILD b/mingw-w64-cotp/PKGBUILD index 2be51657ed..9bd924dd8c 100644 --- a/mingw-w64-cotp/PKGBUILD +++ b/mingw-w64-cotp/PKGBUILD @@ -24,7 +24,7 @@ sha256sums=('6234805a8eb20a71d2acb07ad8d7827bd5c98c653b7eb733bab0f90cbb9f6212') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-czkawka/PKGBUILD b/mingw-w64-czkawka/PKGBUILD index d20370353c..47c325a95b 100644 --- a/mingw-w64-czkawka/PKGBUILD +++ b/mingw-w64-czkawka/PKGBUILD @@ -33,7 +33,7 @@ prepare() { # like upstream does for release binaries sed -i 's|#lto|lto|;s|#codegen-units|codegen-units|' Cargo.toml - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-dust/PKGBUILD b/mingw-w64-dust/PKGBUILD index 2e4ff2450f..36498bf88e 100644 --- a/mingw-w64-dust/PKGBUILD +++ b/mingw-w64-dust/PKGBUILD @@ -34,7 +34,7 @@ ntapi = { path = "../ntapi-0.4.1" } END cargo update -p ntapi - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-edit/PKGBUILD b/mingw-w64-edit/PKGBUILD index 3390d31b65..1cf2a8ca05 100644 --- a/mingw-w64-edit/PKGBUILD +++ b/mingw-w64-edit/PKGBUILD @@ -23,7 +23,7 @@ prepare() { patch -p1 -i ../67c401648fbd51de503d99ce4fca27774638f254.patch export RUSTUP_TOOLCHAIN=nightly-${RUST_CHOST} - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-evcxr/PKGBUILD b/mingw-w64-evcxr/PKGBUILD index f14ddba989..55aa7177de 100644 --- a/mingw-w64-evcxr/PKGBUILD +++ b/mingw-w64-evcxr/PKGBUILD @@ -19,7 +19,7 @@ sha256sums=('904b397ac402d71d32587971477529acf6226ea1ae8c08c4558c2f670793fbda') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-eza/PKGBUILD b/mingw-w64-eza/PKGBUILD index 495b5a06d9..863d3f7c0f 100644 --- a/mingw-w64-eza/PKGBUILD +++ b/mingw-w64-eza/PKGBUILD @@ -37,7 +37,7 @@ prepare() { cd "${_realname}" rm rust-toolchain.toml - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-fd/PKGBUILD b/mingw-w64-fd/PKGBUILD index 71af8c3456..075cccd1e4 100644 --- a/mingw-w64-fd/PKGBUILD +++ b/mingw-w64-fd/PKGBUILD @@ -22,7 +22,7 @@ sha512sums=('fa7d03cbc4abab02db8ed5cc7f3cb91ba87a6b4a609186edb40db80420a31a7ef67 prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-gitoxide/PKGBUILD b/mingw-w64-gitoxide/PKGBUILD index eb0c6943ea..eee7128c4b 100644 --- a/mingw-w64-gitoxide/PKGBUILD +++ b/mingw-w64-gitoxide/PKGBUILD @@ -21,7 +21,7 @@ sha256sums=('72c9c16dd8d173df0f8b32a06bf228fb0219d5d08bbccc7815926cd0765a7962') prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-gitui/PKGBUILD b/mingw-w64-gitui/PKGBUILD index db002878ce..f2e2d2d0de 100644 --- a/mingw-w64-gitui/PKGBUILD +++ b/mingw-w64-gitui/PKGBUILD @@ -37,7 +37,7 @@ _env() { prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-hayagriva/PKGBUILD b/mingw-w64-hayagriva/PKGBUILD index 4d465e4503..564be9f958 100644 --- a/mingw-w64-hayagriva/PKGBUILD +++ b/mingw-w64-hayagriva/PKGBUILD @@ -26,7 +26,7 @@ prepare() { # lockfile is not generated upstream, regenerate it manually after update cp ../Cargo.lock . - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-helix/PKGBUILD b/mingw-w64-helix/PKGBUILD index 35fb33f588..15f6840803 100644 --- a/mingw-w64-helix/PKGBUILD +++ b/mingw-w64-helix/PKGBUILD @@ -42,7 +42,7 @@ prepare() { patch -Np1 -i ../fix-runtime-dir.patch rm rust-toolchain.toml - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-hexyl/PKGBUILD b/mingw-w64-hexyl/PKGBUILD index 1f36ae39de..ecadf35ed2 100644 --- a/mingw-w64-hexyl/PKGBUILD +++ b/mingw-w64-hexyl/PKGBUILD @@ -22,7 +22,7 @@ sha256sums=('52853b4edede889b40fd6ff132e1354d957d1f26ee0c26ebdea380f8ce82cb0b') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-hyperfine/PKGBUILD b/mingw-w64-hyperfine/PKGBUILD index efd4faa1a8..9d9e8e4a4f 100644 --- a/mingw-w64-hyperfine/PKGBUILD +++ b/mingw-w64-hyperfine/PKGBUILD @@ -21,7 +21,7 @@ sha256sums=('d1c782a54b9ebcdc1dedf8356a25ee11e11099a664a7d9413fdd3742138fa140') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-jj/PKGBUILD b/mingw-w64-jj/PKGBUILD index 1439e9ea92..4eaac140f4 100644 --- a/mingw-w64-jj/PKGBUILD +++ b/mingw-w64-jj/PKGBUILD @@ -28,7 +28,7 @@ sha256sums=('e999581def6607ac444c146dc91a9ce1fb24c1c6fe2b1fac8b689ecd447b6a29') prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-just/PKGBUILD b/mingw-w64-just/PKGBUILD index de5f154e16..34b5356ad3 100644 --- a/mingw-w64-just/PKGBUILD +++ b/mingw-w64-just/PKGBUILD @@ -26,7 +26,7 @@ sha256sums=('6827df1e70ff888db7723f2c23e2eb57a5712df09acf28b92752510c21220bdb') prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-leptosfmt/PKGBUILD b/mingw-w64-leptosfmt/PKGBUILD index 6e8fe78e2b..9733a72813 100644 --- a/mingw-w64-leptosfmt/PKGBUILD +++ b/mingw-w64-leptosfmt/PKGBUILD @@ -27,7 +27,7 @@ prepare() { rm -rf "${srcdir}/${_realname}-${pkgver}/prettyplease" cp -r "${srcdir}/prettyplease-${_ppsha}" "${srcdir}/${_realname}-${pkgver}/prettyplease" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-lsd/PKGBUILD b/mingw-w64-lsd/PKGBUILD index 9e274b0fd1..85692fdab6 100644 --- a/mingw-w64-lsd/PKGBUILD +++ b/mingw-w64-lsd/PKGBUILD @@ -34,7 +34,7 @@ prepare() { cd "${_realname}-${pkgver}" cargo update -p cc --precise 1.1.10 - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-maturin/PKGBUILD b/mingw-w64-maturin/PKGBUILD index 6425bd58e5..b63bf61923 100644 --- a/mingw-w64-maturin/PKGBUILD +++ b/mingw-w64-maturin/PKGBUILD @@ -27,7 +27,7 @@ sha256sums=('2c2ae37144811d365509889ed7220b0598487f1278c2441829c3abf56cc6324a') prepare() { cp -r "${_realname}-${pkgver}" "python-build-${MSYSTEM}" && cd "python-build-${MSYSTEM}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-mdbook-admonish/PKGBUILD b/mingw-w64-mdbook-admonish/PKGBUILD index cc1082e4eb..c4a0525109 100644 --- a/mingw-w64-mdbook-admonish/PKGBUILD +++ b/mingw-w64-mdbook-admonish/PKGBUILD @@ -25,7 +25,7 @@ prepare() { cp -r "${_realname}-${pkgver}" "build-${MSYSTEM}" cd "${srcdir}/build-${MSYSTEM}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-mdbook-pikchr/PKGBUILD b/mingw-w64-mdbook-pikchr/PKGBUILD index b4d3994b12..f30b1d9eff 100644 --- a/mingw-w64-mdbook-pikchr/PKGBUILD +++ b/mingw-w64-mdbook-pikchr/PKGBUILD @@ -26,7 +26,7 @@ prepare() { sed -e "s/https:\/\/raw.githubusercontent.com\/podsvirov\/mdbook-pikchr\/master\/docs\///" -i docs/README.md - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-mdbook/PKGBUILD b/mingw-w64-mdbook/PKGBUILD index cc284554e5..c0483e43d8 100644 --- a/mingw-w64-mdbook/PKGBUILD +++ b/mingw-w64-mdbook/PKGBUILD @@ -25,7 +25,7 @@ sha256sums=('d46f3b79e210eed383b6966847ea86ec441b6b505e9d9d868294bb9742130c9c') prepare() { cd "${srcdir}/${_realName}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-mdcat/PKGBUILD b/mingw-w64-mdcat/PKGBUILD index 9d00f353bb..900f119da5 100644 --- a/mingw-w64-mdcat/PKGBUILD +++ b/mingw-w64-mdcat/PKGBUILD @@ -21,7 +21,7 @@ sha256sums=('460024d9795eb578be09ec2284af243627721151aa001aae6ffb5589380b2ba1') prepare() { cd "${_realname}-${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-minidump-stackwalk/PKGBUILD b/mingw-w64-minidump-stackwalk/PKGBUILD index e3b39e9fc1..dfea63c1c8 100644 --- a/mingw-w64-minidump-stackwalk/PKGBUILD +++ b/mingw-w64-minidump-stackwalk/PKGBUILD @@ -22,7 +22,7 @@ sha256sums=('811b4aca5457c4bee0ebeec60e17ab162ac31296dddca5faa1098a9937d486dd') prepare() { cp -r "${_projectname}-${pkgver}" "build-${MSYSTEM}" && cd "build-${MSYSTEM}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-neocmakelsp/PKGBUILD b/mingw-w64-neocmakelsp/PKGBUILD index adfb0cf326..0b5e492c47 100644 --- a/mingw-w64-neocmakelsp/PKGBUILD +++ b/mingw-w64-neocmakelsp/PKGBUILD @@ -27,7 +27,7 @@ prepare() { cd "${_realname}-${pkgver}" patch -p1 -i "${srcdir}/0001-neocmakelsp-meson-disable-cargo-build.patch" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-onefetch/PKGBUILD b/mingw-w64-onefetch/PKGBUILD index 3f69030fcf..c51a2796bf 100644 --- a/mingw-w64-onefetch/PKGBUILD +++ b/mingw-w64-onefetch/PKGBUILD @@ -42,7 +42,7 @@ zstd-sys = { path = "../zstd-sys-2.0.13+zstd.1.5.6" } END cargo update -p zstd-sys - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-paper-terminal/PKGBUILD b/mingw-w64-paper-terminal/PKGBUILD index 17bbfaf829..07023610ea 100644 --- a/mingw-w64-paper-terminal/PKGBUILD +++ b/mingw-w64-paper-terminal/PKGBUILD @@ -19,7 +19,7 @@ sha256sums=('3d6726ae0861371a49cf69410294b73b38c7efa666dc7840ee6b29e6ff3088ee') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-powersession-rs/PKGBUILD b/mingw-w64-powersession-rs/PKGBUILD index e1948e3cc2..2ab3f0e2aa 100644 --- a/mingw-w64-powersession-rs/PKGBUILD +++ b/mingw-w64-powersession-rs/PKGBUILD @@ -18,7 +18,7 @@ sha256sums=('e2f6a08bbed401fbc8e423cb27f768d9f763cd572ca29bb0e547f0dd6a8429ef') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-procs/PKGBUILD b/mingw-w64-procs/PKGBUILD index 16adc12e74..3b3a1d6e9c 100644 --- a/mingw-w64-procs/PKGBUILD +++ b/mingw-w64-procs/PKGBUILD @@ -20,7 +20,7 @@ sha256sums=('7b287ac253fd1d202b0ea6a9a8ba2ed97598cf8e7dfd539bd40e382c6dc6d350') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-python-pywinpty/PKGBUILD b/mingw-w64-python-pywinpty/PKGBUILD index f6d424319d..159e3d4a09 100644 --- a/mingw-w64-python-pywinpty/PKGBUILD +++ b/mingw-w64-python-pywinpty/PKGBUILD @@ -26,7 +26,7 @@ sha256sums=('312cf39153a8736c617d45ce8b6ad6cd2107de121df91c455b10ce6bba7a39b2') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-python-rpds-py/PKGBUILD b/mingw-w64-python-rpds-py/PKGBUILD index 90a7834009..10908bd392 100644 --- a/mingw-w64-python-rpds-py/PKGBUILD +++ b/mingw-w64-python-rpds-py/PKGBUILD @@ -28,7 +28,7 @@ sha256sums=('abd4df20485a0983e2ca334a216249b6186d6e3c1627e106651943dbdb791aea') prepare() { cd "${_realname/-/_}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-repgrep/PKGBUILD b/mingw-w64-repgrep/PKGBUILD index 44a4f3003c..84e41eca6f 100644 --- a/mingw-w64-repgrep/PKGBUILD +++ b/mingw-w64-repgrep/PKGBUILD @@ -30,7 +30,7 @@ prepare() { sed -i "s|\"ASCIIDOCTOR\"|\"${_asciidoctor}\"|g" build.rs rm rust-toolchain.toml - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-rio/PKGBUILD b/mingw-w64-rio/PKGBUILD index 71d8658b2f..4ad8667050 100644 --- a/mingw-w64-rio/PKGBUILD +++ b/mingw-w64-rio/PKGBUILD @@ -27,7 +27,7 @@ sha256sums=('118e169e4a328544a3958da70ae6a8a804edb63294834312ac33faac6130d40f') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-ripgrep-all/PKGBUILD b/mingw-w64-ripgrep-all/PKGBUILD index 5e99a6bf6a..0dd7688c2b 100644 --- a/mingw-w64-ripgrep-all/PKGBUILD +++ b/mingw-w64-ripgrep-all/PKGBUILD @@ -31,7 +31,7 @@ prepare() { # - ...and eventually it failes (problems with compiling using MSVC) rm rust-toolchain.toml - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-ripgrep/PKGBUILD b/mingw-w64-ripgrep/PKGBUILD index ba390b845e..9b70460504 100644 --- a/mingw-w64-ripgrep/PKGBUILD +++ b/mingw-w64-ripgrep/PKGBUILD @@ -27,7 +27,7 @@ prepare() { tar -xzf "${_realname}-${pkgver}.tar.gz" || true cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-rust-analyzer/PKGBUILD b/mingw-w64-rust-analyzer/PKGBUILD index 9d52de354b..abb423289a 100644 --- a/mingw-w64-rust-analyzer/PKGBUILD +++ b/mingw-w64-rust-analyzer/PKGBUILD @@ -21,7 +21,7 @@ sha256sums=('00c7d5e925124a573ff2cbb3804c904f053358ef32a342649362520c73bf362a') prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-rust-bindgen/PKGBUILD b/mingw-w64-rust-bindgen/PKGBUILD index 675d907a33..8a692354f6 100644 --- a/mingw-w64-rust-bindgen/PKGBUILD +++ b/mingw-w64-rust-bindgen/PKGBUILD @@ -24,7 +24,7 @@ sha256sums=('1da7050a17fdab0e20d5d8c20d48cddce2973e8b7cb0afc15185bfad22f8ce5b') prepare() { cd "${srcdir}/${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-rustlings/PKGBUILD b/mingw-w64-rustlings/PKGBUILD index 309f365230..b20f5a9e25 100644 --- a/mingw-w64-rustlings/PKGBUILD +++ b/mingw-w64-rustlings/PKGBUILD @@ -29,7 +29,7 @@ prepare() { cd "${srcdir}/${_realname}-${pkgver}" cp dev/Cargo.toml dev-Cargo.toml - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-rustscan/PKGBUILD b/mingw-w64-rustscan/PKGBUILD index 0cae9ab6e6..7af20c1eff 100644 --- a/mingw-w64-rustscan/PKGBUILD +++ b/mingw-w64-rustscan/PKGBUILD @@ -25,7 +25,7 @@ prepare() { # actually include 2.4.1 update commit patch -Np1 -i ../b1f008a9c987f7e879ccf74bdab5ecfea9e74fb9.patch - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-rustup/PKGBUILD b/mingw-w64-rustup/PKGBUILD index 90861e5e42..203a28ade5 100644 --- a/mingw-w64-rustup/PKGBUILD +++ b/mingw-w64-rustup/PKGBUILD @@ -52,7 +52,7 @@ prepare() { cd "${_realname}-${pkgver}" cargo update -p aws-lc-rs --precise 1.13.1 - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-sad/PKGBUILD b/mingw-w64-sad/PKGBUILD index 20d2e80af7..c1bb973dd5 100644 --- a/mingw-w64-sad/PKGBUILD +++ b/mingw-w64-sad/PKGBUILD @@ -19,7 +19,7 @@ sha256sums=('a67902b9edb287861668ee3e39482c17b41c60e244ece62b3f8016250286294f') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-samply/PKGBUILD b/mingw-w64-samply/PKGBUILD index c999e67e19..28b76cfabe 100644 --- a/mingw-w64-samply/PKGBUILD +++ b/mingw-w64-samply/PKGBUILD @@ -19,7 +19,7 @@ sha256sums=('7002789471f8ef3a36f4d4db7be98f2847724e2b81a53c5e23d5cae022fb704b') prepare() { mv "${_realname}-${_realname}-v${pkgver}" "${_realname}-${pkgver}" cd "${_realname}-${pkgver}/${_realname}" - cargo fetch --target "$(rustc --print host-tuple)" --locked + cargo fetch --target "${RUST_CHOST}" --locked } build() { diff --git a/mingw-w64-sd/PKGBUILD b/mingw-w64-sd/PKGBUILD index 6de4bf7dd9..f245935d28 100644 --- a/mingw-w64-sd/PKGBUILD +++ b/mingw-w64-sd/PKGBUILD @@ -22,7 +22,7 @@ sha256sums=('2adc1dec0d2c63cbffa94204b212926f2735a59753494fca72c3cfe4001d472f') prepare() { cd "${srcdir}/${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-starship/PKGBUILD b/mingw-w64-starship/PKGBUILD index f50915c131..1305ca3815 100644 --- a/mingw-w64-starship/PKGBUILD +++ b/mingw-w64-starship/PKGBUILD @@ -28,7 +28,7 @@ prepare() { tar -xzf "${_realname}-${pkgver}.tar.gz" || true cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-stork/PKGBUILD b/mingw-w64-stork/PKGBUILD index 57e22fef7c..b77f9509ae 100644 --- a/mingw-w64-stork/PKGBUILD +++ b/mingw-w64-stork/PKGBUILD @@ -26,7 +26,7 @@ prepare() { cd "${srcdir}/${_realname}-${pkgver}" export OPENSSL_NO_VENDOR=1 - ${MINGW_PREFIX}/bin/cargo fetch --locked --target "$(rustc --print host-tuple)" + ${MINGW_PREFIX}/bin/cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-svg2pdf/PKGBUILD b/mingw-w64-svg2pdf/PKGBUILD index 93530086a1..a635bf2475 100644 --- a/mingw-w64-svg2pdf/PKGBUILD +++ b/mingw-w64-svg2pdf/PKGBUILD @@ -17,7 +17,7 @@ sha256sums=('882bb7992cfa79395788d577d3ca79c1a7f53597a23abe7a09a2b1180ee9a44e') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-tree-sitter/PKGBUILD b/mingw-w64-tree-sitter/PKGBUILD index 5f867705bb..dcd0f0611c 100644 --- a/mingw-w64-tree-sitter/PKGBUILD +++ b/mingw-w64-tree-sitter/PKGBUILD @@ -46,7 +46,7 @@ prepare() { # END # cargo update -p rquickjs-sys - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-trunk/PKGBUILD b/mingw-w64-trunk/PKGBUILD index 4b8799355a..562fbc9f95 100644 --- a/mingw-w64-trunk/PKGBUILD +++ b/mingw-w64-trunk/PKGBUILD @@ -26,7 +26,7 @@ sha256sums=('8687bcf96bdc4decee88458745bbb760ad31dfd109e955cf455c2b64caeeae2f') prepare() { cd "${srcdir}/${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-turbo/PKGBUILD b/mingw-w64-turbo/PKGBUILD index 5c24991fa6..0ab3abfc2f 100644 --- a/mingw-w64-turbo/PKGBUILD +++ b/mingw-w64-turbo/PKGBUILD @@ -46,7 +46,7 @@ END export RUSTUP_TOOLCHAIN=nightly-2025-09-12-${RUST_CHOST} cargo update -p zstd-sys --config='net.git-fetch-with-cli=true' - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-typst-lsp/PKGBUILD b/mingw-w64-typst-lsp/PKGBUILD index ec4b16ae48..ac199660c8 100644 --- a/mingw-w64-typst-lsp/PKGBUILD +++ b/mingw-w64-typst-lsp/PKGBUILD @@ -18,7 +18,7 @@ prepare() { cd "${_realname}" cargo update -p time - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-typst/PKGBUILD b/mingw-w64-typst/PKGBUILD index db573b9169..1b1d47d450 100644 --- a/mingw-w64-typst/PKGBUILD +++ b/mingw-w64-typst/PKGBUILD @@ -29,7 +29,7 @@ prepare() { ${MINGW_PREFIX}/bin/cargo fetch \ --locked \ --config='net.git-fetch-with-cli=true' \ - --target "$(rustc --print host-tuple)" + --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-typstudio/PKGBUILD b/mingw-w64-typstudio/PKGBUILD index d6c509a9d3..cb4f88c438 100644 --- a/mingw-w64-typstudio/PKGBUILD +++ b/mingw-w64-typstudio/PKGBUILD @@ -35,7 +35,7 @@ prepare() { "${MINGW_PREFIX}/bin/cargo" fetch \ --locked \ --manifest-path src-tauri/Cargo.toml \ - --target "$(rustc --print host-tuple)" + --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-uutils-coreutils/PKGBUILD b/mingw-w64-uutils-coreutils/PKGBUILD index 9edc37f675..2a3de40fd0 100644 --- a/mingw-w64-uutils-coreutils/PKGBUILD +++ b/mingw-w64-uutils-coreutils/PKGBUILD @@ -23,7 +23,7 @@ sha256sums=('422b4bab88d6a4da9eabcc947b4e8e0c7fbd123c88700f8750da45910bfb03b6') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } # spliting build() sometimes cause building twice at make build diff --git a/mingw-w64-vivid/PKGBUILD b/mingw-w64-vivid/PKGBUILD index 77e188f26d..3f3d15283a 100644 --- a/mingw-w64-vivid/PKGBUILD +++ b/mingw-w64-vivid/PKGBUILD @@ -23,7 +23,7 @@ sha256sums=('88db6158dad60aba66ae16f2cd1b09f515625940a33bada65da5562a03538e49') prepare() { cd "vivid-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wac/PKGBUILD b/mingw-w64-wac/PKGBUILD index ba5107f035..63346b56cd 100644 --- a/mingw-w64-wac/PKGBUILD +++ b/mingw-w64-wac/PKGBUILD @@ -20,7 +20,7 @@ prepare() { # For more info see: https://github.com/rust-lang/cc-rs/pull/1176 cargo update -p cc - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wasm-bindgen/PKGBUILD b/mingw-w64-wasm-bindgen/PKGBUILD index ba421234a6..6ce5efce07 100644 --- a/mingw-w64-wasm-bindgen/PKGBUILD +++ b/mingw-w64-wasm-bindgen/PKGBUILD @@ -33,7 +33,7 @@ prepare() { cargo fetch --locked \ --config='net.git-fetch-with-cli=true' \ - --target "$(rustc --print host-tuple)" + --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wasm-component-ld/PKGBUILD b/mingw-w64-wasm-component-ld/PKGBUILD index 3e2853b64d..fa19be5bb3 100644 --- a/mingw-w64-wasm-component-ld/PKGBUILD +++ b/mingw-w64-wasm-component-ld/PKGBUILD @@ -23,7 +23,7 @@ sha256sums=('27fd97d775a20737e5ee55b345200d23ae381f437886a54fe3a7a374e291e744') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wasm-pack/PKGBUILD b/mingw-w64-wasm-pack/PKGBUILD index 683ebaa3a8..93a0739bc8 100644 --- a/mingw-w64-wasm-pack/PKGBUILD +++ b/mingw-w64-wasm-pack/PKGBUILD @@ -49,7 +49,7 @@ zstd-sys = { path = "../zstd-sys-2.0.11+zstd.1.5.6" } END cargo update -p bzip2-sys -p zstd-sys - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wasm-server-runner/PKGBUILD b/mingw-w64-wasm-server-runner/PKGBUILD index 02a8ef2ba7..e7a5b28dc7 100644 --- a/mingw-w64-wasm-server-runner/PKGBUILD +++ b/mingw-w64-wasm-server-runner/PKGBUILD @@ -25,7 +25,7 @@ prepare() { cargo update -p aws-lc-rs --precise 1.13.1 cargo update -p wasm-bindgen-cli-support --precise 0.2.104 - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wasmer/PKGBUILD b/mingw-w64-wasmer/PKGBUILD index fb93de9c9f..8f6604b3ad 100644 --- a/mingw-w64-wasmer/PKGBUILD +++ b/mingw-w64-wasmer/PKGBUILD @@ -31,7 +31,7 @@ prepare() { patch -Np1 -i "../reproducible-builds.patch" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wasmtime/PKGBUILD b/mingw-w64-wasmtime/PKGBUILD index 16074e2f54..b0c2df4a01 100644 --- a/mingw-w64-wasmtime/PKGBUILD +++ b/mingw-w64-wasmtime/PKGBUILD @@ -43,7 +43,7 @@ zstd-sys = { path = "../zstd-sys-2.0.9+zstd.1.5.5" } END cargo update -p zstd-sys - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { @@ -65,7 +65,7 @@ build() { -DBUILD_SHARED_LIBS=ON \ -DWASMTIME_FASTEST_RUNTIME=ON \ -DCMAKE_CXX_STANDARD=17 \ - -DWASMTIME_TARGET="$(rustc --print host-tuple)" \ + -DWASMTIME_TARGET="${RUST_CHOST}" \ "${extra_config[@]}" \ -S "${_realname}/crates/c-api" \ -B "build-${MSYSTEM}" diff --git a/mingw-w64-watchexec/PKGBUILD b/mingw-w64-watchexec/PKGBUILD index 422c53aff4..9bffde553e 100644 --- a/mingw-w64-watchexec/PKGBUILD +++ b/mingw-w64-watchexec/PKGBUILD @@ -23,7 +23,7 @@ sha256sums=('52201822ab00bfaf6757f953f667870b3aada52f887813e94b4f322f239ff8fb') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-wezterm/PKGBUILD b/mingw-w64-wezterm/PKGBUILD index e2856e5fdf..6d51ce5953 100644 --- a/mingw-w64-wezterm/PKGBUILD +++ b/mingw-w64-wezterm/PKGBUILD @@ -37,7 +37,7 @@ prepare() { git submodule update --init --recursive cargo update -p cc - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-yazi/PKGBUILD b/mingw-w64-yazi/PKGBUILD index 9e4fad2863..d5426735a1 100644 --- a/mingw-w64-yazi/PKGBUILD +++ b/mingw-w64-yazi/PKGBUILD @@ -30,7 +30,7 @@ _env() { prepare() { cd "${_realname}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-zed/PKGBUILD b/mingw-w64-zed/PKGBUILD index b2ce30dfca..29270b9849 100644 --- a/mingw-w64-zed/PKGBUILD +++ b/mingw-w64-zed/PKGBUILD @@ -72,7 +72,7 @@ prepare() { fi cargo update -p zstd-sys - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" # generate license for whole Zed contents #sh script/generate-licenses } diff --git a/mingw-w64-zizmor/PKGBUILD b/mingw-w64-zizmor/PKGBUILD index 297d39ede7..6abecf654c 100644 --- a/mingw-w64-zizmor/PKGBUILD +++ b/mingw-w64-zizmor/PKGBUILD @@ -38,7 +38,7 @@ apply_patch_with_msg() { prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-zola/PKGBUILD b/mingw-w64-zola/PKGBUILD index 5aa47fb30f..29aa218deb 100644 --- a/mingw-w64-zola/PKGBUILD +++ b/mingw-w64-zola/PKGBUILD @@ -19,7 +19,7 @@ prepare() { cd "${_realname}-${pkgver}" # if cargo wants to make an http request at build stage, use `cargo fetch --locked` instead - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() { diff --git a/mingw-w64-zoxide/PKGBUILD b/mingw-w64-zoxide/PKGBUILD index 8a7728b903..60b2c3d9b3 100644 --- a/mingw-w64-zoxide/PKGBUILD +++ b/mingw-w64-zoxide/PKGBUILD @@ -22,7 +22,7 @@ sha256sums=('1b276edbf328aafc86afe1ebce41f45ccba3a3125412e89c8c5d8e825b0c7407') prepare() { cd "${_realname}-${pkgver}" - cargo fetch --locked --target "$(rustc --print host-tuple)" + cargo fetch --locked --target "${RUST_CHOST}" } build() {