Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From 8659eeeeda74d71e12080121f0b13a88cbdda433 Mon Sep 17 00:00:00 2001 |
| 2 | From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= <anibal.limon@linux.intel.com> |
| 3 | Date: Tue, 21 Feb 2017 11:23:27 -0600 |
| 4 | Subject: [PATCH] dpkg-deb/build.c: Remove usage of --clamp-mtime in tar |
| 5 | MIME-Version: 1.0 |
| 6 | Content-Type: text/plain; charset=UTF-8 |
| 7 | Content-Transfer-Encoding: 8bit |
| 8 | |
| 9 | Recently dpkg added --clamp-mtime to tar to create reproducible |
| 10 | build tarballs [1]. |
| 11 | |
| 12 | But host tools doesn't support this option because is new on tar |
| 13 | so disable in our builds. |
| 14 | |
| 15 | Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> |
| 16 | |
| 17 | Upstream-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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 21 | |
| 22 | Update patch context for dpkg 1.19.4. |
| 23 | |
| 24 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | --- |
| 26 | dpkg-deb/build.c | 2 +- |
| 27 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 28 | |
| 29 | diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 30 | index 68d1875..053fcb7 100644 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | --- a/dpkg-deb/build.c |
| 32 | +++ b/dpkg-deb/build.c |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 33 | @@ -457,7 +457,7 @@ tarball_pack(const char *dir, filenames_feed_func *tar_filenames_feeder, |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 34 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | 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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 40 | if (options->mode) |
| 41 | command_add_args(&cmd, "--mode", options->mode, NULL); |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | -- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 43 | 2.11.0 |