Skip to content

Commit

Permalink
Ensure TZ is UTC for all reproducible jdk-17 & jdk-19+ builds
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Sep 4, 2023
1 parent c9dce7f commit 4b063ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ configureReproducibleBuildParameter() {
# Enable reproducible builds implicitly with --with-source-date
if [ "${BUILD_CONFIG[RELEASE]}" == "true" ]
then
# TZ issue: https://github.com/adoptium/temurin-build/issues/3075
export TZ=UTC
# Use release date
addConfigureArg "--with-source-date=" "version"
else
Expand All @@ -120,6 +118,9 @@ configureReproducibleBuildParameter() {
addConfigureArg "--with-hotspot-build-time=" "'${BUILD_CONFIG[BUILD_TIMESTAMP]}'"
fi

# TZ issue: https://github.com/adoptium/temurin-build/issues/3075
export TZ=UTC

# disable CCache (remove --enable-ccache if exist)
addConfigureArg "--disable-ccache"
CONFIGURE_ARGS="${CONFIGURE_ARGS//--enable-ccache/}"
Expand Down

0 comments on commit 4b063ac

Please sign in to comment.