debian: Build reproducibly

This commit is contained in:
Dorota Czaplejewicz
2020-11-28 17:32:05 +00:00
parent 963f52bbc3
commit 39a3c40d67

7
debian/rules vendored
View File

@ -2,6 +2,13 @@
export CARGO_HOME = $(CURDIR)/debian/cargo
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Don't use paths that may change between builds.
# No need to care about $HOME
# because Cargo will not place any source in ~/.cargo.
# The build directory is a subdirectory of the source directory,
# so it doesn't need to be explicitly taken care of.
export RUSTFLAGS = --remap-path-prefix=$(CURDIR)=/remap-pwd
distrel := $(shell lsb_release --codename --short)
ifneq (,$(filter $(distrel),buster amber))