All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Steve Sakoman" <steve@sakoman.com>
To: openembedded-core@lists.openembedded.org
Subject: [OE-core][dunfell 10/12] tzdata: Allow controlling zoneinfo binary format
Date: Mon, 12 Jul 2021 05:32:03 -1000	[thread overview]
Message-ID: <1e9393cae53b4de260ec951e7855d74f206730d0.1626103708.git.steve@sakoman.com> (raw)
In-Reply-To: <cover.1626103708.git.steve@sakoman.com>

From: Zoltán Böszörményi <zboszor@gmail.com>

tzcode 2020b changed the default format from "-b fat" to "-b slim".
Allow external control for the binary format.

Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit c9e8b716eb71d4526517825eacefb91ab2c1781c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
 meta/recipes-extended/timezone/tzdata.bb | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/timezone/tzdata.bb b/meta/recipes-extended/timezone/tzdata.bb
index e6a0655afe..cc6206ac70 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  \
         "
 # pacificnew 
 
+# "slim" is the default since 2020b
+# "fat" is needed by e.g. MariaDB's mysql_tzinfo_to_sql
+ZIC_FMT ?= "slim"
+
 do_compile () {
         for zone in ${TZONES}; do \
-            ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \
+            ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \
                 ${S}/${zone} ; \
-            ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \
+            ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \
                 ${S}/${zone} ; \
-            ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \
+            ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \
                 ${S}/${zone} ; \
         done
 }
-- 
2.25.1


  parent reply	other threads:[~2021-07-12 15:32 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-12 15:31 [OE-core][dunfell 00/12] Patch review Steve Sakoman
2021-07-12 15:31 ` [OE-core][dunfell 01/12] python3: upgrade 3.8.10 -> 3.8.11 Steve Sakoman
2021-07-12 15:31 ` [OE-core][dunfell 02/12] webkitgtk: upgrade 2.28.2 -> 2.28.3 Steve Sakoman
2021-07-12 15:31 ` [OE-core][dunfell 03/12] webkitgtk: Upgrade to 2.28.4 Steve Sakoman
2021-07-12 15:31 ` [OE-core][dunfell 04/12] glibc: update to lastest 2.31 release HEAD Steve Sakoman
2021-07-12 15:31 ` [OE-core][dunfell 05/12] bootchart2: update 0.14.8 -> 0.14.9 Steve Sakoman
2021-07-12 15:31 ` [OE-core][dunfell 06/12] busybox: fix CVE-2021-28831 Steve Sakoman
2021-07-12 15:32 ` [OE-core][dunfell 07/12] dhcp: fix CVE-2021-25217 Steve Sakoman
2021-07-12 15:32 ` [OE-core][dunfell 08/12] dwarfsrcfiles: Avoid races over debug-link files Steve Sakoman
2021-07-12 15:32 ` [OE-core][dunfell 09/12] oeqa/selftest/multiprocesslauch: Fix test race Steve Sakoman
2021-07-12 15:32 ` Steve Sakoman [this message]
2021-07-12 15:32 ` [OE-core][dunfell 11/12] update-rc.d: update SRCREV to pull in fix for non-bash shell support Steve Sakoman
2021-07-12 15:32 ` [OE-core][dunfell 12/12] report-error: Drop pointless inherit Steve Sakoman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1e9393cae53b4de260ec951e7855d74f206730d0.1626103708.git.steve@sakoman.com \
    --to=steve@sakoman.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.