Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] useradd.bbclass: Add explict setscene dependencies to ensure correct ordering of setscene tasks
@ 2012-01-26 20:11 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-01-26 20:11 UTC (permalink / raw)
  To: openembedded-core

This is the final piece of fixing the races in the useradd class by
ensuring base-passwd, shadow-native and shadow-sysroot are installed
before sstate packages which use useradd.

[YOCTO #1721]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

NB: This patch depends on a change in bitbake to work but is harmless
without that change, just won't fix the race.

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 6ee575e..9677fe2 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -111,6 +111,8 @@ SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
 SYSROOTPOSTFUNC_virtclass-native = ""
 SYSROOTPOSTFUNC_virtclass-nativesdk = ""
 
+do_package_setscene[depends] = "base-passwd:do_populate_sysroot_setscene shadow-native:do_populate_sysroot_setscene shadow-sysroot:do_populate_sysroot_setscene"
+
 # Recipe parse-time sanity checks
 def update_useradd_after_parse(d):
 	useradd_packages = d.getVar('USERADD_PACKAGES', True)





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-26 20:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 20:11 [PATCH] useradd.bbclass: Add explict setscene dependencies to ensure correct ordering of setscene tasks Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox