[OE-core] [PATCH] useradd: don't override pseudo environment

Martin Jansa martin.jansa at gmail.com
Fri Sep 15 12:04:58 UTC 2017


nice

Acked-by: Martin Jansa <Martin.Jansa at gmail.com>

On Fri, Sep 15, 2017 at 1:58 PM, Ross Burton <ross.burton at intel.com> wrote:

> Back in the dark days before recipe-specific-sysroots the paths being
> passed in
> this manual construction of the pseudo environment made sense, but now
> they're
> incorrect and result in pseudo writing to two different databases during a
> single build.  The result is that pseudo doesn't follow changes to
> /etc/passwd
> in the sysroot, and warns in the logs.
>
> Remove the PSEUDO_LOCALSTATEDIR assignment and inherit the correct
> assignment in
> FAKEROOTENV.
>
> Signed-off-by: Ross Burton <ross.burton at intel.com>
> ---
>  meta/classes/useradd.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
> index 6017ded8601..0f51e5522b1 100644
> --- a/meta/classes/useradd.bbclass
> +++ b/meta/classes/useradd.bbclass
> @@ -100,7 +100,7 @@ useradd_sysroot () {
>         # Pseudo may (do_prepare_recipe_sysroot) or may not
> (do_populate_sysroot_setscene) be running
>         # at this point so we're explicit about the environment so pseudo
> can load if
>         # not already present.
> -       export PSEUDO="${FAKEROOTENV} PSEUDO_LOCALSTATEDIR=${
> STAGING_DIR_TARGET}${localstatedir}/pseudo ${PSEUDO_SYSROOT}${bindir_
> native}/pseudo"
> +       export PSEUDO="${FAKEROOTENV} ${PSEUDO_SYSROOT}${bindir_
> native}/pseudo"
>
>         # Explicitly set $D since it isn't set to anything
>         # before do_prepare_recipe_sysroot
> --
> 2.11.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170915/97a8eefa/attachment-0002.html>


More information about the Openembedded-core mailing list