From 8d45957d512581fdf1dfb2f017f6b4cf731ccdfa Mon Sep 17 00:00:00 2001 From: akrherz Date: Wed, 18 Sep 2024 08:29:31 -0500 Subject: [PATCH] OF-2874: Set LC_TIME for date within RPM build --- build/rpm/build_rpms.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/rpm/build_rpms.sh b/build/rpm/build_rpms.sh index 9ad0bcb939..82c0b0b315 100644 --- a/build/rpm/build_rpms.sh +++ b/build/rpm/build_rpms.sh @@ -17,7 +17,8 @@ mkdir -p ${RPMBUILD_HOME}/SRPMS mkdir -p ${RPMBUILD_HOME}/RPMS # Define some variables -export RPM_BUILDDATE=$(date +'%a %b %d %Y') +# Ensure that date runs with English locale that rpmbuild requires +export RPM_BUILDDATE=$(LC_TIME=en_US.UTF-8 date +'%a %b %d %Y') export OPENFIRE_REPOVERSION=$(git rev-parse --short HEAD) export OPENFIRE_FULLVERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) export OPENFIRE_VERSION=$(echo "${OPENFIRE_FULLVERSION}" | cut -d'-' -f1)