[chrony-dev] [PATCH] Allow to override build date |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-dev Archives
]
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.
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 45eddf1..1aafd0b 100755
--- a/configure
+++ b/configure
@@ -550,7 +550,7 @@ then
split_seconds=$ntp_era_split
split_days=0
else
- split_seconds=`date '+%s'`
+ split_seconds=${SOURCE_DATE_EPOCH:-`date '+%s'`}
if [ "x$split_seconds" = "x" ]; then
echo "error: could not get current time, --with-ntp-era option is needed"
exit 1
--
2.13.6
--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.