Skip to content

Commit bf0c089

Browse files
authored
Force TZ=UTC for reproducible release builds (#3090)
* Force TZ=UTC for reproducible release builds Signed-off-by: Stewart X Addison <[email protected]> * fix spacing Signed-off-by: Stewart X Addison <[email protected]> Signed-off-by: Stewart X Addison <[email protected]>
1 parent 642bbbf commit bf0c089

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sbin/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ configureReproducibleBuildParameter() {
9898
# Enable reproducible builds implicitly with --with-source-date
9999
if [ "${BUILD_CONFIG[RELEASE]}" == "true" ]
100100
then
101+
# TZ issue: https://github.com/adoptium/temurin-build/issues/3075
102+
export TZ=UTC
101103
# Use release date and disable CCache( remove --enable-ccache if exist)
102104
addConfigureArg "--with-source-date=version" " --disable-ccache"
103105
CONFIGURE_ARGS="${CONFIGURE_ARGS//--enable-ccache/}"

0 commit comments

Comments
 (0)