[Reproducible-commits] [dpkg] 44/74: dpkg-deb: Use same timestamp for the ar container as for tar mtime clamping

Mattia Rizzolo mattia at debian.org
Sun Jul 3 22:22:56 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 7feab6458058794a3ad330b8677d5a25b555631d
Author: Guillem Jover <guillem at debian.org>
Date:   Mon Jul 13 04:09:09 2015 +0200

    dpkg-deb: Use same timestamp for the ar container as for tar mtime clamping
    
    We use the same timestamp for all ar members, and the tarball mtime
    clamping for each tar file entry.
---
 debian/changelog | 2 ++
 dpkg-deb/build.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d3e5577..4f612f9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -29,6 +29,8 @@ dpkg (1.18.8) UNRELEASED; urgency=medium
     Thanks to Sven Joachim <svenjoac at gmx.de>. Closes: #827265
   * Use new GNU tar --clamp-mtime option in dpkg-deb to make sure no file in
     binary packages has an mtime later than the given time. Closes: #759886
+  * Use the same timestamp for the ar container as for tarball mtime clamping
+    in dpkg-deb.
   * 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/dpkg-deb/build.c b/dpkg-deb/build.c
index 4907963..5cb6096 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -524,6 +524,8 @@ do_build(const char *const *argv)
    * build something. Let's start by making the ar-wrapper. */
   ar = dpkg_ar_create(debar, 0644);
 
+  dpkg_ar_set_mtime(ar, timestamp);
+
   unsetenv("TAR_OPTIONS");
 
   /* Create a temporary file to store the control data in. Immediately

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