pocketpy: disable CMake Unity build to fix buildpaths QA warnings

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>
This commit is contained in:
Khem Raj committed 2026-09-27 07:51:34 -07:00
1 parent 8718bb269b
commit 201f3c95cc
1 file changed
+1
@@ -21,6 +21,7 @@ inherit cmake
EXTRA_OECMAKE = "\
-DPK_ENABLE_OS=ON \
-DPK_BUILD_WITH_UNITY=OFF \
"
CFLAGS += "-fPIC"