blob: 117f9234ad2e789bf0cd959256a2bd6f457f0c90 [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
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6Recently dpkg added --clamp-mtime to tar to create reproducible
7build tarballs [1].
8
9But host tools doesn't support this option because is new on tar
10so disable in our builds.
11
12Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
13
14Upstream-Status: Inappropriate [Configuration]
15
16[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759999#20
17[2] https://lists.gnu.org/archive/html/help-tar/2016-01/msg00000.html
Brad Bishop19323692019-04-05 15:28:33 -040018
19Update patch context for dpkg 1.19.4.
20
21Signed-off-by: Kai Kang <kai.kang@windriver.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050022---
Andrew Geissler9aee5002022-03-30 16:27:02 +000023 src/deb/build.c | 2 +-
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 1 file changed, 1 insertion(+), 1 deletion(-)
25
Andrew Geissler9aee5002022-03-30 16:27:02 +000026diff --git a/src/deb/build.c b/src/deb/build.c
27index 5c74ff3..76613ad 100644
28--- a/src/deb/build.c
29+++ b/src/deb/build.c
30@@ -505,7 +505,7 @@ tarball_pack(const char *dir, filenames_feed_func *tar_filenames_feeder,
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031
Brad Bishopd7bf8c12018-02-25 22:55:05 -050032 command_init(&cmd, TAR, "tar -cf");
33 command_add_args(&cmd, "tar", "-cf", "-", "--format=gnu",
34- "--mtime", mtime, "--clamp-mtime", NULL);
35+ "--mtime", mtime, NULL);
36 /* Mode might become a positional argument, pass it before -T. */
Brad Bishop19323692019-04-05 15:28:33 -040037 if (options->mode)
38 command_add_args(&cmd, "--mode", options->mode, NULL);
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039--
Andrew Geissler9aee5002022-03-30 16:27:02 +0000402.25.1
41