Patchwork useradd.bbclass: do not let depend native packages on base-passwd from target

login
register
mail settings
Submitter Henning Heinold
Date Nov. 17, 2011, 9:48 a.m.
Message ID <1321523310-29625-2-git-send-email-heinold@inf.fu-berlin.de>
Download mbox | patch
Permalink /patch/15077/
State Superseded
Headers show

Comments

Henning Heinold - Nov. 17, 2011, 9:48 a.m.
Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
---
 meta/classes/useradd.bbclass |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Richard Purdie - Nov. 17, 2011, 9:56 a.m.
On Thu, 2011-11-17 at 10:48 +0100, Henning Heinold wrote:
> Signed-off-by: Henning Heinold <heinold@inf.fu-berlin.de>
> ---
>  meta/classes/useradd.bbclass |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
> index 928f619..245588b 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


Do we also need to do this for:

SYSROOTFUNC = "useradd_sysroot"
SYSROOTFUNC_virtclass-nativesdk = ""

and

SYSROOTPOSTFUNC = "useradd_sysroot_sstate"
SYSROOTPOSTFUNC_virtclass-nativesdk = ""

?

Cheers,

Richard

Patch

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 928f619..245588b 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