Bug 1727

Summary: useradd class does not update RDEPENDS for all generated packages
Product: [Build System, Metadata & Runtime] BitBake Reporter: Scott Garman <scott.a.garman>
Component: bitbakeAssignee: 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-06: Fix submitted to oe-core ML
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Scott Garman 2011-11-03 14:03:36 UTC
In useradd.bbclass, the following is done to add base-passwd and shadow to RDEPENDS:

USERADDPN ?= "${PN}"
...
RDEPENDS_${USERADDPN}_append = " base-passwd shadow"

This is not adding the RDEPENDS to all generated packages - only the one which is named PN (recipe name). 

Since we add the user/group addition postinstalls to all generated packages, RDEPENDS needs to be updated for all generated packages.