diff mbox series

[meta-oe,1/2] pocketpy: disable CMake Unity build to fix buildpaths QA warnings

Message ID 20260927052306.2867689-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,1/2] pocketpy: disable CMake Unity build to fix buildpaths QA warnings | expand

Commit Message

Khem Raj Sept. 27, 2026, 5:23 a.m. UTC
pocketpy's upstream CMakeLists.txt defaults PK_BUILD_WITH_UNITY to ON
for CMake >= 3.16, which makes CMake generate a synthetic translation
unit (Unity/unity_pocketpy_c.c) that #includes every source file by
its absolute build-tree path. That generated file gets copied
verbatim into the pocketpy-src package's /usr/src/debug tree, so its
embedded paths trip the buildpaths QA check for both TMPDIR and the
build host's HOME directory.

Setting OEQA_BUILDPATHS_SKIP as suggested in the warning text would
only silence the HOME-directory half of the check; TMPDIR has no skip
mechanism in insane.bbclass and would keep firing. Instead, disable
the Unity build via -DPK_BUILD_WITH_UNITY=OFF so CMake emits normal
per-file translation units with no absolute paths in their contents.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-devtools/pocketpy/pocketpy_2.1.8.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/pocketpy/pocketpy_2.1.8.bb b/meta-oe/recipes-devtools/pocketpy/pocketpy_2.1.8.bb
index 910deba386..7f3775941a 100644
--- a/meta-oe/recipes-devtools/pocketpy/pocketpy_2.1.8.bb
+++ b/meta-oe/recipes-devtools/pocketpy/pocketpy_2.1.8.bb
@@ -21,6 +21,7 @@  inherit cmake

 EXTRA_OECMAKE = "\
     -DPK_ENABLE_OS=ON \
+    -DPK_BUILD_WITH_UNITY=OFF \
 "

 CFLAGS += "-fPIC"