[oe-commits] Richard Purdie : useradd: Ensure -native recipes don' t depend on target recipes

git at git.openembedded.org git at git.openembedded.org
Wed May 30 16:59:29 UTC 2012


Module: openembedded-core.git
Branch: 2011-1
Commit: b325378930655beeec03bbc5ce6ccf2b29f408fd
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b325378930655beeec03bbc5ce6ccf2b29f408fd

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon Nov 21 13:59:19 2011 +0000

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 at inf.fu-berlin.de>
but with some additions from me.

(From OE-Core rev: eba81d1c606ec29ffb793c1cb3cfed9562d552bc)

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Joshua Lock <josh at linux.intel.com>

---

 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 f3dd823..4e4ac03 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





More information about the Openembedded-commits mailing list