[OE-core] [PATCH] pigz: Add dependency on zlib-native for pigz-native

Shrikant Bobade bobadeshrikant at gmail.com
Thu Aug 7 10:36:57 UTC 2014


From: Shrikant Bobade <Shrikant_Bobade at mentor.com>

When pigz-native and zlib-native are coming from sstate the setscenes might
not necessarily run in the expected order. The problem happens when setscene
for pigz-native runs before setscene for zlib-native. To fix the issue
do_populate_sysroot_setscene[depends] should be properly set for pigz-native.

Signed-off-by: Mikhail Durnev <mikhail_durnev at mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade at mentor.com>
---
 meta/recipes-extended/pigz/pigz.inc |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc
index 355fb2a..9a045e7 100644
--- a/meta/recipes-extended/pigz/pigz.inc
+++ b/meta/recipes-extended/pigz/pigz.inc
@@ -30,3 +30,7 @@ ALTERNATIVE_${PN} = "gzip gunzip"
 ALTERNATIVE_LINK_NAME[gzip] = "${base_bindir}/gzip"
 ALTERNATIVE_LINK_NAME[gunzip] = "${base_bindir}/gunzip"
 ALTERNATIVE_PRIORITY = "80"
+
+PIGZ_SYSROOT_DEPS = ""
+PIGZ_SYSROOT_DEPS_class-native = "zlib-native:do_populate_sysroot_setscene"
+do_populate_sysroot_setscene[depends] += "${PIGZ_SYSROOT_DEPS}"
-- 
1.7.9.5




More information about the Openembedded-core mailing list