From 3bce8f6bae91e07093fd7311601abc61fcce599a Mon Sep 17 00:00:00 2001 From: Shiz Date: Sun, 16 Apr 2017 18:08:00 +0000 Subject: testing/cargo: work properly with new Rust triple --- testing/cargo/APKBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'testing/cargo/APKBUILD') diff --git a/testing/cargo/APKBUILD b/testing/cargo/APKBUILD index 8d75affd83..9efda9b3cf 100644 --- a/testing/cargo/APKBUILD +++ b/testing/cargo/APKBUILD @@ -18,14 +18,14 @@ subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp:noarch" # NOTE: Cargo is self-hosted, so you need cargo to build cargo (ugh). # TODO: Implement some support for verifying crates fetched by cargo! -_ctarget="$CARCH-unknown-linux-musl" +_cbuild="$CARCH-unknown-linux-musl" source="$pkgname-$pkgver.tar.gz::https://github.com/rust-lang/$pkgname/archive/$pkgver.tar.gz https://github.com/rust-lang/rust-installer/archive/$_installer_gitrev/rust-installer-$_installer_gitrev.tar.gz - cargo-$_bootstrap_gitrev-$_ctarget.tar.gz::https://s3.amazonaws.com/rust-lang-ci/cargo-builds/$_bootstrap_gitrev/cargo-nightly-$_ctarget.tar.gz + cargo-$_bootstrap_gitrev-$_cbuild.tar.gz::https://s3.amazonaws.com/rust-lang-ci/cargo-builds/$_bootstrap_gitrev/cargo-nightly-$_cbuild.tar.gz fix-test-build-auth.patch" builddir="$srcdir/$pkgname-$pkgver" -_bootstrap_cargo="$srcdir/cargo-nightly-$_ctarget/cargo/bin/cargo" +_bootstrap_cargo="$srcdir/cargo-nightly-$_cbuild/cargo/bin/cargo" export CARGOFLAGS="--locked" export CARGO_HOME="$srcdir/.cargo" @@ -54,13 +54,13 @@ build() { check() { cd "$builddir" - ./target/$_ctarget/release/cargo --version + ./target/$CTARGET/release/cargo --version # XXX: ignore test failures for now CFG_DISABLE_CROSS_TESTS=1 \ "$_bootstrap_cargo" test \ --release \ - --target "$_ctarget" \ + --target "$CTARGET" \ --no-fail-fast \ --verbose || true } -- cgit v1.2.3