Date: Mon, 28 Mar 2011 12:33:30 -0700 From: Devin Teske <dteske@vicor.com> To: Jason Helfman <jhelfman@e-e.com> Cc: hackers@freebsd.org, Maxim Khitrov <max@mxcrypt.com>, Doug Barton <dougb@freebsd.org>, dieterbsd@engineer.com, Garrett Cooper <gcooper@freebsd.org> Subject: Re: Keeping /etc/localtime up-to-date Message-ID: <1301340810.8488.0.camel@dt.vicor.com> In-Reply-To: <20110328184827.GE50654@eggman.experts-exchange.com> References: <8CDBB88B5271976-11D4-322B@web-mmc-d02.sysops.aol.com> <AANLkTim3Axh4FV8oCJSoBYHJEq4=XkhfNjPAxkH9sV-2@mail.gmail.com> <AANLkTimhCgzyhWNt8Z_tBRzYTQA1T0vTP6Jo_BTVg2m6@mail.gmail.com> <20110328184827.GE50654@eggman.experts-exchange.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2011-03-28 at 11:48 -0700, Jason Helfman wrote: > On Mon, Mar 28, 2011 at 02:22:01PM -0400, Maxim Khitrov thus spake: > >Same here, though I'd be happy to change this habit if mergemaster > >handled the updates for me. > > > This would be a good solution for source updates, but how would this work > for binary upgrades via freebsd-update, as mergemaster is not used for this > operation. How we solved this back in 2006 when Congress altered the times that Daylight Saving is observed, we pushed out an internal package that: ( Before Installation ) 1a. If /etc/localtime is a symbolic link, proceed to installation (no update needed). 1b. If /etc/localtime is a binary file,... 2. Compare /etc/localtime against each locale in /usr/share/zoneinfo 3. If you find a match, "remember" which timezone matched ( After Installation ) 4. If /etc/localtime was binary and matched some locale in /usr/share/zoneinfo, copy updated zoneinfo to /etc/localtime (overwriting the current file). -- Devin > > -jgh >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1301340810.8488.0.camel>