summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-25 15:00:51 +0300
committerAlper Nebi Yasak <alpernebiyasak@gmail.com>2022-08-25 21:08:54 +0300
commitf679fbd359c584cf5da52724ff7884605520c8ef (patch)
tree83db0aca58630604e1f518a3da0f896b716f5508
parentfbbb5bc616b08a5cd747735b0612fd0f0046c7fe (diff)
u-boot-libre: Fix reproducability issue due to timezone
The checksums in tests/u-boot-libre.sha512 do not match the tarballs generated by this script when ran on a different timezone, e.g. UTC+3. Explicitly specify a timezone for the tar command that makes the tarballs match the checksums. Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
-rwxr-xr-xresources/scripts/build/release/u-boot-libre3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/scripts/build/release/u-boot-libre b/resources/scripts/build/release/u-boot-libre
index a871aab7..dc4f0c68 100755
--- a/resources/scripts/build/release/u-boot-libre
+++ b/resources/scripts/build/release/u-boot-libre
@@ -5,6 +5,7 @@
#
# Copyright (C) 2020,2021 Leah Rowe <info@minifree.org>
# Copyright (C) 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+# Copyright (C) 2022 Alper Nebi Yasak <alpernebiyasak@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -112,7 +113,7 @@ release_deblobbed_uboot()
--format=gnu \
--sort=name \
--owner=0 --group=0 --numeric-owner \
- --mtime="1970-01-01" \
+ --mtime="1970-01-01 UTC+01:00" \
lzip -9 --keep -vv "${tarball}"
xz -9 --keep -vv "${tarball}"