From owner-freebsd-emulation Tue Nov 25 19:35:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA10140 for emulation-outgoing; Tue, 25 Nov 1997 19:35:04 -0800 (PST) (envelope-from owner-freebsd-emulation) Received: from word.smith.net.au (vh1.gsoft.com.au [203.38.152.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA10089; Tue, 25 Nov 1997 19:34:53 -0800 (PST) (envelope-from mike@word.smith.net.au) Received: from word (localhost [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id OAA02197; Wed, 26 Nov 1997 14:00:10 +1030 (CST) Message-Id: <199711260330.OAA02197@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: Bruce Evans cc: mike@smith.net.au, emulation@FreeBSD.ORG, handy@sag.space.lockheed.com, wollman@FreeBSD.ORG Subject: Re: localtime under Linux-emu? In-reply-to: Your message of "Tue, 25 Nov 1997 20:22:34 +1100." <199711250922.UAA29811@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 26 Nov 1997 14:00:10 +1030 From: Mike Smith 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 :-]. 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