From b7809ab4ee1f56f979dfbeabd6dbbdf2d7afd1d7 Mon Sep 17 00:00:00 2001 From: alichinese Date: Thu, 23 Oct 2025 11:05:02 +0800 Subject: [PATCH] ament-index-python: fix the compile bug * fix the compile bug that raise no module find '_sysconfigdata' Signed-off-by: alichinese --- meta-openeuler/conf/layer.conf | 1 + .../ament-index/ament-index-python_%.bbappend | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 meta-openeuler/dynamic-layers/ros2-layer/generated-recipes/ament-index/ament-index-python_%.bbappend diff --git a/meta-openeuler/conf/layer.conf b/meta-openeuler/conf/layer.conf index 7e72abafc39..0686f8226d4 100644 --- a/meta-openeuler/conf/layer.conf +++ b/meta-openeuler/conf/layer.conf @@ -49,6 +49,7 @@ clang-layer:${LAYERDIR}/dynamic-layers/clang-layer/recipes-*/*/*.bbappend \ BBFILES_DYNAMIC += " \ ros2-layer:${LAYERDIR}/dynamic-layers/ros2-layer/recipes-*/*/*.bb \ ros2-layer:${LAYERDIR}/dynamic-layers/ros2-layer/recipes-*/*/*.bbappend \ +ros2-layer:${LAYERDIR}/dynamic-layers/ros2-layer/generated-recipes/*/*.bbappend \ " # enable .bb under phosphor-layer/ when exist meta-phosphor diff --git a/meta-openeuler/dynamic-layers/ros2-layer/generated-recipes/ament-index/ament-index-python_%.bbappend b/meta-openeuler/dynamic-layers/ros2-layer/generated-recipes/ament-index/ament-index-python_%.bbappend new file mode 100644 index 00000000000..8e347aab713 --- /dev/null +++ b/meta-openeuler/dynamic-layers/ros2-layer/generated-recipes/ament-index/ament-index-python_%.bbappend @@ -0,0 +1,3 @@ +# note: setuptools from PYTHONPATH, but the python will find lib in native path, it will case error +# so add sysconfigdata to PYTHONPATH +export PYTHONPATH="$PYTHONPATH:${RECIPE_SYSROOT}/usr/lib64/python-sysconfigdata" -- Gitee