From e9cdbdda402d08169c23b665d3dd4c471f5b8f33 Mon Sep 17 00:00:00 2001 From: travankor Date: Mon, 6 Apr 2020 00:38:29 -0700 Subject: [PATCH] cargo.sh: don't hardcode the path. Clean up the cargo remnants in the post install phase. --- common/build-style/cargo.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh index 0257a633929..3be4791bf71 100644 --- a/common/build-style/cargo.sh +++ b/common/build-style/cargo.sh @@ -16,9 +16,13 @@ do_check() { do_install() { : ${make_cmd:=cargo} + : ${make_install_args:=--path .} - ${make_cmd} install --path . --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ + ${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ --locked ${configure_args} ${make_install_args} +} + +post_install() { rm -f "${DESTDIR}"/usr/.crates.toml rm -f "${DESTDIR}"/usr/.crates2.json }