Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2021 00:39:43 +0100
From:      Stefan Esser <se@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>, Stefan Esser <se@freebsd.org>
Cc:        Andriy Gapon <avg@freebsd.org>, Warner Losh <imp@bsdimp.com>, FreeBSD Hackers <freebsd-hackers@freebsd.org>, Hal Murray <hmurray@megapathdsl.net>
Subject:   Re: How does the time zone info get updated?
Message-ID:  <0e0c7dbb-2036-ef7c-762a-f599cd8c18bc@freebsd.org>
In-Reply-To: <X/T0CTFoxO%2BRve4u@kib.kiev.ua>
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> <b8fcfb94-5002-33dc-3187-5cc3c6d8576d@freebsd.org> <X/T0CTFoxO%2BRve4u@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 06.01.21 um 00:19 schrieb Konstantin Belousov:
> On Wed, Jan 06, 2021 at 12:05:17AM +0100, Stefan Esser wrote:
>> 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.
> This really requires changes to libc, which implies changed behavior
> for all applications.

A library routine can easily implement the logic to lookup
the zone definitions in a specified sequence in several
places.

The biggest problem I see is that the /etc/localtime link
would point to either a definition in /usr/share/zoneinfo
or $LOCALBASE/share/zoneinfo and if a port did update the
files below $LOCALBASE when previously files from base
had been used, the link would need to be adjusted.

I do not consider such a change of a link in /etc by a
port to be acceptable behavior, though, and thus the port
that overwrites files in /usr/share/zoneinfo actually
appears to be the lesser evil ...

Regards, STefan

PS: Resent from freebsd mail address to have the message
be accepted by the list server ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0e0c7dbb-2036-ef7c-762a-f599cd8c18bc>