diff options
Diffstat (limited to 'debian/patches/0010-gfxboot-avoid-including-the-.-directory-in-the-cpio-.patch')
-rw-r--r-- | debian/patches/0010-gfxboot-avoid-including-the-.-directory-in-the-cpio-.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/0010-gfxboot-avoid-including-the-.-directory-in-the-cpio-.patch b/debian/patches/0010-gfxboot-avoid-including-the-.-directory-in-the-cpio-.patch new file mode 100644 index 0000000..2838e9e --- /dev/null +++ b/debian/patches/0010-gfxboot-avoid-including-the-.-directory-in-the-cpio-.patch @@ -0,0 +1,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; + } + |