[OE-core] [PATCH] useradd_base: Make perform_groupmems work with native

Christopher Larson clarson at kergoth.com
Mon Dec 7 15:30:04 UTC 2015


On Mon, Dec 7, 2015 at 3:39 AM, Fabrice Coulon <fabrice.coulon at axis.com>
wrote:

> I have a problem when using useradd_base.bbclass together with native.
> ${sysconfdir} is BUILDDIR/tmp/sysroots/x86_64-linux/etc for native,
> and ${sysconfdir} is "/etc" for target.
>
> rootdir is BUILDDIR/tmp/sysroots/x86_64-linux for native, so,
> $rootdir${sysconfdir} is not correct for native.
>
> The solution for me was to replace instances of $rootdir${sysconfdir}
> with $rootdir/etc under perform_groupmems.
>
> Signed-off-by: Fabrice Coulon <fabrice.coulon at axis.com>
>

Hardcoding a path is *not* an appropriate fix.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20151207/94756751/attachment-0002.html>


More information about the Openembedded-core mailing list