'inherit nopackages' was added to the recipes-kernel/kmod/depmodwrapper-cross_1.0.bb. nopackages deletes the do_package_write_rpm task. But that task is required by the archiver and it reports an error when INHERIT += "archiver" is added to local.conf. The error reported is: Initialising tasks...ERROR: Task do_deploy_archives in ../meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb depends upon non-existent task do_package_write_rpm in ../meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb I added this line as a fix. Will report as a bug to let you decide whether it's an appropriate fix or not: +# The archiver requires tasks that nopackages deletes. +inherit ${@'nopackages' if not bb.data.inherits_class('archiver', d) else ''}
(In reply to comment #0) > 'inherit nopackages' was added to the > recipes-kernel/kmod/depmodwrapper-cross_1.0.bb. nopackages deletes the > do_package_write_rpm task. But that task is required by the archiver and it > reports an error when INHERIT += "archiver" is added to local.conf. The > error reported is: > > Initialising tasks...ERROR: Task do_deploy_archives in > ../meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb depends upon > non-existent task do_package_write_rpm in > ../meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb > > I added this line as a fix. Will report as a bug to let you decide whether > it's an appropriate fix or not: > > +# The archiver requires tasks that nopackages deletes. > +inherit ${@'nopackages' if not bb.data.inherits_class('archiver', d) else > ''} I like the approach, but also not sure if this is the right one. Adding Ross, he definitely has better idea on how to handle this.
I see no problem with this approach so sent to the ML http://lists.openembedded.org/pipermail/openembedded-core/2017-June/138170.html
To reproduce you need: INHERIT += "archiver" ARCHIVER_MODE[srpm] = "1" and the issue is that depmodwrapper-cross doesn't empty PACKAGES. I'll send a patch for emptying PACKAGES as that is a preferred fix to this anonymous python fragment.
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=246dc1b5ebb170c2bfd43a1c5c48a325eba3eca4