Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 2021 08:49:42 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Stefan Esser <se@freebsd.org>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, Hal Murray <hmurray@megapathdsl.net>
Subject:   Re: How does the time zone info get updated?
Message-ID:  <CANCZdfrsxY2-h4NmcnaC16Y_tdpQuxEjPCYgeMvdfqoz5AmzRw@mail.gmail.com>
In-Reply-To: <4e6721bc-e593-76b6-90f8-03d96486dc28@freebsd.org>
References:  <20210105075109.A412C40605C@ip-64-139-1-69.sjc.megapath.net> <4e6721bc-e593-76b6-90f8-03d96486dc28@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 5, 2021, 4:24 AM Stefan Esser <se@freebsd.org> wrote:

> Am 05.01.21 um 08:51 schrieb Hal Murray:> It gets distributed with the
> base packages, but I haven't figured out how to
> > keep it up to date.
> >
> > The info is distributed via IANA.
> >    https://www.iana.org/time-zones
> >
> > It gets updated several times a year.  There were 6 during 2020.  When is
> > unpredictable, often shortly after some government passes a law to change
> > something with short notice.
> >
> > I'd expect there to be some mechanism to track the updates but I haven't
> found
> >   it.
> >
> > The tz database includes the leap-seconds.list file.  That gets updated
> every
> > 6 months.  I'd like to get whatever FreeBSD does for time zones to
> include
> > that file so ntpd can use it without having to be concerned with keeping
> it up
> > to date.  That only works if the zone info is kept up to date.
>
> We have recently moved the calendar files out of -CURRENT and into a
> port, and I could imagine providing the timezone files in the same
> way (without removal from base, but from there only used as a fall-back
> if the port supplied files are not available).
>
> That way -STABLE users could update the definitions with base, but if
> you strictly follow a release, you could install the port and decouple
> timezone file updates from base updates ...
>
> I'd be willing to support this change and maintain the data files, but
> I can imagine that the current maintainer of those files in base might
> want to do it himself.
>

The calendar files aren't what he's talking about.

These are the timezone files he's asking about. Those get updated very
shortly after upstream releases.

But, three things. First, we update leapseconds.list as soon as it is
announce. Second, there is no way to get just these files updated: they
come for free with a rebuild or and update using the beta pkgbase, but
there is no automatic way to just get these. Third, there is an daily cron
job that fetches leap-seconds.list if you have ntpd enabled and you are on
the internet.

So no TZ update outside an os upgrade, but the leap seconds file updates at
the speed of NIST...

Warner

>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrsxY2-h4NmcnaC16Y_tdpQuxEjPCYgeMvdfqoz5AmzRw>