build: set TZ=UTC0

This prevents `make` from trying to regenerate `info` files which may
have odd timestamps when this isn't set. See
Homebrew/homebrew-core#87470.

This actually also addresses a build failure we've seen in CI (see
Homebrew/homebrew-core#87641).
This commit is contained in:
Carlo Cabrera 2021-10-22 19:22:35 +08:00
parent 6de841cd73
commit a89f873e8f
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -138,6 +138,10 @@ class Build
# https://reproducible-builds.org/docs/source-date-epoch/
ENV["SOURCE_DATE_EPOCH"] = formula.source_modified_time.to_i.to_s
# Avoid make getting confused about timestamps.
# https://github.com/Homebrew/homebrew-core/pull/87470
ENV["TZ"] = "UTC0"
formula.patch
if args.git?