debian: Fix issue seen with sudo pbuilder

sudo pbuilder caused SUDO_USER to be set during the
build. mk/install.mk will then try to run sudo, but since sudo is not
a build-dep, this will fail.

Signed-off-by: Jordan Justen <jljusten@gmail.com>
This commit is contained in:
Jordan Justen 2015-01-18 01:01:45 -08:00
parent 2bdce5aa6a
commit 03b69fec33

5
debian/rules vendored
View File

@ -4,6 +4,11 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# When using sudo pbuilder, this will cause mk/install.mk to run sudo,
# but we don't need sudo as a build-dep for the package if we unexport
# the SUDO_USER variable.
unexport SUDO_USER
RUST_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | cut -f 1 -d '-' | cut -f 1-2 -d .)
RUST_PREFIX := usr/lib/$(DEB_HOST_MULTIARCH)/rust/$(RUST_VERSION)
DEB_DESTDIR := $(CURDIR)/debian/rust