summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-22 15:09:49 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-23 15:24:11 +0100
commitc7bc4e596829c985be81769169039a128d52e04e (patch)
tree4c2e84c8256fb79b54f984182c4640ff88da5037 /meta/recipes-support
parent0972526d2a74d363f8469ac5fc567fd8cbf663cd (diff)
downloadpoky-c7bc4e596829c985be81769169039a128d52e04e.tar.gz
icu: Drop binconfig support (icu-config)
Upstream have indicated icu-config is deprecated and they don't intend people to use it any more. Drop our code for it to flush out users and clean up our recipe a bit. pkg-config is a much better alternative. (https://github.com/unicode-org/icu/pull/2150) (From OE-Core rev: 9b121df8d9f2a46bb08992725f97ba03e878a609) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/icu/icu_71.1.bb14
1 files changed, 5 insertions, 9 deletions
diff --git a/meta/recipes-support/icu/icu_71.1.bb b/meta/recipes-support/icu/icu_71.1.bb
index d8ef2a3746..b39633c203 100644
--- a/meta/recipes-support/icu/icu_71.1.bb
+++ b/meta/recipes-support/icu/icu_71.1.bb
@@ -15,20 +15,16 @@ S = "${WORKDIR}/icu/source"
15SPDX_S = "${WORKDIR}/icu" 15SPDX_S = "${WORKDIR}/icu"
16STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}" 16STAGING_ICU_DIR_NATIVE = "${STAGING_DATADIR_NATIVE}/${BPN}/${PV}"
17 17
18BINCONFIG = "${bindir}/icu-config"
19
20ICU_MAJOR_VER = "${@d.getVar('PV').split('.')[0]}" 18ICU_MAJOR_VER = "${@d.getVar('PV').split('.')[0]}"
21 19
22inherit autotools pkgconfig binconfig multilib_script 20inherit autotools pkgconfig
23
24MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/icu-config"
25 21
26# ICU needs the native build directory as an argument to its --with-cross-build option when 22# ICU needs the native build directory as an argument to its --with-cross-build option when
27# cross-compiling. Taken the situation that different builds may share a common sstate-cache 23# cross-compiling. Taken the situation that different builds may share a common sstate-cache
28# into consideration, the native build directory needs to be staged. 24# into consideration, the native build directory needs to be staged.
29EXTRA_OECONF = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}" 25EXTRA_OECONF = "--with-cross-build=${STAGING_ICU_DIR_NATIVE} --disable-icu-config"
30EXTRA_OECONF:class-native = "" 26EXTRA_OECONF:class-native = "--disable-icu-config"
31EXTRA_OECONF:class-nativesdk = "--with-cross-build=${STAGING_ICU_DIR_NATIVE}" 27EXTRA_OECONF:class-nativesdk = "--with-cross-build=${STAGING_ICU_DIR_NATIVE} --disable-icu-config"
32 28
33EXTRA_OECONF:append:class-target = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', ' --with-data-packaging=archive', '', d)}" 29EXTRA_OECONF:append:class-target = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', ' --with-data-packaging=archive', '', d)}"
34TARGET_CXXFLAGS:append = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', ' -DICU_DATA_DIR=\\""${datadir}/${BPN}/${PV}\\""', '', d)}" 30TARGET_CXXFLAGS:append = "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'be', ' -DICU_DATA_DIR=\\""${datadir}/${BPN}/${PV}\\""', '', d)}"
@@ -67,7 +63,7 @@ do_install:append:class-target() {
67 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ 63 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
68 -e 's|${DEBUG_PREFIX_MAP}||g' \ 64 -e 's|${DEBUG_PREFIX_MAP}||g' \
69 -e 's:${HOSTTOOLS_DIR}/::g' \ 65 -e 's:${HOSTTOOLS_DIR}/::g' \
70 ${D}/${bindir}/icu-config ${D}/${libdir}/${BPN}/${PV}/Makefile.inc \ 66 ${D}/${libdir}/${BPN}/${PV}/Makefile.inc \
71 ${D}/${libdir}/${BPN}/${PV}/pkgdata.inc 67 ${D}/${libdir}/${BPN}/${PV}/pkgdata.inc
72} 68}
73 69