blob: 4f79a40d8b92903e967e35f0881ca9aed4f53cc7 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From 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
Brad Bishop19323692019-04-05 15:28:33 -040021
22Update patch context for dpkg 1.19.4.
23
24Signed-off-by: Kai Kang <kai.kang@windriver.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025---
26 dpkg-deb/build.c | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
Brad Bishop19323692019-04-05 15:28:33 -040030index 68d1875..053fcb7 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031--- a/dpkg-deb/build.c
32+++ b/dpkg-deb/build.c
Brad Bishop19323692019-04-05 15:28:33 -040033@@ -457,7 +457,7 @@ tarball_pack(const char *dir, filenames_feed_func *tar_filenames_feeder,
Brad Bishop6e60e8b2018-02-01 10:27:11 -050034
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035 command_init(&cmd, TAR, "tar -cf");
36 command_add_args(&cmd, "tar", "-cf", "-", "--format=gnu",
37- "--mtime", mtime, "--clamp-mtime", NULL);
38+ "--mtime", mtime, NULL);
39 /* Mode might become a positional argument, pass it before -T. */
Brad Bishop19323692019-04-05 15:28:33 -040040 if (options->mode)
41 command_add_args(&cmd, "--mode", options->mode, NULL);
Brad Bishop6e60e8b2018-02-01 10:27:11 -050042--
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500432.11.0