useradd.bbclass: handle nativesdk case
* without this patch, building dbus-nativesdk leads to a missing dependency on 'base-passwd-nativesdk' This was added by commit 46e6c3fa8034b12d178d605f3f5d7efe69671a13 * this patch handle the nativesdk case in the class useradd * close bug 1702 http://bugzilla.pokylinux.org/show_bug.cgi?id=1702 * v2 from Scott Garman with Richard Purdie's tricks (From OE-Core rev: 140a3507fb5c14cd9bcebe4304f491aa1c5c47a2) (From OE-Core rev: 79d5ce46b4d73e5ed39c509ce872e99e6bcb94ee) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
11e383d24c
commit
155aad308c
|
@ -3,7 +3,9 @@ USERADDPN ?= "${PN}"
|
||||||
# base-passwd-cross provides the default passwd and group files in the
|
# base-passwd-cross provides the default passwd and group files in the
|
||||||
# target sysroot, and shadow -native and -sysroot provide the utilities
|
# target sysroot, and shadow -native and -sysroot provide the utilities
|
||||||
# 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 = " base-passwd shadow-native shadow-sysroot"
|
DEPENDS_append = "${USERADDDEPENDS}"
|
||||||
|
USERADDDEPENDS = " base-passwd shadow-native shadow-sysroot"
|
||||||
|
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
|
||||||
# native sysroot (as invoked by the useradd_sysroot() wrapper), and
|
# native sysroot (as invoked by the useradd_sysroot() wrapper), and
|
||||||
|
@ -95,8 +97,12 @@ useradd_sysroot_sstate () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install[prefuncs] += "useradd_sysroot"
|
do_install[prefuncs] += "${SYSROOTFUNC}"
|
||||||
SSTATEPOSTINSTFUNCS += "useradd_sysroot_sstate"
|
SYSROOTFUNC = "useradd_sysroot"
|
||||||
|
SYSROOTFUNC_virtclass-nativesdk = ""
|
||||||
|
SSTATEPOSTINSTFUNCS += "${SYSROOTPOSTFUNC}"
|
||||||
|
SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
|
||||||
|
SYSROOTPOSTFUNC_virtclass-nativesdk = ""
|
||||||
|
|
||||||
# Recipe parse-time sanity checks
|
# Recipe parse-time sanity checks
|
||||||
def update_useradd_after_parse(d):
|
def update_useradd_after_parse(d):
|
||||||
|
|
Loading…
Reference in New Issue