From: Jörg Sommer Date: Sat, 28 Mar 2026 21:04:18 +0000 (+0100) Subject: icu: Workaround buildpaths QA check, if TMPDIR is /build/tmp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33e52b9e8fcdfd4ba72b12073ddb96f12cef69fa;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git icu: Workaround buildpaths QA check, if TMPDIR is /build/tmp The file udatatst.c really contains the string /build/tmp. When building with kas-container the build directory is /build and hence the TMPDIR becomes /build/tmp. This triggers the QA check *buildpaths*. To work around this, slightly modify the string in the source code. % grep -n -C2 /build/tmp source/test/cintltst/udatatst.c 136- char* path=(char*)malloc(sizeof(char) * (strlen(ctest_dataOutDir()) 137- + strlen(U_ICUDATA_NAME) 138: + strlen("/build/tmp/..")+1 ) ); 139- 140- char *icuDataFilePath = 0; Signed-off-by: Jörg Sommer Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-support/icu/icu/mangle-build-tmp.patch b/meta/recipes-support/icu/icu/mangle-build-tmp.patch new file mode 100644 index 0000000000..cf24e53b88 --- /dev/null +++ b/meta/recipes-support/icu/icu/mangle-build-tmp.patch @@ -0,0 +1,32 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?J=C3=B6rg=20Sommer?= +Date: Sat, 28 Mar 2026 20:29:53 +0100 +Subject: [PATCH] test/udatatst: Mangle /build/tmp +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This string matches $TMPDIR (in a kas-container) which triggers the QA +check buildpaths: + +ERROR: icu-78.2-r0 do_package_qa: QA Issue: File /usr/src/debug/icu/78.2/test/cintltst/udatatst.c in package icu-src contains reference to TMPDIR [buildpaths] + +Signed-off-by: Jörg Sommer +--- +Upstream-Status: Inappropriate [This QA check collision of Yocto specific] + + test/cintltst/udatatst.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/cintltst/udatatst.c b/test/cintltst/udatatst.c +index 003d7d4..7175725 100644 +--- a/test/cintltst/udatatst.c ++++ b/test/cintltst/udatatst.c +@@ -135,7 +135,7 @@ static void TestUDataOpen(void){ + + char* path=(char*)malloc(sizeof(char) * (strlen(ctest_dataOutDir()) + + strlen(U_ICUDATA_NAME) +- + strlen("/build/tmp/..")+1 ) ); ++ + strlen("/""build/tmp/..")+1 ) ); + + char *icuDataFilePath = 0; + diff --git a/meta/recipes-support/icu/icu_78.3.bb b/meta/recipes-support/icu/icu_78.3.bb index 367e2641e7..ad920f3ef4 100644 --- a/meta/recipes-support/icu/icu_78.3.bb +++ b/meta/recipes-support/icu/icu_78.3.bb @@ -111,6 +111,7 @@ SRC_URI = "${BASE_SRC_URI};name=code \ file://0001-test-Add-support-ptest.patch \ file://run-ptest \ file://0001-Make-ICU-test-output-compatible-with-Automake-format.patch \ + file://mangle-build-tmp.patch \ " SRC_URI:append:class-target = "\