Bug 1702

Summary: Exclude useradd class from nativesdk builds
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Scott Garman <scott.a.garman>
Component: meta-yoctoAssignee: Scott Garman <scott.a.garman>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: 2011-11-08: Fix submitted to oe-core ML
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Scott Garman 2011-10-26 09:49:07 UTC
James Limbouris reported an issue building a nativesdk version of dbus, which pulls in base-passwd due to the useradd class. But it does not make sense to include base-passwd for a nativesdk build.

To resolve this, it should be possible to add some code to useradd.bbclass to skip over the code in the nativesdk case, using something like:

if bb.data.inherits_class('nativesdk', d):