Skip to content
Permalink
Browse files

Fix Mac build error for reproducible builds

  • Loading branch information
canihavesomecoffee committed Feb 15, 2020
1 parent 588c4a8 commit 1577a458d79f2809223602e7df8557b4706e2151
Showing with 5 additions and 1 deletion.
  1. +1 −0 docs/CHANGES.TXT
  2. +4 −1 mac/pre-build.sh
@@ -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)
@@ -21,7 +21,10 @@ fi
if [ -z "$commit" ]; then
commit="Unknown"
fi
builddate=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d`
date_format="+%Y-%m-%d"
date_epoch="${SOURCE_DATE_EPOCH:-$(date +%s)}"
builddate=$(date -u -d "@$date_epoch" "$date_format" 2>/dev/null || date -u -r "$date_epoch" "$date_format" 2>/dev/null || date -u "$date_format")
#builddate=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d`
echo "Storing variables in file"
echo "Commit: $commit"
echo "Date: $builddate"

0 comments on commit 1577a45

Please sign in to comment.
You can’t perform that action at this time.