Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2008 14:53:01 +0200 (CEST)
From:      kama <kama@pvp.se>
To:        Boris Samorodov <bsam@ipt.ru>
Cc:        Jeremy Messenger <mezz7@cox.net>, freebsd-emulation@freebsd.org, d@delphij.net
Subject:   Re: Linux compat 2.6.16 reports time incorrect?
Message-ID:  <20081021144454.P8907@ns1.as.pvp.se>
In-Reply-To: <16667467@ipt.ru>
References:  <op.ujcureb09aq2h7@localhost> <48FD5EB8.9030405@delphij.net> <op.ujc14i179aq2h7@localhost> <16667467@ipt.ru>

next in thread | previous in thread | raw e-mail | index | archive | help


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 <delphij@delphij.net> 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/
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081021144454.P8907>