tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 519c6ba26c31d801b73e44ca5c760044a7fe06e5
parent db4873c46d80366c8eb0df0098ba18a10c0ad59b
Author: Nick Mathewson <nickm@torproject.org>
Date:   Fri, 15 Dec 2017 10:59:57 -0500

Merge remote-tracking branch 'isis/bug24612'

Diffstat:
Achanges/bug24612 | 4++++
Mconfigure.ac | 7+++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/changes/bug24612 b/changes/bug24612 @@ -0,0 +1,4 @@ + o Minor fixes (build): + - Fix output of autoconf checks to display success messages for + Rust dependencies and a suitable rustc compiler version. Fixes + bug 24612; bugfix on tor-0.3.1.3-alpha. diff --git a/configure.ac b/configure.ac @@ -439,16 +439,21 @@ if test "x$enable_rust" = "xyes"; then fi if test ! -d "$TOR_RUST_DEPENDENCIES"; then AC_MSG_ERROR([Rust dependency directory $TOR_RUST_DEPENDENCIES does not exist. Specify a dependency directory using the TOR_RUST_DEPENDENCIES variable or allow cargo to fetch crates using --enable-cargo-online-mode.]) + ERRORED=1 fi for dep in $rust_crates; do if test ! -d "$TOR_RUST_DEPENDENCIES"/"$dep"; then AC_MSG_ERROR([Failure to find rust dependency $TOR_RUST_DEPENDENCIES/$dep. Specify a dependency directory using the TOR_RUST_DEPENDENCIES variable or allow cargo to fetch crates using --enable-cargo-online-mode.]) + ERRORED=1 fi done if test "x$NEED_MOD" = "x1"; then dnl When looking for dependencies from cargo, pick right directory TOR_RUST_DEPENDENCIES="../../src/ext/rust" fi + if test "x$ERRORED" = "x"; then + AC_MSG_RESULT([yes]) + fi fi dnl For now both MSVC and MinGW rust libraries will output static libs with @@ -465,6 +470,7 @@ if test "x$enable_rust" = "xyes"; then dnl Let's check the rustc version, too AC_MSG_CHECKING([rust version]) + RUSTC_VERSION=`$RUSTC --version` RUSTC_VERSION_MAJOR=`$RUSTC --version | cut -d ' ' -f 2 | cut -d '.' -f 1` RUSTC_VERSION_MINOR=`$RUSTC --version | cut -d ' ' -f 2 | cut -d '.' -f 2` if test "x$RUSTC_VERSION_MAJOR" = "x" -o "x$RUSTC_VERSION_MINOR" = "x"; then @@ -473,6 +479,7 @@ if test "x$enable_rust" = "xyes"; then if test "$RUSTC_VERSION_MAJOR" -lt 2 -a "$RUSTC_VERSION_MINOR" -lt 14; then AC_MSG_ERROR([rustc must be at least version 1.14]) fi + AC_MSG_RESULT([$RUSTC_VERSION]) fi AC_SEARCH_LIBS(socket, [socket network])