[Reproducible-commits] [dpkg] 67/74: scripts/mk: Export SOURCE_DATE_EPOCH
Mattia Rizzolo
mattia at debian.org
Sun Jul 3 22:22:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to annotated tag 1.18.8
in repository dpkg.
commit 5536b2b785b3caf4ccc3e4a4655764e0442e8a21
Author: Guillem Jover <guillem at debian.org>
Date: Fri Jun 24 20:14:33 2016 +0200
scripts/mk: Export SOURCE_DATE_EPOCH
The minimally guaranteed entry point to build packages is the
debian/rules file, dpkg-buildpackage and any environment it sets up
cannot be relied upon.
Export this variable from pkg-info.mk preset from the debian/changelog
Timestamp.
Closes: #824572
---
debian/changelog | 2 ++
scripts/mk/pkg-info.mk | 7 +++++++
2 files changed, 9 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index df66b13..4232bb7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -44,6 +44,8 @@ dpkg (1.18.8) UNRELEASED; urgency=medium
Closes: #826161
* Do not emit warnings from dpkg-genchanges for automatic debug symbol
packages that are not found in debian/control.
+ * Export SOURCE_DATE_EPOCH from pkg-info.mk makefile snippet.
+ Closes: #824572
* Perl modules:
- Use warnings::warnif() instead of carp() for deprecated warnings.
- Add new format_range() method and deprecate dpkg() and rfc822() methods
diff --git a/scripts/mk/pkg-info.mk b/scripts/mk/pkg-info.mk
index 7bd6a64..15322ce 100644
--- a/scripts/mk/pkg-info.mk
+++ b/scripts/mk/pkg-info.mk
@@ -6,6 +6,9 @@
# DEB_VERSION_UPSTREAM_REVISION: the package's version without the Debian epoch
# DEB_VERSION_UPSTREAM: the package's upstream version
# DEB_DISTRIBUTION: the distribution(s) listed in the current entry of debian/changelog
+#
+# SOURCE_DATE_EPOCH: the source release date as seconds since the epoch, as
+# specified by <https://reproducible-builds.org/specs/source-date-epoch/>
dpkg_late_eval ?= $(or $(value DPKG_CACHE_$(1)),$(eval DPKG_CACHE_$(1) := $(shell $(2)))$(value DPKG_CACHE_$(1)))
@@ -15,3 +18,7 @@ DEB_VERSION_EPOCH_UPSTREAM = $(call dpkg_late_eval,DEB_VERSION_EPOCH_UPSTREAM,ec
DEB_VERSION_UPSTREAM_REVISION = $(call dpkg_late_eval,DEB_VERSION_UPSTREAM_REVISION,echo '$(DEB_VERSION)' | sed -e 's/^[0-9]*://')
DEB_VERSION_UPSTREAM = $(call dpkg_late_eval,DEB_VERSION_UPSTREAM,echo '$(DEB_VERSION_EPOCH_UPSTREAM)' | sed -e 's/^[0-9]*://')
DEB_DISTRIBUTION = $(call dpkg_late_eval,DEB_DISTRIBUTION,dpkg-parsechangelog -SDistribution)
+
+SOURCE_DATE_EPOCH ?= $(call dpkg_late_eval,SOURCE_DATE_EPOCH,dpkg-parsechangelog -STimestamp)
+
+export SOURCE_DATE_EPOCH
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list