From: Bernhard M. Wiedemann Date: Thu, 5 Oct 2017 12:13:53 +0000 (+0200) Subject: configure: allow to override build date X-Git-Tag: 3.3-pre1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f54210db29db71fd84e0e880435840a9b76da3c;p=thirdparty%2Fchrony.git configure: allow to override build date in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. --- diff --git a/configure b/configure index 45eddf15..7b57992d 100755 --- a/configure +++ b/configure @@ -550,7 +550,11 @@ then split_seconds=$ntp_era_split split_days=0 else - split_seconds=`date '+%s'` + if [ "x$SOURCE_DATE_EPOCH" != "x" ]; then + split_seconds=$SOURCE_DATE_EPOCH + else + split_seconds=`date '+%s'` + fi if [ "x$split_seconds" = "x" ]; then echo "error: could not get current time, --with-ntp-era option is needed" exit 1