diff mbox series

icu: fix buildpaths QA error occasionally

Message ID 20241230122314.1835719-1-hongxu.jia@windriver.com
State New
Headers show
Series icu: fix buildpaths QA error occasionally | expand

Commit Message

Hongxu Jia Dec. 30, 2024, 12:23 p.m. UTC
$ bitbake icu
...
ERROR: QA Issue: File /usr/lib64/icu/76.1/pkgdata.inc in package icu-dev contains reference to TMPDIR [buildpaths]
...

$ vim tmp/work/corei7-64-wrs-linux/icu/76-1/image/usr/lib64/icu/76.1/pkgdata.inc
...
INSTALL_CMD=path-to-build/tmp/work/corei7-64-wrs-linux/icu/76-1/recipe-sysroot-native/usr/bin/install -c
...

The autoconf walked $PATH to find INSTALL_CMD, and commit [icu:
remove host references in nativesdk to fix reproducibility] [1]
removed prefix ${HOSTTOOLS_DIR}/ from pkgdata.inc.

If setting INSTALL_CMD with recipe-sysroot-native's install,
the buildpaths QA error occurs.

Explicitly set INSTALL_CMD with hosttools's install

[1] https://github.com/openembedded/openembedded-core/commit/dc6306883cc2c7d4d98d595442e5bf4037a160c5

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-support/icu/icu_76-1.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-support/icu/icu_76-1.bb b/meta/recipes-support/icu/icu_76-1.bb
index 08dabde3ae..47847a6903 100644
--- a/meta/recipes-support/icu/icu_76-1.bb
+++ b/meta/recipes-support/icu/icu_76-1.bb
@@ -132,6 +132,8 @@  GITHUB_BASE_URI = "https://github.com/unicode-org/icu/releases"
 
 EXTRA_OECONF:append:libc-musl = " ac_cv_func_strtod_l=no"
 
+EXTRA_OECONF:append = " ac_cv_path_install='${HOSTTOOLS_DIR}/install -c'"
+
 PACKAGECONFIG ?= ""
 PACKAGECONFIG[make-icudata] = ",,,"