Please make the build reproducible

Whilst working on the Reproducible Builds effort [0], we noticed that
miniupnpd could not be built reproducibly due to embedded timestamps.

 [0] https://reproducible-builds.org/

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
This commit is contained in:
Chris Lamb 2017-04-13 20:08:51 +01:00 committed by Thomas BERNARD
parent e6ed3c5b8a
commit 7c45f219e4
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ CONFIGFILE_FINAL="config.h"
CONFIGMACRO="CONFIG_H_INCLUDED"
MINIUPNPD_DATE=`date +"%Y%m%d"`
if [ -n "$SOURCE_DATE_EPOCH" ]; then
MINIUPNPD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +"%Y%m%d"`
fi
# Facility to syslog
LOG_MINIUPNPD="LOG_DAEMON"