Skip to contentSkip to conversation

depmodwrapper-cross: conditionally inherit nopackages

PATCH New [email protected] 1 participant 1 message Jun 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 depmodwrapper-cross: conditionally inherit nopackages

From: Leonardo Sandoval <[email protected]>

The class nopackages deletes tasks needed by the archiver, so in case the latter is globally inherited, do not inherit nopackages. Without this patch, the following error occurs:

    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
    ERROR: Command execution failed: 1

The solution was suggested by J. Richardson, mentioned on the bugzilla entry.

[YOCTO #11121]

---
 meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb +2 -1
index 44d013f29d..a0ae9bbb61 100644
@@ -45,4 +45,5 @@ EOF
 
 SYSROOT_DIRS += "${bindir_crossscripts}"
 
-inherit nopackages
+# The archiver requires tasks that nopackages deletes.
+inherit ${@'nopackages' if not bb.data.inherits_class('archiver', d) else ''}
Signature · 1 line
2.12.0