From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 28 23:00:52 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DD0C106567A for ; Mon, 28 Mar 2011 23:00:52 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id E63FF8FC19 for ; Mon, 28 Mar 2011 23:00:51 +0000 (UTC) Received: by iyj12 with SMTP id 12so5178692iyj.13 for ; Mon, 28 Mar 2011 16:00:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.74.195 with SMTP id x3mr7721087icj.79.1301351914209; Mon, 28 Mar 2011 15:38:34 -0700 (PDT) Received: by 10.231.60.10 with HTTP; Mon, 28 Mar 2011 15:38:34 -0700 (PDT) In-Reply-To: <4D910084.1010304@FreeBSD.org> References: <4D910084.1010304@FreeBSD.org> Date: Tue, 29 Mar 2011 00:38:34 +0200 Message-ID: From: Olivier Smedts To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Using mergemaster to keep /etc/localtime updated 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: Mon, 28 Mar 2011 23:00:52 -0000 2011/3/28 Doug Barton : > I'm starting a new thread since while the previous one contained a lot of > good information it was starting to get a big fragmented, and as someone > pointed out mergemaster is not a general solution so I want to focus on t= he > area that I'm actually responsible for. :) > > Having read everything in the thread (and thanks to all who contributed, > btw) my current plan is to add some code to the end (in the section that > deals with things like running cap_mkdb if you update login.conf) to do t= he > following. Please let me know if this sounds reasonable, or if I'm missin= g > something: > > 1. If /var/db/zoneinfo exists, check to see if /etc/localtime is the same= as > /usr/share/`cat /var/db/zoneinfo` and if not, prompt the user to run > tzsetup. > 2. If /var/db/zoneinfo does not exist, and /etc/localtime is not a symlink to a tz file ? > check to see if kern.osreldate is > after the date that the code was added, and if so, prompt the user to run > tzsetup. So how would mergemaster behave after a fresh "make installworld distribution" in an empty DESTDIR ? Isn't it supposed to do nothing in this case, because all should already be up-to-date ? > 3. If /var/db/zoneinfo does not exist, and the new code has not been adde= d > yet, attempt to determine the right answer, and create a /var/db/zoneinfo > file. (Note, I do not look forward to writing that bit.) :) > > > Sound reasonable? > > Doug > > -- > > =A0 =A0 =A0 =A0Nothin' ever doesn't change, but nothin' changes much. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- OK Go > > =A0 =A0 =A0 =A0Breadth of IT experience, and depth of knowledge in the DN= S. > =A0 =A0 =A0 =A0Yours for the right price. =A0:) =A0http://SupersetSolutio= ns.com/ > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > --=20 Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 ASCII ribbon campaign ( ) e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \ =A0 "Il y a seulement 10 sortes de gens dans le monde : =A0 ceux qui comprennent le binaire, =A0 et ceux qui ne le comprennent pas."