From: Martin Jansa <[email protected]>

* avoid copying whole exec_prefix over base_prefix as there
  were only zoneinfo files anyway

Signed-off-by: Martin Jansa <[email protected]>
Signed-off-by: Richard Purdie <[email protected]>
(cherry picked from commit 37846f8735683ed0fab5ef5c12d77c6041348801)
Signed-off-by: Steve Sakoman <[email protected]>
---
 meta/recipes-extended/timezone/tzdata.bb | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-extended/timezone/tzdata.bb 
b/meta/recipes-extended/timezone/tzdata.bb
index ce725008c0..dd1960ffa7 100644
--- a/meta/recipes-extended/timezone/tzdata.bb
+++ b/meta/recipes-extended/timezone/tzdata.bb
@@ -16,17 +16,21 @@ TZONES = " \
 # "fat" is needed by e.g. MariaDB's mysql_tzinfo_to_sql
 ZIC_FMT ?= "slim"
 
+do_configure[cleandirs] = "${B}"
+B = "${WORKDIR}/build"
+
 do_compile() {
        for zone in ${TZONES}; do
-               ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d 
${WORKDIR}${datadir}/zoneinfo -L /dev/null ${S}/${zone}
-               ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d 
${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null ${S}/${zone}
-               ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d 
${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds ${S}/${zone}
+               ${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}
+               ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d 
${B}/zoneinfo/right -L ${S}/leapseconds ${S}/${zone}
        done
 }
 
 do_install() {
-       install -d ${D}$exec_prefix ${D}${datadir}/zoneinfo
-       cp -pPR ${WORKDIR}$exec_prefix ${D}${base_prefix}
+       install -d ${D}${datadir}/zoneinfo
+       cp -pPR ${B}/zoneinfo/* ${D}${datadir}/zoneinfo
+
        # libc is removing zoneinfo files from package
        cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo
        cp -pP "${S}/zone1970.tab" ${D}${datadir}/zoneinfo
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#178937): 
https://lists.openembedded.org/g/openembedded-core/message/178937
Mute This Topic: https://lists.openembedded.org/mt/97779036/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to