From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 21 18:54:16 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 041EC106566B for ; Tue, 21 Oct 2008 18:54:16 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao107.cox.net (eastrmmtao107.cox.net [68.230.240.59]) by mx1.freebsd.org (Postfix) with ESMTP id A16D68FC1A for ; Tue, 21 Oct 2008 18:54:15 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao107.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20081021185410.XFHG8977.eastrmmtao107.cox.net@eastrmimpo02.cox.net>; Tue, 21 Oct 2008 14:54:10 -0400 Received: from localhost ([68.103.35.214]) by eastrmimpo02.cox.net with bizsmtp id VWu91a0034dCcn002Wu9pQ; Tue, 21 Oct 2008 14:54:09 -0400 X-Authority-Analysis: v=1.0 c=1 a=l9Ycl1FpqDgA:10 a=Qn-DNt13878A:10 a=6I5d2MoRAAAA:8 a=yzPqVov1awBHCiSyj2cA:9 a=0_x-_wtuAAKL1ORFBzkA:7 a=L81HI4pZK30XZjWLS81SpmvtPHwA:4 a=3_5TX_vZOqAA:10 a=4vB-4DCPJfMA:10 a=SV7veod9ZcQA:10 a=LY0hPdMaydYA:10 X-CM-Score: 0.00 Date: Tue, 21 Oct 2008 13:54:11 -0500 To: kama From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <48FD5EB8.9030405@delphij.net> <16667467@ipt.ru> <20081021144454.P8907@ns1.as.pvp.se> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <20081021144454.P8907@ns1.as.pvp.se> User-Agent: Opera Mail/9.60 (Linux) Cc: freebsd-emulation@freebsd.org, d@delphij.net Subject: Re: Linux compat 2.6.16 reports time incorrect? 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: Tue, 21 Oct 2008 18:54:16 -0000 On Tue, 21 Oct 2008 07:53:01 -0500, kama wrote: > > > On Tue, 21 Oct 2008, Boris Samorodov wrote: > >> On Tue, 21 Oct 2008 01:10:56 -0500 Jeremy Messenger wrote: >> > On Mon, 20 Oct 2008 23:46:48 -0500, Xin LI >> wrote: >> >> > > -----BEGIN PGP SIGNED MESSAGE----- >> > > Hash: SHA1 >> > > >> > > 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? >> > > >> > > Looks like you don't have a proper /etc/localtime setting? I think >> > > tzsetup would help... >> >> > I don't think so. FreeBSD's orignal /bin/date reports correct, but >> > /compat/linux/bin/date reported different. I have downgraded Linux >> > compat back to 2.4 and linux_base-fc4 stuff, now I have this: >> >> > ---------------------------------- >> > # /bin/date >> > Tue Oct 21 01:03:20 CDT 2008 >> > # /compat/linux/bin/date >> > Tue Oct 21 01:03:23 CDT 2008 >> > ---------------------------------- >> >> > Which is correct. So.. Must be either a bug in Linux compat 2.6.16 or >> > linux_base-f8 or it's new that I have to configure in /compat/linux/* >> > for time stuff? >> > > Try: > cp /etc/localtime /usr/compat/linux/etc/ It won't work, because if you read Boris's ktrace and you will see it reads in /etc/localtime. So if I copy it to /compat/linux/etc/localtime and it won't makes any difference, since it's same file. :-) Cheers, Mezz > cp /etc/resolv.conf /usr/compat/linux/etc/ > > I used to install gentoo as base (Not through ports) and always needed to > copy these to make it work properly. > > /Bjorn -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org