]> git.proxmox.com Git - grub2.git/commitdiff
Explicitly unset SOURCE_DATE_EPOCH before running fs tests.
authorSteve McIntyre <93sam@debian.org>
Sun, 18 Sep 2022 12:50:26 +0000 (12:50 +0000)
committerSteve McIntyre <93sam@debian.org>
Sun, 18 Sep 2022 21:51:10 +0000 (22:51 +0100)
In some filesystem utils like mksquashfs, it will silently change
behaviour and cause timestamps to unexpectedly change. Reproducible
builds are good and useful for shipped artifacts, but this causes
build-time tests to fail.

debian/changelog
debian/patches/fs-tester-time-fail.patch [new file with mode: 0644]
debian/patches/series
tests/util/grub-fs-tester.in

index 72a5c592ed81f41b483da69244156fe5c1be78a4..c645e3bbd0521757dae7422d5cf555acfc59d67c 100644 (file)
@@ -1,3 +1,10 @@
+grub2 (2.06-5) UNRELEASED; urgency=high
+
+  [ Steve McIntyre ]
+  * Explicitly unset SOURCE_DATE_EPOCH before running fs tests
+
+ -- Steve McIntyre <93sam@debian.org>  Wed, 14 Sep 2022 22:35:49 +0100
+
 grub2 (2.06-4) unstable; urgency=high
 
   [ Steve McIntyre ]
diff --git a/debian/patches/fs-tester-time-fail.patch b/debian/patches/fs-tester-time-fail.patch
new file mode 100644 (file)
index 0000000..43675db
--- /dev/null
@@ -0,0 +1,27 @@
+Explicitly unset SOURCE_DATE_EPOCH before running fs tests. In some
+filesystem utils like mksquashfs, it will silently change behaviour
+and cause timestamps to unexpectedly change. Reproducible builds are
+good and useful for shipped artifacts, but this causes build-time
+tests to fail.
+
+Author: Steve McIntyre
+
+Patch-Name: fs-tester-time-fail.patch
+---
+ tests/util/grub-fs-tester.in | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in
+index bfc425e1f..660691302 100644
+--- a/tests/util/grub-fs-tester.in
++++ b/tests/util/grub-fs-tester.in
+@@ -4,6 +4,9 @@ set -e
+ fs="$1"
++# We can't have this set, or filesystem tests will fail
++unset SOURCE_DATE_EPOCH
++
+ GRUBFSTEST="@builddir@/grub-fstest"
+ tempdir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1
index 66a1bd4040e64837eaa0a3ff47a82989300a806e..48389f862a3b05459faba3d576854e6cca4012c6 100644 (file)
@@ -90,3 +90,4 @@ minilzo-2.10.patch
 0090-fs-btrfs-Fix-several-fuzz-issues-with-invalid-dir-it.patch
 0091-fs-btrfs-Fix-more-ASAN-and-SEGV-issues-found-with-fu.patch
 0092-fs-btrfs-Fix-more-fuzz-issues-related-to-chunks.patch
+fs-tester-time-fail.patch
index bfc425e1fd7fc7b1b535c415ae4ee2efd9edcfc3..660691302696da14b651acd29be4944cb4cc946e 100644 (file)
@@ -4,6 +4,9 @@ set -e
 
 fs="$1"
 
+# We can't have this set, or filesystem tests will fail
+unset SOURCE_DATE_EPOCH
+
 GRUBFSTEST="@builddir@/grub-fstest"
 
 tempdir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || exit 1