diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-21 13:59:19 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-21 15:25:06 +0000 |
commit | eba81d1c606ec29ffb793c1cb3cfed9562d552bc (patch) | |
tree | ff46ccb1607246ae02e71a2b98df0f6c2bf85cf2 | |
parent | 0a815e889d056f44af1ada623b4b2edcb699693a (diff) | |
download | openembedded-core-eba81d1c606ec29ffb793c1cb3cfed9562d552bc.tar.gz openembedded-core-eba81d1c606ec29ffb793c1cb3cfed9562d552bc.tar.bz2 openembedded-core-eba81d1c606ec29ffb793c1cb3cfed9562d552bc.zip |
useradd: Ensure -native recipes don't depend on target recipes
Without this change, dbus-native can end up depending upon base-passwd
for example. This change mirrors the existing nativesdk code.
Based on a patch from Henning Heinold <heinold@inf.fu-berlin.de>
but with some additions from me.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/useradd.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass index 928f619b7c..ef1a9cec9f 100644 --- a/meta/classes/useradd.bbclass +++ b/meta/classes/useradd.bbclass @@ -3,6 +3,7 @@ # and support files needed to add and modify user and group accounts DEPENDS_append = "${USERADDDEPENDS}" USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow" +USERADDDEPENDS_virtclass-native = "" USERADDDEPENDS_virtclass-nativesdk = "" # This preinstall function will be run in two contexts: once for the @@ -97,9 +98,11 @@ useradd_sysroot_sstate () { do_install[prefuncs] += "${SYSROOTFUNC}" SYSROOTFUNC = "useradd_sysroot" +SYSROOTFUNC_virtclass-native = "" SYSROOTFUNC_virtclass-nativesdk = "" SSTATEPOSTINSTFUNCS += "${SYSROOTPOSTFUNC}" SYSROOTPOSTFUNC = "useradd_sysroot_sstate" +SYSROOTPOSTFUNC_virtclass-native = "" SYSROOTPOSTFUNC_virtclass-nativesdk = "" # Recipe parse-time sanity checks |