Bug 3834

Summary: bitbake requires whitespace before +=
Product: [Build System, Metadata & Runtime] BitBake Reporter: Blloyd <blloyd>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, poky.bs.watcher, poky.watcher
Version: 1.3.2   
Target Milestone: 1.4   
Hardware: x86   
OS: Multiple   
Whiteboard: A candidate for 1.3.3
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Blloyd 2013-02-03 05:31:19 UTC
The following two statements end up with different results when used in bitbake.

RDEPENDS += "xserver-xorg-module-exa xserver-xorg-module-xaa"

RDEPENDS+="xserver-xorg-module-exa xserver-xorg-module-xaa"

The first gets the following in a bitbake -e
#RDEPENDS=" xserver-xorg-module-exa xserver-xorg-module-xaa"
RDEPENDS=xserver-xorg-module-exa xserver-xorg-module-xaa

The second gets
#RDEPENDS=""


Since there is nothing in the manual indicating the preceeding whitespace is mandatory, and the -e output doesn't show it, there is a problem with consistency at least.  If it isn't intended to be required, then a regression has occured as at least with += lack of the space causes the setting to not be used.
Comment 1 Richard Purdie 2013-02-14 10:49:20 UTC
Found the problem and fixed in master:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=83e101568434a099c8d9a3e626c3a37589c3a233

RDEPENDS+="x"

was assigning to the variable RDEPENDS+