diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-20 14:31:19 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-22 12:26:46 +0000 |
| commit | e7d78bc6d80e8aecbde178f999c0ed47550e8d12 (patch) | |
| tree | 9d0e0312492cf371b922d0d7e3ddf479544f5052 | |
| parent | 194264e2c626aa3c9b69c4354b1dc9e015449346 (diff) | |
| download | poky-e7d78bc6d80e8aecbde178f999c0ed47550e8d12.tar.gz | |
icu: update 71.1 -> 72-1
Update the recipe to reflect the change in version separator.
(From OE-Core rev: cebe8439cdc656d53355506a31a3782312bf03c5)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-support/icu/icu_72-1.bb (renamed from meta/recipes-support/icu/icu_71.1.bb) | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/meta/recipes-support/icu/icu_71.1.bb b/meta/recipes-support/icu/icu_72-1.bb index df999dce3b..2b20bdd7b2 100644 --- a/meta/recipes-support/icu/icu_71.1.bb +++ b/meta/recipes-support/icu/icu_72-1.bb | |||
| @@ -15,7 +15,7 @@ S = "${WORKDIR}/icu/source" | |||
| 15 | SPDX_S = "${WORKDIR}/icu" | 15 | SPDX_S = "${WORKDIR}/icu" |
| 16 | STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" | 16 | STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" |
| 17 | 17 | ||
| 18 | ICU_MAJOR_VER = "${@d.getVar('PV').split('.')[0]}" | 18 | ICU_MAJOR_VER = "${@d.getVar('PV').split('-')[0]}" |
| 19 | 19 | ||
| 20 | inherit autotools pkgconfig github-releases | 20 | inherit autotools pkgconfig github-releases |
| 21 | 21 | ||
| @@ -54,8 +54,8 @@ do_install:append:class-target() { | |||
| 54 | # The native pkgdata can not generate the correct data file. | 54 | # The native pkgdata can not generate the correct data file. |
| 55 | # Use icupkg to re-generate it. | 55 | # Use icupkg to re-generate it. |
| 56 | if [ "${SITEINFO_ENDIANNESS}" = "be" ] ; then | 56 | if [ "${SITEINFO_ENDIANNESS}" = "be" ] ; then |
| 57 | rm -f ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat | 57 | rm -f ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat |
| 58 | icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat ${D}/${datadir}/${BPN}/${PV}/icudt${ICU_MAJOR_VER}b.dat | 58 | icupkg -tb ${S}/data/in/icudt${ICU_MAJOR_VER}l.dat ${D}/${datadir}/${BPN}/${@icu_install_folder(d)}/icudt${ICU_MAJOR_VER}b.dat |
| 59 | fi | 59 | fi |
| 60 | 60 | ||
| 61 | # Remove build host references... | 61 | # Remove build host references... |
| @@ -63,8 +63,8 @@ do_install:append:class-target() { | |||
| 63 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ | 63 | -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ |
| 64 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | 64 | -e 's|${DEBUG_PREFIX_MAP}||g' \ |
| 65 | -e 's:${HOSTTOOLS_DIR}/::g' \ | 65 | -e 's:${HOSTTOOLS_DIR}/::g' \ |
| 66 | ${D}/${libdir}/${BPN}/${PV}/Makefile.inc \ | 66 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/Makefile.inc \ |
| 67 | ${D}/${libdir}/${BPN}/${PV}/pkgdata.inc | 67 | ${D}/${libdir}/${BPN}/${@icu_install_folder(d)}/pkgdata.inc |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio" | 70 | PACKAGES =+ "libicudata libicuuc libicui18n libicutu libicuio" |
| @@ -82,13 +82,17 @@ BBCLASSEXTEND = "native nativesdk" | |||
| 82 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=a89d03060ff9c46552434dbd1fe3ed1f" | 82 | LIC_FILES_CHKSUM = "file://../LICENSE;md5=a89d03060ff9c46552434dbd1fe3ed1f" |
| 83 | 83 | ||
| 84 | def icu_download_version(d): | 84 | def icu_download_version(d): |
| 85 | pvsplit = d.getVar('PV').split('.') | 85 | pvsplit = d.getVar('PV').split('-') |
| 86 | return pvsplit[0] + "_" + pvsplit[1] | 86 | return pvsplit[0] + "_" + pvsplit[1] |
| 87 | 87 | ||
| 88 | def icu_download_folder(d): | 88 | def icu_download_folder(d): |
| 89 | pvsplit = d.getVar('PV').split('.') | 89 | pvsplit = d.getVar('PV').split('-') |
| 90 | return pvsplit[0] + "-" + pvsplit[1] | 90 | return pvsplit[0] + "-" + pvsplit[1] |
| 91 | 91 | ||
| 92 | def icu_install_folder(d): | ||
| 93 | pvsplit = d.getVar('PV').split('-') | ||
| 94 | return pvsplit[0] + "." + pvsplit[1] | ||
| 95 | |||
| 92 | ICU_PV = "${@icu_download_version(d)}" | 96 | ICU_PV = "${@icu_download_version(d)}" |
| 93 | ICU_FOLDER = "${@icu_download_folder(d)}" | 97 | ICU_FOLDER = "${@icu_download_folder(d)}" |
| 94 | 98 | ||
| @@ -108,8 +112,8 @@ SRC_URI = "${BASE_SRC_URI};name=code \ | |||
| 108 | SRC_URI:append:class-target = "\ | 112 | SRC_URI:append:class-target = "\ |
| 109 | file://0001-Disable-LDFLAGSICUDT-for-Linux.patch \ | 113 | file://0001-Disable-LDFLAGSICUDT-for-Linux.patch \ |
| 110 | " | 114 | " |
| 111 | SRC_URI[code.sha256sum] = "67a7e6e51f61faf1306b6935333e13b2c48abd8da6d2f46ce6adca24b1e21ebf" | 115 | SRC_URI[code.sha256sum] = "a2d2d38217092a7ed56635e34467f92f976b370e20182ad325edea6681a71d68" |
| 112 | SRC_URI[data.sha256sum] = "e3882b4fece6e5e039f22c3189b7ba224180fd26fdbfa9db284617455b93e804" | 116 | SRC_URI[data.sha256sum] = "ee19f876507d6c23d9e0a2b631096f6b0eaa6fa61728c33a89efdb55e3385dea" |
| 113 | 117 | ||
| 114 | UPSTREAM_CHECK_REGEX = "releases/tag/release-(?P<pver>(?!.+rc).+)" | 118 | UPSTREAM_CHECK_REGEX = "releases/tag/release-(?P<pver>(?!.+rc).+)" |
| 115 | GITHUB_BASE_URI = "https://github.com/unicode-org/icu/releases" | 119 | GITHUB_BASE_URI = "https://github.com/unicode-org/icu/releases" |
