From owner-freebsd-emulation@FreeBSD.ORG Wed Oct 29 18:00:29 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE7D11065688; Wed, 29 Oct 2008 18:00:29 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao104.cox.net (eastrmmtao104.cox.net [68.230.240.46]) by mx1.freebsd.org (Postfix) with ESMTP id 918708FC1D; Wed, 29 Oct 2008 18:00:29 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao104.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081029180030.UICA2096.eastrmmtao104.cox.net@eastrmimpo02.cox.net>; Wed, 29 Oct 2008 14:00:30 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo02.cox.net with bizsmtp id Yi0U1a00J4dCcn002i0Ujg; Wed, 29 Oct 2008 14:00:29 -0400 X-Authority-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=GGAm8XnlRLnxvhuj6PsA:9 a=hUXUI0bjIiu4KP5j6L8A:7 a=v3SvZM5GK8DrUmHfI66HW41IMPYA:4 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Wed, 29 Oct 2008 12:00:11 -0600 To: "Boris Samorodov" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <50484995@ipt.ru> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <50484995@ipt.ru> User-Agent: Opera Mail/9.61 (Linux) Cc: freebsd-emulation@freebsd.org, edwin@freebsd.org Subject: Re: Kind of solved.. X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 18:00:30 -0000 On Tue, 28 Oct 2008 13:43:40 -0600, Boris Samorodov wrote: > On Tue, 21 Oct 2008 14:48:41 -0500 Jeremy Messenger wrote: >> On Mon, 20 Oct 2008 22:31:52 -0500, Jeremy Messenger >> wrote: > >> > Hello folks, >> > >> > I have updated RELENG_7 recently, and switched to 2.6.26 and f8 at >> > the same time. I am not sure which I am supposed to blame on. :-) >> > Anyway, now my linux-opera M2 (mail) client reports time >> > incorrect. So I have checked with date(1) and it does indeed report >> > different. >> > >> > ---------------------------------- >> > # /bin/date >> > Mon Oct 20 22:28:35 CDT 2008 >> > # /compat/linux/bin/date >> > Tue Oct 21 03:28:38 UTC 2008 >> > ---------------------------------- >> > >> > I do not remember for have to configure the date correct for Linux >> > 2.4 stuff before I update RELENG_7 and switched to newer 2.6.16 >> > stuff. I am wondering if I have to do that now for configure time >> > or it's not normal? > >> I have downloaded tzdata-2008h-1.fc8.noarch.rpm and extracted it. Then >> copy it in /compat/linux/etc/localtime and now it works correct. Only >> a few seconds difference, but does not matter to me. > > Yep. Current FreeBSD /etc/localtime file has: > ----- > moosa% hd -n 6 /etc/localtime.current > 00000000 54 5a 69 66 00 00 |TZif..| > 00000006 > ----- > > The fifth byte is "0". While Fedora expects: > ----- > moosa% hd -n 6 /etc/localtime.newversion > 00000000 54 5a 69 66 32 00 |TZif2.| > 00000006 > ----- > > The fifth byte is "2". > >> ---------------------------------- >> # /bin/date >> Tue Oct 21 14:33:55 CDT 2008 >> # /compat/linux/bin/date >> Tue Oct 21 19:33:59 UTC 2008 >> # cp usr/share/zoneinfo/right/America/Cancun /compat/linux/etc/localtime >> # /compat/linux/bin/date >> Tue Oct 21 14:33:43 CDT 2008 >> ---------------------------------- > >> Maybe edwin's plan of update tzcode to 2008e might help with this >> issue? I am hoping that his update tzcode can help linux_base-f8 to >> have correct time without have to use tzdata-2008h-1.fc8.noarch.rpm. > >> http://lists.freebsd.org/pipermail/freebsd-arch/2008-September/008599.html >> (patches included) > >> BTW: Add CC'ing to edwin to see if he thinks update tzcode can helps >> with this issue. > > It definitely does: I patched my 8-amd64-current with edwin's patches, > recompiled, reinstalled and copied a new zonefile to /etc/localtime: > ----- > moosa% LANG=C date; /compat/linux/bin/date > Tue Oct 28 22:38:24 MSK 2008 > Tue Oct 28 22:38:24 MSK 2008 > ----- Nice, thanks for test edwin's patch. Hey edwin, when are you going to put newer tzcode in -CURRENT? I do realized about that it won't be MFC into RELENG_7 soon, but should be possible later? or never? If never, then I can live with tzdata-2008h-1.fc8.noarch.rpm until update to 8.x. Cheers, Mezz >> > BTW: Please add me in CC, thanks! >> > >> > Cheers, >> > Mezz > > WBR -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org