[FIX] Fix Mac build error for reproducible builds (#1232)

* Fix Mac build error for reproducible builds
* Shorten solution with vr8hub's suggestion

Closes #1230
This commit is contained in:
Willem
2020-02-16 01:08:21 +01:00
committed by GitHub
parent 588c4a8187
commit 1b17a04b25
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
- Fix: A few (minor) memory leaks around the code.
- Fix: General code clean up / reformatting
- Fix: Fix multiple definitions with new -fno-common default in GCC 10
- Fix: Mac now builds reproducibly again without errors on the date command (#1230)
- Doc: Updated ccextractor.cnf.sample.
0.88 (2019-05-21)

View File

@@ -21,7 +21,7 @@ fi
if [ -z "$commit" ]; then
commit="Unknown"
fi
builddate=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d`
builddate=`date -j -u -r "${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d`
echo "Storing variables in file"
echo "Commit: $commit"
echo "Date: $builddate"