system: zoneinfo usable by musl, too
PATCH 1/1 system: zoneinfo usable by musl, too
Currently, we limit installing zoneinfo to non-musl toolchain, by lack of knowledge on how it would work on musl.
Turns out that musl uses the same zoneinfo format as glibc does.
Make it possible to install the TZ info whatever the C library; for musl, use tzdata as for glibc.
Thanks Rich! ;-)
---
Marc, with this patch, your libical change will just need to be a select on BR2_TARGET_TZ_INFO.
--- system/Config.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
system/Config.in +1 -2
@@ -418,9 +418,8 @@ config BR2_GENERATE_LOCALE config BR2_TARGET_TZ_INFO bool "Install timezone info" - # No timezone for musl; only for uClibc or glibc. - depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_UCLIBC select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC + select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_MUSL select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC help Say 'y' here to install timezone info.
Signature · 1 line
2.7.4
Thomas Petazzoni
AppliedPATCH 1/1 system: zoneinfo usable by musl, too
Hello,
Quoted 14 lines · Yann E. MORIN
Currently, we limit installing zoneinfo to non-musl toolchain, by lack of knowledge on how it would work on musl.
Turns out that musl uses the same zoneinfo format as glibc does.
Make it possible to install the TZ info whatever the C library; for musl, use tzdata as for glibc.
Thanks Rich! ;-)
Signed-off-by "Yann E. MORIN" <[email protected]>Cc Rich Felker <[email protected]>Cc Marc Khouri <[email protected]>
Quoted 6 lines
---
Marc, with this patch, your libical change will just need to be a select onBR2_TARGET_TZ_INFO.--- system/Config.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com