From 201f3c95cca902207c5f6ad25ca057e803921542 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 27 Sep 2026 02:42:23 +0000 Subject: [PATCH] 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 --- meta-oe/recipes-devtools/pocketpy/pocketpy_2.1.8.bb | 1 + 1 file changed, 1 insertion(+) 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"