[PATCH] optional /etc/localtime support

Steve Bennett steveb at workware.net.au
Wed Apr 28 22:41:13 UTC 2010


On 29/04/2010, at 4:24 AM, Denys Vlasenko wrote:

> Hi.
> 
> Lengthly debugging of mysterious
> "Superblock last mount time is in the future" problem
> finally uncovered a problem with mixed glibc/uclibc
> environment in a distro installer.
> 
> Teaching installer to maintain /etc/localtime
> AND /etc/TZ would be impractical. More likely they
> just drop uclibc instead. We don't want that, right? ;)
> 
> This patch teaches uclibc to use /etc/localtime.
> This is possible since recent TZif2 file format contains
> TZ-like ASCII string at the end.
> 
> 1.patch contains optional /etc/localtime support.
> Run-tested.
> 
> 2.patch is just a code readability massage on top of it.
> 
> Please review.
> 
> -- 
> vda
> <1.patch><2.patch>_______________________________________________
> uClibc mailing list
> uClibc at uclibc.org
> http://lists.busybox.net/mailman/listinfo/uclibc

Brilliant. Someone was asking about a uClibc timezone list
a short while ago. Now it is a trivial matter to extract
these from the TZif2 files.

Attached is a naïve extraction.

Steve
--
µWeb: Embedded Web Framework - http://uweb.workware.net.au/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix.zonelist
Type: application/octet-stream
Size: 57298 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20100429/68e565c6/attachment-0001.obj>


More information about the uClibc mailing list