diff options
author | Zoltán Böszörményi <zboszor@gmail.com> | 2021-07-06 17:12:40 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-07 11:39:42 +0100 |
commit | 0c2abb3d2468cb83ee8f1290f137a312773ceb21 (patch) | |
tree | 6186037719aedb6b077cd96eb3e7dff7fa00ff0d /meta | |
parent | e10425cc7bf19e0602819480a7f326314f666a4d (diff) | |
download | poky-0c2abb3d2468cb83ee8f1290f137a312773ceb21.tar.gz |
tzdata: Allow controlling zoneinfo binary format
tzcode 2020b changed the default format from "-b fat" to "-b slim".
Allow external control for the binary format.
(From OE-Core rev: c9e8b716eb71d4526517825eacefb91ab2c1781c)
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/timezone/tzdata.bb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/recipes-extended/timezone/tzdata.bb b/meta/recipes-extended/timezone/tzdata.bb index f8443110d5..09145e1ed0 100644 --- a/meta/recipes-extended/timezone/tzdata.bb +++ b/meta/recipes-extended/timezone/tzdata.bb | |||
@@ -19,13 +19,17 @@ TZONES= "africa antarctica asia australasia europe northamerica southamerica \ | |||
19 | " | 19 | " |
20 | # pacificnew | 20 | # pacificnew |
21 | 21 | ||
22 | # "slim" is the default since 2020b | ||
23 | # "fat" is needed by e.g. MariaDB's mysql_tzinfo_to_sql | ||
24 | ZIC_FMT ?= "slim" | ||
25 | |||
22 | do_compile () { | 26 | do_compile () { |
23 | for zone in ${TZONES}; do \ | 27 | for zone in ${TZONES}; do \ |
24 | ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \ | 28 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \ |
25 | ${S}/${zone} ; \ | 29 | ${S}/${zone} ; \ |
26 | ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \ | 30 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \ |
27 | ${S}/${zone} ; \ | 31 | ${S}/${zone} ; \ |
28 | ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \ | 32 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \ |
29 | ${S}/${zone} ; \ | 33 | ${S}/${zone} ; \ |
30 | done | 34 | done |
31 | } | 35 | } |