Skip to contentSkip to conversation

qemu-helper-native/systemtap-native: Ensure sysroots are populated with dependencies

PATCH New Richard Purdie 1 participant 1 message Dec 6, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-helper-native/systemtap-native: Ensure sysroots are populated with dependencies

As Alex Kanavin found, dependencies aren't always populated, particularly with the hash equivalence server enabled locally:

'bitbake core-image-minimal' with gtk+ disabled.
can confirm with: $ tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -display gtk
qemu-system-x86_64: Display 'gtk' is not available.
Enable gtk in local.conf with: PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"
'bitbake core-image-minimal', without deleting tmp/

$ tmp/work/x86_64-linux/qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-x86_64 -display gtk
qemu-system-x86_64: Display 'gtk' is not available.

This change ensures the dependencies are correctly handled as the full sysroot is always depended upon even if things come from sstate.

---
 meta/classes/cross.bbclass  | 1 +
 meta/classes/native.bbclass | 1 +
 2 files changed, 2 insertions(+)
meta/classes/cross.bbclass +1 -0
index f832561daf8..6dcddd6f2e6 100644
@@ -97,3 +97,4 @@ python do_addto_recipe_sysroot () {
     bb.build.exec_func("extend_recipe_sysroot", d)
 }
 addtask addto_recipe_sysroot after do_populate_sysroot
+do_addto_recipe_sysroot[deptask] = "do_populate_sysroot"
meta/classes/native.bbclass +1 -0
index d5b6f6af8bb..3a4f572552e 100644
@@ -186,6 +186,7 @@ python do_addto_recipe_sysroot () {
     bb.build.exec_func("extend_recipe_sysroot", d)
 }
 addtask addto_recipe_sysroot after do_populate_sysroot
+do_addto_recipe_sysroot[deptask] = "do_populate_sysroot"
 
 inherit nopackages
 
Signature · 1 line
2.20.1