Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 1997 20:22:34 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, mike@smith.net.au
Cc:        emulation@FreeBSD.ORG, handy@sag.space.lockheed.com, wollman@FreeBSD.ORG
Subject:   Re: localtime under Linux-emu?
Message-ID:  <199711250922.UAA29811@godzilla.zeta.org.au>

next 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 :-].

>> 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.

>>  Linux editors tend to work
>> because FreeBSD has a backwards compatibility link /etc/termcap ->
>> /usr/share/misc/termcap.  Things should work better if /compat/linux
>> contains a full Linux tree.
>
>"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?

Bruce




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