From: Jörg Sommer <[email protected]>
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 <[email protected]>
---
.../icu/icu/mangle-build-tmp.patch | 32 +++++++++++++++++++
meta/recipes-support/icu/icu_78.3.bb | 1 +
2 files changed, 33 insertions(+)
create mode 100644 meta/recipes-support/icu/icu/mangle-build-tmp.patch
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?= <[email protected]>
+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 <[email protected]>
+---
+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 = "\
--
2.53.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#234133):
https://lists.openembedded.org/g/openembedded-core/message/234133
Mute This Topic: https://lists.openembedded.org/mt/118556486/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-