diff options
Diffstat (limited to 'debian/patches/0009-gfxboot-pass-reproducible-and-owner-to-cpio.-Closes-.patch')
-rw-r--r-- | debian/patches/0009-gfxboot-pass-reproducible-and-owner-to-cpio.-Closes-.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches/0009-gfxboot-pass-reproducible-and-owner-to-cpio.-Closes-.patch b/debian/patches/0009-gfxboot-pass-reproducible-and-owner-to-cpio.-Closes-.patch new file mode 100644 index 0000000..ccca801 --- /dev/null +++ b/debian/patches/0009-gfxboot-pass-reproducible-and-owner-to-cpio.-Closes-.patch @@ -0,0 +1,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; + } + |