From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 27 22:27:33 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 899F5106564A for ; Sun, 27 Mar 2011 22:27:33 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (m209-73.dsl.rawbw.com [198.144.209.73]) by mx1.freebsd.org (Postfix) with ESMTP id 444B38FC18 for ; Sun, 27 Mar 2011 22:27:32 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.4/8.14.4) with ESMTP id p2RMRWUg002691; Sun, 27 Mar 2011 15:27:32 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.4/8.14.4/Submit) id p2RMRWo6002690; Sun, 27 Mar 2011 15:27:32 -0700 (PDT) (envelope-from david) Date: Sun, 27 Mar 2011 15:27:32 -0700 From: David Wolfskill To: Doug Barton Message-ID: <20110327222732.GA1514@albert.catwhisker.org> References: <20110327153835.GA87420@albert.catwhisker.org> <4D8F9E9A.50604@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <4D8F9E9A.50604@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: hackers@FreeBSD.org Subject: Re: Keeping /etc/localtime up-to-date X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2011 22:27:33 -0000 --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 27, 2011 at 01:31:22PM -0700, Doug Barton wrote: > On 03/27/2011 08:38, David Wolfskill wrote: > >It would (in principle) be possible to teach mergemaster(8) how to > >do this (possibly by including a cookie in ~/.mergemasterrc or > >/etc/mergemaster.rc to tell it what the "reference" zoneinfo pathname > >is), but this type of approach seems sufficiently different from > >(the bulk of?) what mergemaster does currently that I'm unconvinced > >that this is reasonable, let alone ideal. >=20 > Yeah, I wouldn't be enthusiastic about this. :) Indeed. > >So it seems to me that requirements would be: > >* The content of /etc/localtime must provide the appropriate > > "zoneinfo" information, even when/usr/share/zoneinfo/* has been > > modified (or shortly thereafter, in concert with "make installworld"). >=20 > This is more along the lines of something that would be easy to work=20 > with in mergemaster. Hmm... OK.... > If I can tell what file in /usr/share/zoneinfo to=20 > compare /etc/localtime to (ideally with fully path), I'm happy to=20 > provide a mechanism in mergemaster to make sure it stays up to date. Well, that's the function that the (hypothetical) "cookie" in ~/.mergemasterrc or /etc/mergemaster.rc was intended to to provide. It could be a simple shell variable, for example. There are other ways to do it, of course -- e.g., the first time the utility is run, it could actually ask, but then cache the information in some place so it could look there first (and if it finds a cached answer, avoid asking again unless it's told to ignore the cache -- as might be reasonable if the machine is moved to a different time zone. But I tend to favor simplicity. :-) Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk2PudMACgkQmprOCmdXAD2i3QCcDfC736kq1X49qVIpOCQypXru AjoAn3kPPHFQzpiWTbCF9DFfXLWsunLq =8Qkz -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--