| Message ID | 20241230122314.1835719-1-hongxu.jia@windriver.com |
|---|---|
| State | New |
| Headers | show |
| Series | icu: fix buildpaths QA error occasionally | expand |
On 30 Dec 2024, at 12:23, hongxu via lists.openembedded.org <hongxu.jia=eng.windriver.com@lists.openembedded.org> wrote: > > $ bitbake icu > ... > ERROR: QA Issue: File /usr/lib64/icu/76.1/pkgdata.inc in package icu-dev contains reference to TMPDIR [buildpaths] The autobuilder (or anyone else that I’m aware of) never seen this, so what is the trigger to cause it to happen? If it was a non-deterministic issue You say the installed file contains this: INSTALL_CMD=path-to-build/tmp/work/corei7-64-wrs-linux/icu/76-1/recipe-sysroot-native/usr/bin/install -c This would also cause reproducible failures in the testing, which we’ve also never seen on the AB. So either you’re exercising a codepath that the AB (or most others) never touch, or something very odd is happening. > +EXTRA_OECONF:append = " ac_cv_path_install='${HOSTTOOLS_DIR}/install -c'" Just “install -c” would likely work and not need any further mangling, but we’d want to understand why this is needed in the first place. Ross
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] = ",,,"
$ 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(+)