From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: [PATCH] useradd.bbclass: Add explict setscene dependencies to ensure correct ordering of setscene tasks
Date: Thu, 26 Jan 2012 20:11:41 +0000 [thread overview]
Message-ID: <1327608701.19643.398.camel@ted> (raw)
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)
reply other threads:[~2012-01-26 20:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1327608701.19643.398.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox