[OE-core] useradd changes to dbus, base-passwd

Scott Garman scott.a.garman at intel.com
Sun Nov 6 23:16:42 UTC 2011


On 11/06/2011 12:31 PM, Eric Bénard wrote:
> Hi Scott,
>
> Le 26/10/2011 18:52, Scott Garman a écrit :
>> Grepping through our classes, it looks like I can detect the nativesdk
>> within
>> useradd.bbclass by checking for bb.data.inherits_class('nativesdk', d).
>>
>> I've filed a bug for this and will develop a patch to ensure useradd is
>> becomes a no-op for nativesdk builds:
>>
>> http://bugzilla.pokylinux.org/show_bug.cgi?id=1702
>>
> here is a patch tentative which allowed me to compile meta-toolchain-qte.
> Is that the right way to solve the problem (in which case I'll submit
> the patch with comment & sob)?

Hi Eric,

This looks good, thank you! Two questions though:

When I was testing my own variation of this fix out, I found that 
testing bb.data.inherits_class('nativesdk', d) did not work as I 
expected. It returned false for a recipe I was testing with that used 
BBCLASSEXTEND = "native nativesdk". So instead I was checking if PN 
ended with -nativesdk. Are you certain the inherits_class test works?

My second question is why the autotools_do_install is needed for the 
nativesdk case?

Thanks,

Scott

-- 
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center




More information about the Openembedded-core mailing list