Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2021 00:05:17 +0100
From:      Stefan Esser <se@freebsd.org>
To:        Andriy Gapon <avg@FreeBSD.org>, Warner Losh <imp@bsdimp.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, Hal Murray <hmurray@megapathdsl.net>
Subject:   Re: How does the time zone info get updated?
Message-ID:  <b8fcfb94-5002-33dc-3187-5cc3c6d8576d@freebsd.org>
In-Reply-To: <358b8939-5ec9-e340-8b06-f362cae38fa0@FreeBSD.org>
References:  <20210105075109.A412C40605C@ip-64-139-1-69.sjc.megapath.net> <4e6721bc-e593-76b6-90f8-03d96486dc28@freebsd.org> <CANCZdfrsxY2-h4NmcnaC16Y_tdpQuxEjPCYgeMvdfqoz5AmzRw@mail.gmail.com> <47c37f75-e082-7a34-7eb6-3ee2a4ade395@freebsd.org> <CANCZdfqv670zxD2gb2q7HU%2B5D2wJeskuTDdmWPf5JyP_ZkLa6w@mail.gmail.com> <02ebd386-a7fd-1816-72b6-3211f4bc69fb@freebsd.org> <358b8939-5ec9-e340-8b06-f362cae38fa0@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--CKcm3bam4q4YcFtYoZSBNCyj9HhptbRQv
Content-Type: multipart/mixed; boundary="yTYoK9id1GobnYQRru9RJCmAPJ4fPGung";
 protected-headers="v1"
From: Stefan Esser <se@freebsd.org>
To: Andriy Gapon <avg@FreeBSD.org>, Warner Losh <imp@bsdimp.com>
Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>,
 Hal Murray <hmurray@megapathdsl.net>
Message-ID: <b8fcfb94-5002-33dc-3187-5cc3c6d8576d@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>
 <CANCZdfrsxY2-h4NmcnaC16Y_tdpQuxEjPCYgeMvdfqoz5AmzRw@mail.gmail.com>
 <47c37f75-e082-7a34-7eb6-3ee2a4ade395@freebsd.org>
 <CANCZdfqv670zxD2gb2q7HU+5D2wJeskuTDdmWPf5JyP_ZkLa6w@mail.gmail.com>
 <02ebd386-a7fd-1816-72b6-3211f4bc69fb@freebsd.org>
 <358b8939-5ec9-e340-8b06-f362cae38fa0@FreeBSD.org>
In-Reply-To: <358b8939-5ec9-e340-8b06-f362cae38fa0@FreeBSD.org>

--yTYoK9id1GobnYQRru9RJCmAPJ4fPGung
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

Am 05.01.21 um 23:30 schrieb Andriy Gapon:
> On 2021-01-06 00:21, Stefan Esser wrote:
>> Am 05.01.21 um 21:36 schrieb Warner Losh:
>>> On Tue, Jan 5, 2021 at 12:51 PM Stefan Esser <se@freebsd.org
>>> <mailto:se@freebsd.org>> wrote:
>> [...]
>>>  =C2=A0=C2=A0=C2=A0 Yes, if only the leap-seconds are required, this =
helps get the time
>>>  =C2=A0=C2=A0=C2=A0 synchronized - but is quite different from timezo=
ne file updates.
>>>
>>>  =C2=A0=C2=A0=C2=A0=C2=A0 > So no TZ update outside an os upgrade, bu=
t the leap seconds file
>>>  =C2=A0=C2=A0=C2=A0 updates
>>>  =C2=A0=C2=A0=C2=A0=C2=A0 > at the speed of NIST...
>>>
>>>  =C2=A0=C2=A0=C2=A0 The OP did not ask for leap-second updates but fo=
r timezone files,
>>>  =C2=A0=C2=A0=C2=A0 if I understand his mail correctly.
>>>
>>> Yes. But I know him from another list I'm on and knew the back story.=

>>> How does FreeBSD know about leap seconds and what mechanism does it
>>> use to keep up to date was the topic there.
>>
>> Well, then you answered the question sent to the other list,
>> which I have not seen and did not know about this context ...
>>
>> But Ed Maste has meanwhile answered the question he asked on
>> this list (as far as I understand it):
>>
>> -> "freebsd-update" applies the timezone changes and EN notes
>> are sent out to notify users of the availability of this update.
>>
>> And release users should follow-up on EN notes anyway and thus
>> should not miss the timezone updates.
>=20
> Also, another option (at least for me) is to replace timezone files fro=
m
> base with those from tzdata package.  Port / package updates are more
> flexible / frequent.

I had looked for a port but had not found it at first.

It is misc/zoneinfo and the zoneinfo package.

But this port is special since it installs files outside $PREFIX
and requires WITHOUT_ZONEINFO=3Dyes to be defined in src.conf.

I'd rather think we should have the port install files into
$PREFIX/share/zoneinfo and modify the file lookup to search at
that location first, before falling back to the base system
location.

This might require changes to zic, zdump, tzsetup, etcupdate,
and bsdconfig, which only expect a single path in TZDIR.

This might be considered worse than the port that overwrites
files in base.

In case that the alternate location for the port provided files
is considered, I'd be willing to prepare patches for review
that add the additional lookup in LOCALBASE.

Regards, STefan


--yTYoK9id1GobnYQRru9RJCmAPJ4fPGung--

--CKcm3bam4q4YcFtYoZSBNCyj9HhptbRQv
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/08K0FAwAAAAAACgkQR+u171r99UQC
GAgAhqEXjugYE8abXfKTyehRvR/FkYy1gGmfjeQdtFrh9dV47VdkD/3MLAgiv94BCEONfrCNJjTv
K14GnyeIdCRWEtU2OgE7EaZlUoUJsMBIa/0OVLsGRPC/5Zs1qLwceyPOYcGimVzCnS804TwNq0l6
dKSJnzlnYtZUZiL3+LYBW4HKSXqZBfhzxgsNB6GI9oWfTCiBuDL5h/mpOVyHq3KEeXIomPT1RF6M
zEjdqe9r3O5BBlfUhoBl4uNbIba0IZYiO590GIagZ5nDzyj8SzxTjgcHofWbh3R8/VpNdvA6t8Hw
pK67S9OWILKlYyhKm2YSKwF+9H/D8LXH/XGIwgKffA==
=cB0N
-----END PGP SIGNATURE-----

--CKcm3bam4q4YcFtYoZSBNCyj9HhptbRQv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b8fcfb94-5002-33dc-3187-5cc3c6d8576d>