summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Fan <fancp2007@gmail.com>2015-07-31 14:25:35 +0800
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-08-06 09:12:18 +0200
commite6884604ea88316ffa47ff2c1d57604eb9146ba3 (patch)
treebd227d530bb6a38f372e20dbea5daff9e0783d3b
parent7df8f06d0864dd90d0c79b0215089cd25f13ff13 (diff)
downloadbuildroot-e6884604ea88316ffa47ff2c1d57604eb9146ba3.tar.gz
buildroot-e6884604ea88316ffa47ff2c1d57604eb9146ba3.zip
package/tz: fix incorrect timezone setting for uclibc
According to the doc file from <uclibc-src>/docs/ Glibc_vs_uClibc_Differences.txt, the uclibc library read the TZ environment variable, or the /etc/TZ file; the /etc/TZ file should be a single line, ending with a newline, containing the TZ setting. For example: echo CST6CDT > /etc/TZ Whereas the tzdump cmd would output two lines like this: # Asia/Shanghai CST-8 This make the uclibc could not read the correct TZ setting, therefore e.g. the 'busybox date' cmd always show the UTC timezone. This fix remove the redundant first line from the tzdump output. Signed-off-by: Scott Fan <fancp2007@gmail.com> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/tz/tz.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/tz/tz.mk b/package/tz/tz.mk
index 349d73f7f2..7a756eb5d8 100644
--- a/package/tz/tz.mk
+++ b/package/tz/tz.mk
@@ -14,7 +14,7 @@ define TZ_BUILD_CMDS
(cd $(HOST_DIR)/usr/share/zoneinfo/posix/; \
for i in $$(find . -type f); do \
mkdir -p $(@D)/output/$$(dirname $$i); \
- $(TZDUMP) -p . -q $${i#./} > $(@D)/output/$$i; \
+ $(TZDUMP) -p . -q $${i#./} | sed '1d' > $(@D)/output/$$i; \
done \
)
endef
OpenPOWER on IntegriCloud