我遇到了一个问题,其中包括在我的一个图像创建bbclass中,python pyparted作为本机依赖项。
有一个python scrip可以运行以创建一个分区的图像文件,通常我运行 sudo apt install python-pyparted 将pypart放入ubuntu的环境中。但是我不确定我做了什么(更新?),现在已经完全忽略了ubuntu环境。我试图弄清楚如何确保sdimage bbclass中的依赖关系正确。
do_image_sdimage[depends] = "parted-native:do_populate_sysroot \
dosfstools-native:do_populate_sysroot \
mtools-native:do_populate_sysroot \
virtual/kernel:do_deploy \
splash-images:do_deploy \
python3-native:do_populate_sysroot \
python3-pyparted-native:do_populate_sysroot \
${@d.getVar('IMAGE_BOOTLOADER', True) and d.getVar('IMAGE_BOOTLOADER', True) + ':do_deploy' or ''}"
显示错误
ERROR: Nothing PROVIDES 'python3-re-native' (but virtual:native:/home/dev/app/OS/sources/meta-openembedded/meta-python/recipes-extended/python-pyparted/python3-pyparted_3.10.7.bb DEPENDS on or otherwise requires it). Close matches:
python3-rpm-native
python3-native
python3-nose-native
python3-native RPROVIDES python3-re-native
ERROR: Required build target 'my-image-default' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-image-default', 'python3-pyparted-native', 'python3-re-native']
基于此,看来我应该能够做到这一点,但是依赖链会忽略python3-native的RPROVIDES?