From owner-freebsd-arch@FreeBSD.ORG Mon Sep 22 09:23:16 2008 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 793A51065672 for ; Mon, 22 Sep 2008 09:23:16 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) by mx1.freebsd.org (Postfix) with ESMTP id 3A24D8FC1F for ; Mon, 22 Sep 2008 09:23:16 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail5out.barnet.com.au (Postfix, from userid 1001) id 62CA02218A7B; Mon, 22 Sep 2008 19:23:15 +1000 (EST) X-Viruscan-Id: <48D76403000171074A1C45@BarNet> Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail5auth.barnet.com.au", Issuer "*.barnet.com.au" (verified OK)) by mail5.barnet.com.au (Postfix) with ESMTP id 1E78221B5ECF; Mon, 22 Sep 2008 19:23:15 +1000 (EST) Received: from k7.mavetju (ppp121-44-67-122.lns10.syd6.internode.on.net [121.44.67.122]) by mail5auth.barnet.com.au (Postfix) with ESMTP id BA2392218A69; Mon, 22 Sep 2008 19:23:14 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id B61716BE; Mon, 22 Sep 2008 19:22:45 +1000 (EST) Date: Mon, 22 Sep 2008 19:22:45 +1000 From: Edwin Groothuis To: Peter Wemm Message-ID: <20080922092245.GA3233@k7.mavetju> References: <20080921092704.GC83347@k7.mavetju> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-arch@freebsd.org Subject: Re: tzcode update to 2008e X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Sep 2008 09:23:16 -0000 On Sun, Sep 21, 2008 at 10:32:16PM -0700, Peter Wemm wrote: > On Sun, Sep 21, 2008 at 2:27 AM, Edwin Groothuis wrote: > > Currently the tzcode in the FreeBSD operating system is from 2004. > > I have updated, on my development machine at home, src/lib/libc/stdtime > > and src/usr.sbin/zic to tzcode version 2008e. It still works. > > > > zic compiles the zonefiles into version 2 format, zdump properly > > shows the data. The strftime() tests with the date regression tests > > (bin/127514: [patch] regression tests for date(1)) work fine. > > > > The patch can be found at > > http://www.mavetju.org/~edwin/tzcode2008e-update.txt, it is against > > current. The MFCs for 7.x and 6.x should be relatively simple. > > > > I have done it on i386, so I'm happy to hear how other architectures > > are going with it. And then, euhm... yeah, what's next? > > > > Edwin > > What happens when you run old static linked binaries? Will they > understand 'version 2 format' zone files? If I understand the code and its behaviour correct (which I asusme I did, but feel free to correct me, the relevant data is tzload() in lib/libc/stdtime/localtime.c :-), the version two data is added to the end of the zonefile. A diff of the two shows that this is indeed happening. I have installed the new zonefile on an 7.0 OS and ran the regression tests and old zdump on it without problems. So the conclusion for me is that it is working fine with statically linked libraries. For 7.0 users, the patches can be found at http://www.mavetju.org/~edwin/tzcode2008e-update-7.txt. Edwin -- Edwin Groothuis edwin@freebsd.org http://www.mavetju.org