]> git.ipfire.org Git - thirdparty/suricata.git/commit
rustup: handle rustup for sudo and su
authorJason Ish <jason.ish@oisf.net>
Wed, 9 Oct 2019 07:05:24 +0000 (01:05 -0600)
committerJason Ish <jason.ish@oisf.net>
Thu, 10 Oct 2019 22:36:08 +0000 (16:36 -0600)
commit389272f4c7c36cbe39d726be4dddf22c398305a9
treeeafd9502e8e765d66a906de78140f5095c888bf2
parent1b6eee829f6f5a64ec1a4127bf5ea601595d1ae3
rustup: handle rustup for sudo and su

If rustup is in use, and a user uses sudo or su for the make
install, the install may fail with a "no default toolchain"
error.

To prevent this, detect at configure if rustup is being used,
then set RUSTUP_HOME for all calls to cargo.
configure.ac
rust/Makefile.am