leapsecond file

Andreas Ott andreas at naund.org
Wed Aug 24 21:21:43 UTC 2016


Hi,
On Wed, Aug 24, 2016 at 02:21:14PM -0600, Ian Lepore wrote:
> It looks like part of the problem here is that the Last Update value IS
> changing when the leap data itself is not.  Our commit logs say the
> files have been obtained from USNO.  Either USNO is violating the
> standard in their files, or the value is getting modified before it's
> commited to the freebsd repos.  (I'm adding Cy to the CC list, since he
> committed them.)

The beauty of standards is, that there are too many to chose from. These
seem to be the three top sources of the file (lmgtfy), and while they
might agree in the actual leapsecond data, the meta information in it
is very different.

fetch -m --no-passive ftp://tycho.usno.navy.mil/pub/ntp/leap-seconds.list
fetch https://www.ietf.org/timezones/data/leap-seconds.list
fetch https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list

[root at mon /tmp]# ls -la *list
-rw-r--r--  1 root  wheel  10384 Mar 14 18:33 ietf-leap-seconds.list
-rw-r--r--  1 root  wheel   8795 Jul  6 14:13 navy-leap-seconds.list
-rw-r--r--  1 root  wheel   4920 Jul  6 14:37 obspm-leap-seconds.list
[root at mon /tmp]# wc *list
     249    1960   10384 ietf-leap-seconds.list
     220    1657    8795 navy-leap-seconds.list
     117     881    4920 obspm-leap-seconds.list


[root at mon /tmp]# egrep -e Update\|expires\|^'#\$'\|^'#@' *list
ietf-leap-seconds.list:#        Last Update of leap second values:   5 January 2015
ietf-leap-seconds.list:#$        3629404800
ietf-leap-seconds.list:#        Updated through IERS Bulletin C51
ietf-leap-seconds.list:#        File expires on:  28 December 2016
ietf-leap-seconds.list:#@       3691872000

navy-leap-seconds.list:#        Last Update of leap second values:   6 Jul 2016
navy-leap-seconds.list:#$        3676752000
navy-leap-seconds.list:#        Updated through IERS Bulletin C 52
navy-leap-seconds.list:#        File expires on:  1 Jun 2017
navy-leap-seconds.list:#@       3705264000

obspm-leap-seconds.list:#       Updated through IERS Bulletin C (ftp://hpiers.obspm.fr/iers/bul/bulc/bulletinc.dat)
obspm-leap-seconds.list:#$      3676752000 
obspm-leap-seconds.list:#       File expires on 28 June 2017
obspm-leap-seconds.list:#@      3707596800
[root at mon /tmp]#


For now, the following workaround did get me a current file
that ended up in /var/db/ after being downloaded to /var/run/ .
IMHO, I have bought myself some time that this either gets fixed
upstream, or until I need to keep my own site copy of the file
on a web server that I'm responsible to update every 5.95 months.

[root at mon /tmp]# grep leap /etc/rc.conf
ntp_leapfile_fetch_opts="-m --no-passive"
ntp_leapfile_sources="ftp://tycho.usno.navy.mil/pub/ntp/leap-seconds.list"
[root at mon /tmp]#

-andreas
-- 
Andreas Ott   K6OTT   +1.408.431.8727   andreas at naund.org


More information about the freebsd-stable mailing list