do_compile failed to find ninja, and after providing it CMake's C++20
module dependency scanning (clang-scan-deps) failed in the cross
environment with "'cstddef' file not found".

Add ninja-native and python3-scikit-build-core-native to DEPENDS so the
--no-isolation build finds its build tools, and disable C++20 module
scanning via CMAKE_ARGS since pikepdf uses the C++20 language but no
named modules.

Signed-off-by: Khem Raj <[email protected]>
---
 .../recipes-devtools/python/python3-pikepdf_10.9.1.bb      | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-pikepdf_10.9.1.bb 
b/meta-python/recipes-devtools/python/python3-pikepdf_10.9.1.bb
index 2482e8913a..a0ab6f275a 100644
--- a/meta-python/recipes-devtools/python/python3-pikepdf_10.9.1.bb
+++ b/meta-python/recipes-devtools/python/python3-pikepdf_10.9.1.bb
@@ -9,6 +9,11 @@ SRC_URI += "file://0001-pyproject.toml-Do-not-strip.patch"

 inherit pypi python_setuptools_build_meta

+# pikepdf uses the C++20 language but no C++20 named modules. CMake's module
+# dependency scanning (clang-scan-deps) does not work in the cross environment,
+# so turn it off.
+export CMAKE_ARGS = "-DCMAKE_CXX_SCAN_FOR_MODULES=OFF"
+
 PYPI_PACKAGE = "pikepdf"

 CVE_PRODUCT = "pikepdf"
@@ -16,6 +21,8 @@ CVE_PRODUCT = "pikepdf"
 DEPENDS += " \
        python3-pybind11-native \
         python3-nanobind-native \
+       python3-scikit-build-core-native \
+       ninja-native \
        qpdf \
 "

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#128116): 
https://lists.openembedded.org/g/openembedded-devel/message/128116
Mute This Topic: https://lists.openembedded.org/mt/120186201/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to