openwrtv3/toolchain/musl
Felix Fietkau 7b4d039e00 musl: read the timezone from /etc/TZ
Currently the OpenWRT boot scripts write the timezone configuration to
/tmp/TZ, relying on the behaviour of uClibc that the timezone is read
from /etc/TZ if no TZ env variable is found.

This works because /etc/TZ is a symlink to /tmp/TZ.

Musl libc however only reads the timezone from the TZ env variable and
if it doesn't find it or it's empty, it will look for a zoneinfo
file, that doesn't exist.

So in musl builds no timezone is ever set.

This patch fixes the issue by having musl libc behave like uClibc: if no
TZ env variable is found it will try to load it from /etc/TZ.

Signed-off-by: Gianluca Anzolin <gianluca at sottospazio.it>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46069
2015-06-19 17:48:11 +00:00
..
headers add preliminary support for musl 2012-11-23 20:02:29 +00:00
include musl: add sgidefs.h 2014-06-29 22:25:51 +00:00
patches musl: read the timezone from /etc/TZ 2015-06-19 17:48:11 +00:00
common.mk musl: update to version 1.1.10+git 2015-06-16 11:55:23 +00:00
Config.in musl: update to version 1.1.1 2014-05-21 14:09:58 +00:00
Config.version musl: update to version 1.1.10+git 2015-06-16 11:55:23 +00:00
Makefile musl: install a few extra headers to improve compatibility with various packages 2014-06-09 13:47:36 +00:00