Package: dpkg-dev Version: 1.18.7 Severity: wishlist Dear Maintainer,
It would be good if one of the *.mk files in /usr/share/dpkg exported SOURCE_DATE_EPOCH as follows: export SOURCE_DATE_EPOCH = $(shell dpkg-parsechangelog -SDate | date -f- +%s) This is already being set by debhelper (and cdbs), but some debian/rules files have commands that run outside of debhelper, and therefore don't see S_D_E. Many of them however *do* include /usr/share/dpkg/*.mk, and so would benefit from the proposal here. Some people are submitting patches like #824182 assuming that S_D_E is defined by default in debian/rules when this is not true. This bug would not do that (there is no way in general to do that, short of patching make(1)) but it would help less mistakes to be made by packagers. X -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable'), (200, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages dpkg-dev depends on: ii base-files 9.6 ii binutils 2.26-8 ii bzip2 1.0.6-8 ii libdpkg-perl 1.18.7 ii make 4.1-9 ii patch 2.7.5-1 ii xz-utils 5.1.1alpha+20120614-2.1 Versions of packages dpkg-dev recommends: ii build-essential 11.7 ii clang-3.5 [c-compiler] 1:3.5.2-3 ii fakeroot 1.20.2-1 ii gcc [c-compiler] 4:5.3.1-1 ii gcc-5 [c-compiler] 5.3.1-14 ii gnupg 1.4.20-5 ii gnupg2 2.1.11-6 ii gpgv 1.4.20-5 ii libalgorithm-merge-perl 0.08-3 Versions of packages dpkg-dev suggests: ii debian-keyring 2016.03.22 -- no debconf information