mbox series

[0/1] meson building nativesdk recipes with python dependencies

Message ID 20260517133241.2972125-1-joaohf@gmail.com
Headers show
Series meson building nativesdk recipes with python dependencies | expand

Message

João Henrique Ferreira de Freitas May 17, 2026, 1:32 p.m. UTC
When building nativesdk-at-spi2-core recipe:

   bitbake nativesdk-at-spi2-core

I got the following issue related to meson not finding the correct
python modules:

| Program g-ir-scanner skipped: feature introspection disabled
|
| ../sources/at-spi2-core-2.60.0/meson.build:200:17: ERROR: <PythonExternalProgram 'python3' -> ['/build/tmp-glibc-beamtools/work/x86_64-nativesdk-pokysdk-linux/nativesdk-at-spi2-core/2.60.0/recipe-sysroot-native/
usr/bin/python3-native/python3']> is not a valid python or it is missing distutils
|
| A full log can be found at /build/tmp-glibc-beamtools/work/x86_64-nativesdk-pokysdk-linux/nativesdk-at-spi2-core/2.60.0/build/meson-logs/meson-log.txt
|
| Last 10 lines of meson-log.txt:
|   File "/build/tmp-glibc-beamtools/work/x86_64-nativesdk-pokysdk-linux/nativesdk-at-spi2-core/2.60.0/recipe-sysroot-native/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module
|     return _bootstrap._gcd_import(name[level:], package, level)
|            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|   File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
|   File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
|   File "<frozen importlib._bootstrap>", line 1335, in _find_and_load_unlocked
| ModuleNotFoundError: No module named '_sysconfigdata'
|
|
| ../sources/at-spi2-core-2.60.0/meson.build:200:17: ERROR: <PythonExternalProgram 'python3' -> ['/build/tmp-glibc-beamtools/work/x86_64-nativesdk-pokysdk-linux/nativesdk-at-spi2-core/2.60.0/recipe-sysroot-native/
usr/bin/python3-native/python3']> is not a valid python or it is missing distutils
|
| ERROR: meson setup failed
| WARNING: exit code 1 from a shell command.

So, I think when nativesdk python/meson should look into native paths.

The same issue is also true for wrynose release.

João Henrique Ferreira de Freitas (1):
  python3targetconfig: export native python paths

 meta/classes-recipe/python3targetconfig.bbclass | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)