mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-03 12:17:38 +00:00
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:
parent
2bdce5aa6a
commit
03b69fec33
5
debian/rules
vendored
5
debian/rules
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user