From: Bruce Ashfield <bruce.ashfi...@gmail.com> It looks like this should have been an error for a while, but it only started showing up in my 6.x linux-yocto-dev testing.
Without the inherit of setuptool3, we get a module missing error during configure and the build obviously fails. Tested against 5.x and 6.x kernels. Signed-off-by: Bruce Ashfield <bruce.ashfi...@gmail.com> --- v2: as suggested by Ross, we remove the perf dependency on python that is picked up from the inherited setuptools3. Test build and target runs, everything works as expected. meta/recipes-kernel/perf/perf.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 31bc04635d..7629423cb4 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -48,7 +48,7 @@ PROVIDES = "virtual/perf" inherit linux-kernel-base kernel-arch manpages # needed for building the tools/perf Python bindings -inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'python3targetconfig', '', d)} +inherit ${@bb.utils.contains('PACKAGECONFIG', 'scripting', 'python3targetconfig setuptools3', '', d)} inherit python3-dir export PYTHON_SITEPACKAGES_DIR @@ -338,6 +338,10 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGES =+ "${PN}-archive ${PN}-tests ${PN}-perl ${PN}-python" RDEPENDS:${PN} += "elfutils bash" +# PN picks up a python3-core RDEPENDS, due to needing setuptool3 as a build +# dependency, we remove it from the package, as PN-python is where the scripting +# is packaged. +RDEPENDS:${PN}:remove = "python3-core" RDEPENDS:${PN}-archive =+ "bash" RDEPENDS:${PN}-python =+ "bash python3 python3-modules ${@bb.utils.contains('PACKAGECONFIG', 'audit', 'audit-python', '', d)}" RDEPENDS:${PN}-perl =+ "bash perl perl-modules" -- 2.19.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#171511): https://lists.openembedded.org/g/openembedded-core/message/171511 Mute This Topic: https://lists.openembedded.org/mt/94162006/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-