blob: 2838e9edd61ab8dc7bfb731ee52a54927284aef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 3 Jan 2021 03:21:23 +0000
Subject: gfxboot: avoid including the "." directory in the cpio archive.
(Closes: #978946)
The "." directory is at best extraneous, and is a little trickier to
avoid a resulting embedded timestamp.
See also:
https://bugs.debian.org/978946
https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_cpio_archive_issue.html
---
gfxboot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfxboot b/gfxboot
index 75cdba3..0ede732 100755
--- a/gfxboot
+++ b/gfxboot
@@ -2625,7 +2625,7 @@ sub pack_archive
else {
$file = $gfxboot_tmp->file;
- $i = system "cd $dir ; find . | cpio --quiet --reproducible --owner=+0:+0 -o >$file 2>/dev/null";
+ $i = system "cd $dir ; find . -mindepth 1 | cpio --quiet --reproducible --owner=+0:+0 -o >$file 2>/dev/null";
die "$file: failed to create archive\n" if $i;
}
|