Bug 3834 - bitbake requires whitespace before +=
Summary: bitbake requires whitespace before +=
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.3.2
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: A candidate for 1.3.3
Depends on:
Blocks:
 
Reported: 2013-02-03 05:31 UTC by Blloyd
Modified: 2013-02-14 10:49 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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+