[Reproducible-commits] [dpkg] 01/01: * scripts/dpkg-buildpackage.pl: Use SOURCE_DATE_EPOCH instead of DEB_BUILD_TIMESTAMP, to be in sync with dpkg-deb. * debian/changelog: Document the change and release as 1.18.3.0~reproducible3.

Santiago Vila sanvila at moszumanska.debian.org
Mon Oct 12 11:13:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

sanvila pushed a commit to branch pu/reproducible_builds
in repository dpkg.

commit 73f28752fb54c37fd153af5b958fbf26ca0887dc
Author: Santiago Vila <sanvila at debian.org>
Date:   Mon Oct 12 13:12:16 2015 +0200

    * scripts/dpkg-buildpackage.pl: Use SOURCE_DATE_EPOCH instead of
      DEB_BUILD_TIMESTAMP, to be in sync with dpkg-deb.
    * debian/changelog: Document the change and release as 1.18.3.0~reproducible3.
---
 debian/changelog             | 7 +++++++
 scripts/dpkg-buildpackage.pl | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2f8ca1b..80aa024 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+dpkg (1.18.3.0~reproducible3) UNRELEASED; urgency=low
+
+  * scripts/dpkg-buildpackage.pl: Use SOURCE_DATE_EPOCH instead
+    of DEB_BUILD_TIMESTAMP, to be in sync with dpkg-deb.
+
+ -- Santiago Vila <sanvila at debian.org>  Mon, 12 Oct 2015 11:35:30 +0200
+
 dpkg (1.18.3.0~reproducible2) UNRELEASED; urgency=low
 
   [ Jérémy Bobbio ]
diff --git a/scripts/dpkg-buildpackage.pl b/scripts/dpkg-buildpackage.pl
index 794413a..b9fdcaa 100755
--- a/scripts/dpkg-buildpackage.pl
+++ b/scripts/dpkg-buildpackage.pl
@@ -445,10 +445,10 @@ if ($changedby) {
     $maintainer = mustsetvar($changelog->{maintainer}, g_('source changed by'));
 }
 
-if (!$ENV{DEB_BUILD_TIMESTAMP}) {
+if (!$ENV{SOURCE_DATE_EPOCH}) {
     my $timestamp = `date -d'$changelog->{date}' +%s`;
     chomp $timestamp;
-    $ENV{DEB_BUILD_TIMESTAMP} = $timestamp;
+    $ENV{SOURCE_DATE_EPOCH} = $timestamp;
 }
 
 my @arch_opts;

-- 
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