* [PATCH] staging: Save out provider information into the sysroot
@ 2014-03-24 15:42 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-03-24 15:42 UTC (permalink / raw)
To: openembedded-core
This patch saves out provider information into the sysroot for all providers
except those in MULTI_PROVIDER_WHITELIST. This means that we will start seeing
warnings when two providers for the same thing are installed into the sysroot.
In the future those warnings can be turned into errors.
Partially addresses [YOCTO #4102]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index d17a53e..f4ab04a 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -93,6 +93,16 @@ python do_populate_sysroot () {
bb.build.exec_func("sysroot_stage_all", d)
for f in (d.getVar('SYSROOT_PREPROCESS_FUNCS', True) or '').split():
bb.build.exec_func(f, d)
+ pn = d.getVar("PN", True)
+ multiprov = d.getVar("MULTI_PROVIDER_WHITELIST", True).split()
+ provdir = d.expand("${SYSROOT_DESTDIR}${base_prefix}/sysroot-providers/")
+ bb.utils.mkdirhier(provdir)
+ for p in d.getVar("PROVIDES", True).split():
+ if p in multiprov:
+ continue
+ p = p.replace("/", "_")
+ with open(provdir + p, "w") as f:
+ f.write(pn)
}
SSTATETASKS += "do_populate_sysroot"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-24 15:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-24 15:42 [PATCH] staging: Save out provider information into the sysroot Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox