diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2023-03-13 12:06:31 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-14 17:13:11 +0000 |
| commit | 55f18e3edb00016dd189133dfeec588dcce89ce7 (patch) | |
| tree | 6dbdf33016c7314263064df76744c0816049d317 | |
| parent | 6150e554104a408a40d3894bad55b4a98a88a853 (diff) | |
| download | poky-55f18e3edb00016dd189133dfeec588dcce89ce7.tar.gz | |
tzdata: use separate B instead of WORKDIR for zic output
* avoid copying whole exec_prefix over base_prefix as there
were only zoneinfo files anyway
(From OE-Core rev: 37846f8735683ed0fab5ef5c12d77c6041348801)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-extended/timezone/tzdata.bb | 14 |
1 files 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 = " \ | |||
| 16 | # "fat" is needed by e.g. MariaDB's mysql_tzinfo_to_sql | 16 | # "fat" is needed by e.g. MariaDB's mysql_tzinfo_to_sql |
| 17 | ZIC_FMT ?= "slim" | 17 | ZIC_FMT ?= "slim" |
| 18 | 18 | ||
| 19 | do_configure[cleandirs] = "${B}" | ||
| 20 | B = "${WORKDIR}/build" | ||
| 21 | |||
| 19 | do_compile() { | 22 | do_compile() { |
| 20 | for zone in ${TZONES}; do | 23 | for zone in ${TZONES}; do |
| 21 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null ${S}/${zone} | 24 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${B}/zoneinfo -L /dev/null ${S}/${zone} |
| 22 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null ${S}/${zone} | 25 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${B}/zoneinfo/posix -L /dev/null ${S}/${zone} |
| 23 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds ${S}/${zone} | 26 | ${STAGING_BINDIR_NATIVE}/zic -b ${ZIC_FMT} -d ${B}/zoneinfo/right -L ${S}/leapseconds ${S}/${zone} |
| 24 | done | 27 | done |
| 25 | } | 28 | } |
| 26 | 29 | ||
| 27 | do_install() { | 30 | do_install() { |
| 28 | install -d ${D}$exec_prefix ${D}${datadir}/zoneinfo | 31 | install -d ${D}${datadir}/zoneinfo |
| 29 | cp -pPR ${WORKDIR}$exec_prefix ${D}${base_prefix} | 32 | cp -pPR ${B}/zoneinfo/* ${D}${datadir}/zoneinfo |
| 33 | |||
| 30 | # libc is removing zoneinfo files from package | 34 | # libc is removing zoneinfo files from package |
| 31 | cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo | 35 | cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo |
| 32 | cp -pP "${S}/zone1970.tab" ${D}${datadir}/zoneinfo | 36 | cp -pP "${S}/zone1970.tab" ${D}${datadir}/zoneinfo |
