From 6072e5768ab3cb613ef2c64b415c43edddf4b09c Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Thu, 12 Sep 2019 11:26:03 +0000 Subject: [PATCH] build: Fix cargo behaviour Cargo caused .deb builds to crash by storing its data in $HOME. https://www.debian.org/doc/debian-policy/ch-source.html#main-building-script-debian-rules says TMP_DIR may be used freely, so that's where Cargo will keep its stuff now. --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 4116b759..aeaf3378 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,6 @@ #!/usr/bin/make -f +export CARGO_HOME=/tmp/cargo export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: