summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Richter2020-04-13 15:00:33 +0200
committerMarkus Richter2020-04-13 15:00:33 +0200
commit3372335a95034d3ba647fbd28252b4f67422708a (patch)
tree05da14980d1a5db59fbfee0d8e74b014eb8a92ab
parent5c2e01100cd763b73acffcc0f005012caf35d8a8 (diff)
downloadaur-3372335a95034d3ba647fbd28252b4f67422708a.tar.gz
Fix rustup toolchain issues
+ Set rustup profile to ignore unneccessary toolchain components when using rustup
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9313a78e08d5..041f61c7b4c6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = bitwarden_rs-git
pkgdesc = An unofficial lightweight implementation of the bitwarden-server using rust and sqlite. Does NOT include the web-interface.
- pkgver = 1.14.r0.g70f3ab8
+ pkgver = 1.14.2.r0.ge3feba2
pkgrel = 1
url = https://github.com/dani-garcia/bitwarden_rs
install = bitwarden_rs.install
diff --git a/PKGBUILD b/PKGBUILD
index 46e5604caad7..cd3fdf796095 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=bitwarden_rs-git
_pkgbase=bitwarden_rs
-pkgver=1.14.r0.g70f3ab8
+pkgver=1.14.2.r0.ge3feba2
pkgrel=1
pkgdesc="An unofficial lightweight implementation of the bitwarden-server using rust and sqlite. Does NOT include the web-interface."
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
@@ -39,10 +39,17 @@ pkgver() {
}
build() {
+ # rustup is not required, but if it exists, we have to set the profile. Otherwise, fail silently.
+ # This is necessary because some of the optional toolchain components (e.g. clippy) fail regularly on nightly and rustup/cargo will fail if it can't download those.
+ RUSTUP_PROFILE=`rustup show profile 2>/dev/null`
+ rustup set profile minimal 2>/dev/null && echo "Set rustup profile to 'minimal'. Will reset to '$RUSTUP_PROFILE' after a successful build."
+
#build bitwarden_rs
cd "$srcdir/$_pkgbase"
patch -N -p1 -i "$srcdir/0001-Disable-Vault.patch"
cargo build --release --locked --features sqlite
+
+ rustup set profile $RUSTUP_PROFILE 2>/dev/null && echo "Set rustup profile back to '$RUSTUP_PROFILE'."
}
check() {