Skip to contentSkip to conversation

tzdata: Add tzdata.zi to tzdata-core package

PATCH New [email protected] 1 participant 1 message May 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 tzdata: Add tzdata.zi to tzdata-core package

From: Simone Weiß <[email protected]>

Additionally build and package tzdata.zi info file, as e.g. Systemd expects it to be present.

[YOCTO #15172]

---
 meta/recipes-extended/timezone/tzdata.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-extended/timezone/tzdata.bb +3 -0
index dd1960ffa7..2099b05db8 100644
@@ -20,6 +20,7 @@ do_configure[cleandirs] = "${B}"
 B = "${WORKDIR}/build"
 
 do_compile() {
+	oe_runmake -C ${S} tzdata.zi
 	for zone in ${TZONES}; do
 		${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${B}/zoneinfo -L /dev/null ${S}/${zone}
 		${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${B}/zoneinfo/posix -L /dev/null ${S}/${zone}
@@ -37,6 +38,7 @@ do_install() {
 	cp -pP "${S}/iso3166.tab" ${D}${datadir}/zoneinfo
 	cp -pP "${S}/leapseconds" ${D}${datadir}/zoneinfo
 	cp -pP "${S}/leap-seconds.list" ${D}${datadir}/zoneinfo
+	cp -pP "${S}/tzdata.zi" ${D}${datadir}/zoneinfo
 
 	# Install default timezone
 	if [ -e ${D}${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ]; then
@@ -141,6 +143,7 @@ FILES:tzdata-core += " \
     ${sysconfdir}/timezone \
     ${datadir}/zoneinfo/leapseconds \
     ${datadir}/zoneinfo/leap-seconds.list \
+    ${datadir}/zoneinfo/tzdata.zi \
     ${datadir}/zoneinfo/Pacific/Honolulu \
     ${datadir}/zoneinfo/America/Anchorage \
     ${datadir}/zoneinfo/America/Los_Angeles \
Signature · 1 line
2.39.2