git/cargo: avoid writing to $HOME/.cargo
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
290b94f8ea
commit
479ac84af0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue