Merge branch 'maint-0.3.1'

This commit is contained in:
Nick Mathewson 2017-07-13 16:51:18 -04:00
commit c73b35d428
3 changed files with 7 additions and 2 deletions

5
changes/bug22830 Normal file
View File

@ -0,0 +1,5 @@
o Minor bugfixes:
- Fix a problem with Rust toolchains not being found when building
without --enable-cargo-online-mode, due to setting the $HOME
environment variable instead of $CARGO_HOME. Fixes bug 22830;
fix by Chelsea Komlo. Bugfix on 0.3.1.1-alpha.

View File

@ -7,7 +7,7 @@ EXTRA_DIST +=\
src/rust/target/release/libtor_util.a: FORCE
( cd "$(abs_top_srcdir)/src/rust/tor_util" ; \
CARGO_TARGET_DIR="$(abs_top_builddir)/src/rust/target" \
HOME="$(abs_top_builddir)/src/rust" \
CARGO_HOME="$(abs_top_builddir)/src/rust" \
$(CARGO) build --release --quiet $(CARGO_ONLINE) )
FORCE:

View File

@ -7,7 +7,7 @@ exitcode=0
for crate in $crates; do
cd "${abs_top_srcdir:-.}/src/rust/${crate}"
CARGO_TARGET_DIR="${abs_top_builddir}/src/rust/target" HOME="${abs_top_builddir}/src/rust" "${CARGO:-cargo}" test ${CARGO_ONLINE-"--frozen"} || exitcode=1
CARGO_TARGET_DIR="${abs_top_builddir}/src/rust/target" CARGO_HOME="${abs_top_builddir}/src/rust" "${CARGO:-cargo}" test ${CARGO_ONLINE-"--frozen"} || exitcode=1
done
exit $exitcode