diff options
author | K. Eugene Carlson <kvngncrlsn@gmail.com> | 2022-03-10 00:38:18 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-10 12:40:15 +0700 |
commit | 479ac84af0a5c0b7e689544581769af0b7b90f8b (patch) | |
tree | 9a9c7c99778d45ec44b3c03de1d4ada7b90709e7 /development | |
parent | 290b94f8ea8647cffbc4230bc24249598128f924 (diff) |
git/cargo: avoid writing to $HOME/.cargo
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/mdbook/mdbook.SlackBuild | 1 | ||||
-rw-r--r-- | development/racer/racer.SlackBuild | 1 | ||||
-rw-r--r-- | development/rustup/rustup.SlackBuild | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/development/mdbook/mdbook.SlackBuild b/development/mdbook/mdbook.SlackBuild index 694fc700d63ae..ff36c86dcfef6 100644 --- a/development/mdbook/mdbook.SlackBuild +++ b/development/mdbook/mdbook.SlackBuild @@ -141,6 +141,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +CARGO_HOME=.cargo \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ cargo build --release $CARGOTARGET diff --git a/development/racer/racer.SlackBuild b/development/racer/racer.SlackBuild index 3efa0fdb48a3a..2c15161b86521 100644 --- a/development/racer/racer.SlackBuild +++ b/development/racer/racer.SlackBuild @@ -153,6 +153,7 @@ if ! rustup toolchain list | grep "$RUST_NIGHTLY" > /dev/null 2>&1 ; then fi PATH="$(pwd)/rustup-bin:$PATH" \ +CARGO_HOME=.cargo \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ rustup run "$RUST_NIGHTLY" cargo build --release $CARGOTARGET diff --git a/development/rustup/rustup.SlackBuild b/development/rustup/rustup.SlackBuild index 2ab33f0d2ce57..1a663702b712b 100644 --- a/development/rustup/rustup.SlackBuild +++ b/development/rustup/rustup.SlackBuild @@ -147,6 +147,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +CARGO_HOME=.cargo \ cargo build --release --features no-self-update $CARGOTARGET mkdir -p $PKG/usr/bin/ |