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 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | |
| 6 | Recently dpkg added --clamp-mtime to tar to create reproducible |
| 7 | build tarballs [1]. |
| 8 | |
| 9 | But host tools doesn't support this option because is new on tar |
| 10 | so disable in our builds. |
| 11 | |
| 12 | Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> |
| 13 | |
| 14 | Upstream-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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 18 | |
| 19 | Update patch context for dpkg 1.19.4. |
| 20 | |
| 21 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 22 | --- |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 23 | src/deb/build.c | 2 +- |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 25 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 26 | diff --git a/src/deb/build.c b/src/deb/build.c |
| 27 | index 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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 32 | 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 Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 37 | if (options->mode) |
| 38 | command_add_args(&cmd, "--mode", options->mode, NULL); |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 39 | -- |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 40 | 2.25.1 |
| 41 | |