* [Buildroot] How to use the TZ selection ?
@ 2014-05-22 19:01 Sagaert Johan
2014-05-22 19:22 ` Yann E. MORIN
0 siblings, 1 reply; 4+ messages in thread
From: Sagaert Johan @ 2014-05-22 19:01 UTC (permalink / raw)
To: buildroot
Hi
How is the TZ menu option intended to be used ?
In my older builds I had a file /etc/TZ, but using the TZ menu
options creates a symlink to a directory so /etc/TZ is a directory
Containing al timezone definitions.
This does not seem to work since uClibc expects a file /etc/TZ
Am I missing something ?
Sagaert Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] How to use the TZ selection ?
2014-05-22 19:01 [Buildroot] How to use the TZ selection ? Sagaert Johan
@ 2014-05-22 19:22 ` Yann E. MORIN
2014-05-22 19:52 ` Sagaert Johan
0 siblings, 1 reply; 4+ messages in thread
From: Yann E. MORIN @ 2014-05-22 19:22 UTC (permalink / raw)
To: buildroot
Sagaert, All,
On 2014-05-22 21:01 +0200, Sagaert Johan spake thusly:
> How is the TZ menu option intended to be used ?
> In my older builds I had a file /etc/TZ, but using the TZ menu
> options creates a symlink to a directory so /etc/TZ is a directory
> Containing al timezone definitions.
> This does not seem to work since uClibc expects a file /etc/TZ
> Am I missing something ?
I've just tried it here with:
BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="default"
BR2_TARGET_LOCALTIME="Europe/Paris"
And it gives me:
$ stat -c '%N' target/etc/TZ
'target/etc/TZ' -> '../usr/share/zoneinfo/uclibc/Europe/Paris'
$ file target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris
target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris: ASCII text
$ cat target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris
# Europe/Paris
CET-1CEST,M3.5.0,M10.5.0/3
So, this is indeed a symlink, but it points to a file, which contains a
valid uClibc timezone spec.
What is your BR2_TARGET_LOCALTIME set to? This should be set to a valid
location, usually a big city in an area.
The valid list is somewhere in the tzdata source tree (I'll leave as an
exercise to you to find where! ;-) )
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] How to use the TZ selection ?
2014-05-22 19:22 ` Yann E. MORIN
@ 2014-05-22 19:52 ` Sagaert Johan
2014-05-22 20:02 ` Yann E. MORIN
0 siblings, 1 reply; 4+ messages in thread
From: Sagaert Johan @ 2014-05-22 19:52 UTC (permalink / raw)
To: buildroot
Dear Yann;
I had entered BR2_TARGET_LOCALTIME="Europe" ,
It did not resolve "Europe" and maybe that's why it created a symlink to a directory instead.
Perhaps it might be better to yield a build error in case the timezone could not be found.
-----Oorspronkelijk bericht-----
Van: Yann E. MORIN [mailto:yann.morin.1998 at gmail.com] Namens Yann E. MORIN
Verzonden: donderdag 22 mei 2014 21:23
Aan: Sagaert Johan
CC: buildroot at busybox.net
Onderwerp: Re: How to use the TZ selection ?
Sagaert, All,
On 2014-05-22 21:01 +0200, Sagaert Johan spake thusly:
> How is the TZ menu option intended to be used ?
> In my older builds I had a file /etc/TZ, but using the TZ menu options
> creates a symlink to a directory so /etc/TZ is a directory Containing
> al timezone definitions.
> This does not seem to work since uClibc expects a file /etc/TZ Am I
> missing something ?
I've just tried it here with:
BR2_TARGET_TZ_INFO=y
BR2_TARGET_TZ_ZONELIST="default"
BR2_TARGET_LOCALTIME="Europe/Paris"
And it gives me:
$ stat -c '%N' target/etc/TZ
'target/etc/TZ' -> '../usr/share/zoneinfo/uclibc/Europe/Paris'
$ file target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris
target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris: ASCII text
$ cat target/etc/../usr/share/zoneinfo/uclibc/Europe/Paris
# Europe/Paris
CET-1CEST,M3.5.0,M10.5.0/3
So, this is indeed a symlink, but it points to a file, which contains a valid uClibc timezone spec.
What is your BR2_TARGET_LOCALTIME set to? This should be set to a valid location, usually a big city in an area.
The valid list is somewhere in the tzdata source tree (I'll leave as an exercise to you to find where! ;-) )
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics'
| conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] How to use the TZ selection ?
2014-05-22 19:52 ` Sagaert Johan
@ 2014-05-22 20:02 ` Yann E. MORIN
0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2014-05-22 20:02 UTC (permalink / raw)
To: buildroot
Sagaert, All,
[please, do *not* top-post, but do reply in-lined]
On 2014-05-22 21:52 +0200, Sagaert Johan spake thusly:
> I had entered BR2_TARGET_LOCALTIME="Europe" ,
Indeed, this is not a valide timezone location.
> It did not resolve "Europe" and maybe that's why it created a symlink
> to a directory instead. Perhaps it might be better to yield a build
> error in case the timezone could not be found.
Indeed, that's a good idea, I'll do that in a moment...
Thanks for the report! :-)
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-05-22 20:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-22 19:01 [Buildroot] How to use the TZ selection ? Sagaert Johan
2014-05-22 19:22 ` Yann E. MORIN
2014-05-22 19:52 ` Sagaert Johan
2014-05-22 20:02 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox