blob: ccca801f5efe4653936174eb3eedc6d0a43ecf01 (
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
30
31
32
33
34
35
36
37
38
|
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 1 Jan 2021 03:38:21 +0000
Subject: gfxboot: pass --reproducible and --owner to cpio. (Closes: #978946)
Apply fixes for reproducibilty, similar to:
https://github.com/openSUSE/gfxboot/pull/35
See also:
https://bugs.debian.org/978946
https://tests.reproducible-builds.org/debian/issues/unstable/users_and_groups_in_cpio_archive_issue.html
---
gfxboot | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gfxboot b/gfxboot
index c809762..75cdba3 100755
--- a/gfxboot
+++ b/gfxboot
@@ -2616,7 +2616,7 @@ sub pack_archive
}
if(@pack_list) {
- open $f, "| ( cd $dir ; cpio --quiet -o ) >$file/$archive";
+ open $f, "| ( cd $dir ; cpio --quiet --reproducible --owner=+0:+0 -o ) >$file/$archive";
print $f join("\n", @pack_list);
close $f;
}
@@ -2625,7 +2625,7 @@ sub pack_archive
else {
$file = $gfxboot_tmp->file;
- $i = system "cd $dir ; find . | cpio --quiet -o >$file 2>/dev/null";
+ $i = system "cd $dir ; find . | cpio --quiet --reproducible --owner=+0:+0 -o >$file 2>/dev/null";
die "$file: failed to create archive\n" if $i;
}
|