From owner-freebsd-hackers@freebsd.org Tue Jan 5 19:51:52 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3AC694C7FAF for ; Tue, 5 Jan 2021 19:51:52 +0000 (UTC) (envelope-from se@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D9NRr13X6z3DZr; Tue, 5 Jan 2021 19:51:52 +0000 (UTC) (envelope-from se@freebsd.org) Received: from Stefans-MBP-WLAN.fritz.box (p200300cd5f110800e50b83eaa3464b63.dip0.t-ipconnect.de [IPv6:2003:cd:5f11:800:e50b:83ea:a346:4b63]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: se/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 8CCA52235; Tue, 5 Jan 2021 19:51:51 +0000 (UTC) (envelope-from se@freebsd.org) To: Warner Losh Cc: FreeBSD Hackers , Hal Murray References: <20210105075109.A412C40605C@ip-64-139-1-69.sjc.megapath.net> <4e6721bc-e593-76b6-90f8-03d96486dc28@freebsd.org> From: Stefan Esser Subject: Re: How does the time zone info get updated? Message-ID: <47c37f75-e082-7a34-7eb6-3ee2a4ade395@freebsd.org> Date: Tue, 5 Jan 2021 20:51:49 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AL4cD8n6iueTMTSMNWy8MB1DMuokSp0xN" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2021 19:51:52 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AL4cD8n6iueTMTSMNWy8MB1DMuokSp0xN Content-Type: multipart/mixed; boundary="8q6jLyrg1n30rU5AxHYsr1X8pPaupEqWG"; protected-headers="v1" From: Stefan Esser To: Warner Losh Cc: FreeBSD Hackers , Hal Murray Message-ID: <47c37f75-e082-7a34-7eb6-3ee2a4ade395@freebsd.org> Subject: Re: How does the time zone info get updated? References: <20210105075109.A412C40605C@ip-64-139-1-69.sjc.megapath.net> <4e6721bc-e593-76b6-90f8-03d96486dc28@freebsd.org> In-Reply-To: --8q6jLyrg1n30rU5AxHYsr1X8pPaupEqWG Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: quoted-printable Am 05.01.21 um 16:49 schrieb Warner Losh: >=20 >=20 > On Tue, Jan 5, 2021, 4:24 AM Stefan Esser > wrote: >=20 > 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.=C2=A0 There were 6 during = 2020.=20 > 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 > >=C2=A0 =C2=A0it. > > > > The tz database includes the leap-seconds.list file.=C2=A0 That = gets > updated every > > 6 months.=C2=A0 I'd like to get whatever FreeBSD does for time z= ones > to include > > that file so ntpd can use it without having to be concerned with= > keeping it up > > to date.=C2=A0 That only works if the zone info is kept up to da= te. >=20 > 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). >=20 > That way -STABLE users could update the definitions with base, but = if > you strictly follow a release, you could install the port and decou= ple > timezone file updates from base updates ... >=20 > 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 mi= ght > want to do it himself. >=20 >=20 > The calendar files aren't what he's talking about. Yes, I'm very well aware of that fact. > These are the timezone files he's asking about. Those get updated very = > shortly after upstream releases. Yes, and they are not considered critical security fixes and thus are not available as patches for those that install binary releases. By providing the timezone files by a port/package in the same way as the calendar data files (and preferring them if present), they could be kept up-to-date with other packages on system that run only release versions of FreeBSD. (And as written before, I do not suggest to remove the timezone files from base at all.) > But, three things. First, we update leapseconds.list as soon as it is=20 > announce. Second, there is no way to get just these files updated: they= =20 > 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=20 > cron job that fetches leap-seconds.list if you have ntpd enabled and yo= u=20 > are on the internet. Yes, if only the leap-seconds are required, this helps get the time synchronized - but is quite different from timezone file updates. > So no TZ update outside an os upgrade, but the leap seconds file update= s=20 > at the speed of NIST... The OP did not ask for leap-second updates but for timezone files, if I understand his mail correctly. Regards, STefan --8q6jLyrg1n30rU5AxHYsr1X8pPaupEqWG-- --AL4cD8n6iueTMTSMNWy8MB1DMuokSp0xN Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEo3HqZZwL7MgrcVMTR+u171r99UQFAl/0w1YFAwAAAAAACgkQR+u171r99USu 6wf+IlnrRsCwedIOoejRsLoiOdY0X3ThhfhDd1f5o1e+TJ6SpVfj8ClMVYKCWAZ2Ls8QhlIE65eN uZYj+vU/n1yBcdvt3F9SXHHKe6CQCHUrzx1wrjbeetK3TfqydkmkQhLQZe/dRplt+BEz9Cd6cqDn WJH4CH6NdCR1hCPbs25m/yb3LGs/7thoDEogAukEhEuq4X2aObfLJWgzpJxZnAMyMs5/6fc4yFdx AyRoeDWnc74Gg5OqB9h8EtyvRXPcOFKusrp/16n2Llqi6eb4J/DquUgHxyHPDWJnOdur46zygRQk rTmRI5sy2mbUTKOxos1fzBhkxZH7ux0EJH6GILMouw== =wwTv -----END PGP SIGNATURE----- --AL4cD8n6iueTMTSMNWy8MB1DMuokSp0xN--