NTP 4.2.8p3 uses __DATE__ and __TIME__ and a parses it in ntpcal_get_build_date(). This prevents reproducible build. Proposed change would be https://reviews.freebsd.org/D3122 which uses MKREPRO_DATE and MKREPRO_TIME to give reproducible results.
A commit references this bug: Author: delphij Date: Sun Jul 19 19:23:39 UTC 2015 New revision: 285701 URL: https://svnweb.freebsd.org/changeset/base/285701 Log: Use fixed date/time (the time choosen was the time the import was done on -HEAD) in libntp so we can make reproducible build. PR: bin/201661 Reviewed by: gjb, cy, roberto MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D3122 Changes: head/usr.sbin/ntp/config.h
MFC reminder.
A commit references this bug: Author: delphij Date: Fri Jul 24 19:51:52 UTC 2015 New revision: 285856 URL: https://svnweb.freebsd.org/changeset/base/285856 Log: MFC r285701: Use fixed date/time (the time choosen was the time the import was done on -HEAD) in libntp so we can make reproducible build. PR: bin/201661 Differential Revision: https://reviews.freebsd.org/D3122 While I'm there also remove libmd from linkage as reported in bin/201738 PR: bin/201738 Submitted by: John Marshall Changes: _U stable/10/ stable/10/usr.sbin/ntp/config.h stable/10/usr.sbin/ntp/ntpd/Makefile
A commit references this bug: Author: delphij Date: Fri Jul 24 22:08:58 UTC 2015 New revision: 285861 URL: https://svnweb.freebsd.org/changeset/base/285861 Log: MFS r285856: MFC r285701: Use fixed date/time (the time choosen was the time the import was done on -HEAD) in libntp so we can make reproducible build. PR: bin/201661 Differential Revision: https://reviews.freebsd.org/D3122 While I'm there also remove libmd from linkage as reported in bin/201738 PR: bin/201738 Submitted by: John Marshall Approved by: re (gjb) Changes: _U releng/10.2/ releng/10.2/usr.sbin/ntp/config.h releng/10.2/usr.sbin/ntp/ntpd/Makefile
Applied to all needed branches.