summaryrefslogtreecommitdiffstats
path: root/meta/classes/reproducible_build_simple.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-13 17:08:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-18 18:57:06 +0100
commit606ff37690acee1fac786ac425d3088b7a4aec02 (patch)
tree6660d4e08b80a2bf14bcb4542db293b2faa1c752 /meta/classes/reproducible_build_simple.bbclass
parent60589ead81b385063db10d133fb023d28e153848 (diff)
downloadpoky-606ff37690acee1fac786ac425d3088b7a4aec02.tar.gz
bitbake.conf: Set and export TZ envvar to UTC
We just ran into an issue where tar failed to build on one server setup but built everywhere else just fine. It was running makeinfo to regenerate some docs files and makeinfo was too old for the host it was running on. There was no dependency on makeinfo-native as it was not meant to be regenerating the docs. It was being regenerated as a date from a timestamp used in the docs was different in Asian timezones than in the other timezones our builds were being tested in. I added an entry to https://wiki.yoctoproject.org/wiki/TipsAndTricks/ about how this was debugged. As such, lets default to setting and exporting TZ to 'UTC' as was already pioneered by the reproducibile builds work. This makes the builds deterministic. [YOCTO #12665] (From OE-Core rev: 2a90ae7a3286724ff9e3615c4dbf56038f703810) (From OE-Core rev: e31f31f81efe4b60938b724bece2a03c7c74a68d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/reproducible_build_simple.bbclass')
-rw-r--r--meta/classes/reproducible_build_simple.bbclass1
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/classes/reproducible_build_simple.bbclass b/meta/classes/reproducible_build_simple.bbclass
index dd11cd98d6..8a60deef3d 100644
--- a/meta/classes/reproducible_build_simple.bbclass
+++ b/meta/classes/reproducible_build_simple.bbclass
@@ -4,7 +4,6 @@ BUILD_REPRODUCIBLE_BINARIES = "1"
4 4
5export PYTHONHASHSEED = "0" 5export PYTHONHASHSEED = "0"
6export PERL_HASH_SEED = "0" 6export PERL_HASH_SEED = "0"
7export TZ = 'UTC'
8export SOURCE_DATE_EPOCH ??= "1520598896" 7export SOURCE_DATE_EPOCH ??= "1520598896"
9 8
10REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896" 9REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896"