From owner-freebsd-emulation Tue Nov 25 01:28:20 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id BAA29132 for emulation-outgoing; Tue, 25 Nov 1997 01:28:20 -0800 (PST) (envelope-from owner-freebsd-emulation) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id BAA29120; Tue, 25 Nov 1997 01:28:14 -0800 (PST) (envelope-from bde@zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.6.9) id UAA29811; Tue, 25 Nov 1997 20:22:34 +1100 Date: Tue, 25 Nov 1997 20:22:34 +1100 From: Bruce Evans Message-Id: <199711250922.UAA29811@godzilla.zeta.org.au> To: bde@zeta.org.au, mike@smith.net.au Subject: Re: localtime under Linux-emu? Cc: emulation@FreeBSD.ORG, handy@sag.space.lockheed.com, wollman@FreeBSD.ORG Sender: owner-freebsd-emulation@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> >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