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) (From OE-Core rev: b325378930655beeec03bbc5ce6ccf2b29f408fd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
15905aec48
commit
c5a9efca96
|
@ -3,6 +3,7 @@
|
||||||
# and support files needed to add and modify user and group accounts
|
# and support files needed to add and modify user and group accounts
|
||||||
DEPENDS_append = "${USERADDDEPENDS}"
|
DEPENDS_append = "${USERADDDEPENDS}"
|
||||||
USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
|
USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot shadow"
|
||||||
|
USERADDDEPENDS_virtclass-native = ""
|
||||||
USERADDDEPENDS_virtclass-nativesdk = ""
|
USERADDDEPENDS_virtclass-nativesdk = ""
|
||||||
|
|
||||||
# This preinstall function will be run in two contexts: once for the
|
# This preinstall function will be run in two contexts: once for the
|
||||||
|
@ -97,9 +98,11 @@ useradd_sysroot_sstate () {
|
||||||
|
|
||||||
do_install[prefuncs] += "${SYSROOTFUNC}"
|
do_install[prefuncs] += "${SYSROOTFUNC}"
|
||||||
SYSROOTFUNC = "useradd_sysroot"
|
SYSROOTFUNC = "useradd_sysroot"
|
||||||
|
SYSROOTFUNC_virtclass-native = ""
|
||||||
SYSROOTFUNC_virtclass-nativesdk = ""
|
SYSROOTFUNC_virtclass-nativesdk = ""
|
||||||
SSTATEPOSTINSTFUNCS += "${SYSROOTPOSTFUNC}"
|
SSTATEPOSTINSTFUNCS += "${SYSROOTPOSTFUNC}"
|
||||||
SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
|
SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
|
||||||
|
SYSROOTPOSTFUNC_virtclass-native = ""
|
||||||
SYSROOTPOSTFUNC_virtclass-nativesdk = ""
|
SYSROOTPOSTFUNC_virtclass-nativesdk = ""
|
||||||
|
|
||||||
# Recipe parse-time sanity checks
|
# Recipe parse-time sanity checks
|
||||||
|
|
Loading…
Reference in New Issue