blob: 1b985df0f5b0d44fbdea179020fa3ee7ca018c22 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From 8659eeeeda74d71e12080121f0b13a88cbdda433 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com>
3Date: Tue, 21 Feb 2017 11:23:27 -0600
4Subject: [PATCH] dpkg-deb/build.c: Remove usage of --clamp-mtime in tar
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Recently dpkg added --clamp-mtime to tar to create reproducible
10build tarballs [1].
11
12But host tools doesn't support this option because is new on tar
13so disable in our builds.
14
15Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
16
17Upstream-Status: Inappropriate [Configuration]
18
19[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759999#20
20[2] https://lists.gnu.org/archive/html/help-tar/2016-01/msg00000.html
21---
22 dpkg-deb/build.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
26index a92b58e..a3d1912 100644
27--- a/dpkg-deb/build.c
28+++ b/dpkg-deb/build.c
29@@ -450,7 +450,7 @@ tarball_pack(const char *dir, filenames_feed_func *tar_filenames_feeder,
30
31 command_init(&cmd, TAR, "tar -cf");
32 command_add_args(&cmd, "tar", "-cf", "-", "--format=gnu",
33- "--mtime", mtime, "--clamp-mtime", NULL);
34+ "--mtime", mtime, NULL);
35 /* Mode might become a positional argument, pass it before -T. */
36 if (mode)
37 command_add_args(&cmd, "--mode", mode, NULL);
38--
392.11.0