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 | |
parent | 290b94f8ea8647cffbc4230bc24249598128f924 (diff) | |
download | slackbuilds-479ac84af0a5c0b7e689544581769af0b7b90f8b.tar.gz |
git/cargo: avoid writing to $HOME/.cargo
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | desktop/bukubrow/bukubrow.SlackBuild | 1 | ||||
-rw-r--r-- | development/mdbook/mdbook.SlackBuild | 1 | ||||
-rw-r--r-- | development/racer/racer.SlackBuild | 1 | ||||
-rw-r--r-- | development/rustup/rustup.SlackBuild | 1 | ||||
-rw-r--r-- | gis/whitebox-tools/whitebox-tools.SlackBuild | 1 | ||||
-rw-r--r-- | network/newsboat/newsboat.SlackBuild | 2 | ||||
-rw-r--r-- | network/suricata/suricata.SlackBuild | 2 | ||||
-rw-r--r-- | python/cryptography/cryptography.SlackBuild | 2 | ||||
-rw-r--r-- | system/alacritty/alacritty.SlackBuild | 1 | ||||
-rw-r--r-- | system/bat/bat.SlackBuild | 1 | ||||
-rw-r--r-- | system/dust/dust.SlackBuild | 1 | ||||
-rw-r--r-- | system/exa/exa.SlackBuild | 1 | ||||
-rw-r--r-- | system/fd/fd.SlackBuild | 1 | ||||
-rw-r--r-- | system/ripgrep/ripgrep.SlackBuild | 1 | ||||
-rw-r--r-- | system/skim/skim.SlackBuild | 1 | ||||
-rw-r--r-- | system/system76-power/system76-power.SlackBuild | 2 | ||||
-rw-r--r-- | system/vtcol/vtcol.SlackBuild | 1 |
17 files changed, 21 insertions, 0 deletions
diff --git a/desktop/bukubrow/bukubrow.SlackBuild b/desktop/bukubrow/bukubrow.SlackBuild index 667f961181..33e5e0ff98 100644 --- a/desktop/bukubrow/bukubrow.SlackBuild +++ b/desktop/bukubrow/bukubrow.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/mdbook/mdbook.SlackBuild b/development/mdbook/mdbook.SlackBuild index 694fc700d6..ff36c86dcf 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 3efa0fdb48..2c15161b86 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 2ab33f0d2c..1a663702b7 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/ diff --git a/gis/whitebox-tools/whitebox-tools.SlackBuild b/gis/whitebox-tools/whitebox-tools.SlackBuild index 0f190cc24f..4648b0d44f 100644 --- a/gis/whitebox-tools/whitebox-tools.SlackBuild +++ b/gis/whitebox-tools/whitebox-tools.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 --offline --release $CARGOTARGET diff --git a/network/newsboat/newsboat.SlackBuild b/network/newsboat/newsboat.SlackBuild index 88f3da4e35..12f830a059 100644 --- a/network/newsboat/newsboat.SlackBuild +++ b/network/newsboat/newsboat.SlackBuild @@ -146,6 +146,8 @@ if [ "$CARGOTARGET" != "" ] ; then sed -i "s|target/release|target/$RELEASEDIR/release|" Makefile fi +export CARGO_HOME=.cargo + CXXFLAGS="$SLKCFLAGS" \ CARGO_FLAGS="$CARGOTARGET" \ make -j1 prefix=/usr diff --git a/network/suricata/suricata.SlackBuild b/network/suricata/suricata.SlackBuild index 0cd133e2d7..a6b0f5e0f5 100644 --- a/network/suricata/suricata.SlackBuild +++ b/network/suricata/suricata.SlackBuild @@ -79,6 +79,8 @@ 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 {} \; +export CARGO_HOME=.cargo + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/python/cryptography/cryptography.SlackBuild b/python/cryptography/cryptography.SlackBuild index 7fa20362b6..19eddb1eab 100644 --- a/python/cryptography/cryptography.SlackBuild +++ b/python/cryptography/cryptography.SlackBuild @@ -131,6 +131,8 @@ 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 {} \; +export CARGO_HOME=.cargo + sed -i '/install_requires/d' setup.py python3 setup.py install --root=$PKG diff --git a/system/alacritty/alacritty.SlackBuild b/system/alacritty/alacritty.SlackBuild index 48117cec73..e0b7188047 100644 --- a/system/alacritty/alacritty.SlackBuild +++ b/system/alacritty/alacritty.SlackBuild @@ -142,6 +142,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/system/bat/bat.SlackBuild b/system/bat/bat.SlackBuild index 7d1ec4ac0c..fc88360797 100644 --- a/system/bat/bat.SlackBuild +++ b/system/bat/bat.SlackBuild @@ -155,6 +155,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 --offline --release $CARGOTARGET diff --git a/system/dust/dust.SlackBuild b/system/dust/dust.SlackBuild index 9ec1f77fbb..940e34aa0c 100644 --- a/system/dust/dust.SlackBuild +++ b/system/dust/dust.SlackBuild @@ -155,6 +155,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 --offline --release $CARGOTARGET diff --git a/system/exa/exa.SlackBuild b/system/exa/exa.SlackBuild index 80865ff74c..89bbaded44 100644 --- a/system/exa/exa.SlackBuild +++ b/system/exa/exa.SlackBuild @@ -140,6 +140,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/system/fd/fd.SlackBuild b/system/fd/fd.SlackBuild index c1e592f39c..19a205a436 100644 --- a/system/fd/fd.SlackBuild +++ b/system/fd/fd.SlackBuild @@ -140,6 +140,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/system/ripgrep/ripgrep.SlackBuild b/system/ripgrep/ripgrep.SlackBuild index 6318a27690..879ed3e8f4 100644 --- a/system/ripgrep/ripgrep.SlackBuild +++ b/system/ripgrep/ripgrep.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 \ PCRE2_SYS_STATIC=0 \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/system/skim/skim.SlackBuild b/system/skim/skim.SlackBuild index b9cd09e8fe..3da29929f2 100644 --- a/system/skim/skim.SlackBuild +++ b/system/skim/skim.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 --offline --release $CARGOTARGET diff --git a/system/system76-power/system76-power.SlackBuild b/system/system76-power/system76-power.SlackBuild index cc0c7b50ec..7ce0ed7226 100644 --- a/system/system76-power/system76-power.SlackBuild +++ b/system/system76-power/system76-power.SlackBuild @@ -171,6 +171,8 @@ find -L . \ # Prevent syslog messasge 'Unknown group "sudo" in message bus configuration file'. patch -p1 < $CWD/fix_groups.patch +export CARGO_HOME=.cargo + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ make diff --git a/system/vtcol/vtcol.SlackBuild b/system/vtcol/vtcol.SlackBuild index 7f4372148a..3e476155dc 100644 --- a/system/vtcol/vtcol.SlackBuild +++ b/system/vtcol/vtcol.SlackBuild @@ -140,6 +140,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 |