Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 1997 14:00:10 +1030
From:      Mike Smith <mike@smith.net.au>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        mike@smith.net.au, emulation@FreeBSD.ORG, handy@sag.space.lockheed.com, wollman@FreeBSD.ORG
Subject:   Re: localtime under Linux-emu? 
Message-ID:  <199711260330.OAA02197@word.smith.net.au>
In-Reply-To: Your message of "Tue, 25 Nov 1997 20:22:34 %2B1100." <199711250922.UAA29811@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
> >> >I seem to remember that it was non-trivial to make Linux figure out what
> >> >time it was, does this still hold true?  
> >> 
> >> I think it has always been trivial:
> >> 
> >> 	mkdir /compat/linux/usr/lib/zoneinfo
> >> 	cp /etc/localtime /compat/linux/usr/lib/zoneinfo
> >
> >The correct for this uses a symlink in order to make the package 
> >timezone-portable.  I've done that already.
> 
> It is probably actually necessary to link to or copy the whole
> /usr/share/zoneinfo directory.  If you link to it then you can't
> have a symlink in the directory :-].

Heh.  They actually put 'localtime' *inside* that directory?  Bleugh.

How about a more correct solution:

	mkdir /compat/linux/usr/lib/zoneinfo
	ln -s /usr/share/zoneinfo/* /compat/linux/usr/lib/zoneinfo
	ln -sf /etc/localtime /compat/linux/usr/lib/localtime

?

> >> Linux `file' fails similarly.  It looks for "magic" only in
> >> /compat/linux/usr/lib and /usr/lib/.
> >
> >Does linux 'file' use the same format as the FreeBSD 'file' for "magic"?
> 
> Unless someone has broken it.

Fair enough.  I've made some modifications, but can't test them 
(properly).  I guess I'll just have to wait-and-see.

> >"full" is somewhat of a variable concept.  Beyond the above, do you 
> >have any suggestions for other items that would be valuable?
> 
> Don't bother unless a port of a Linux program actually uses a resource.
> This is most important for library resources.  Does locale stuff work?

I have no idea.  I wouldn't know a locale if it walked up and bit me on 
the ass.  8)

mike





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