Skip to content

Commit

Permalink
Merge pull request #2526 from akrherz/of2874_date_locale
Browse files Browse the repository at this point in the history
OF-2874: Set LC_TIME for date within RPM build
  • Loading branch information
akrherz authored Sep 23, 2024
2 parents f8be4a6 + 8d45957 commit 1777440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/rpm/build_rpms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1777440

Please sign in to comment.