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 16:48:51 +0000 |
commit | 0b640a419cbc19752390cca35440707b9bfae0fa (patch) | |
tree | 8f70f86872d454cc6946c4d01895a4c1c0d0f630 /meta/classes/useradd.bbclass | |
parent | 6aa658495b028cd1301b9892fdc19a1b67ff06ca (diff) | |
download | openembedded-core-contrib-0b640a419cbc19752390cca35440707b9bfae0fa.tar.gz |
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.
(From OE-Core rev: eba81d1c606ec29ffb793c1cb3cfed9562d552bc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/useradd.bbclass')
-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 |