Bug 3570 - Bitbake should probably not assume that '\' at the end of line means treat the next line as a comment silentlly
Summary: Bitbake should probably not assume that '\' at the end of line means treat th...
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-12-12 14:12 UTC by Phlip Balister
Modified: 2013-02-25 16:48 UTC (History)
4 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 Phlip Balister 2012-12-12 14:12:36 UTC
The following fragment in an image led to madness:

#    tools-debug \
inherit core-image

Bitbake treated the "inherit core-image" as part of the comment, which caused some serious confusion. At the very least, bitbake should suggest this is not likely to do what you expected.
Comment 1 Stoicescu Cornel 2012-12-13 17:16:39 UTC
Can you please give a more specific description of where you made the changes and the results obtained(a log file)?
Comment 2 Phlip Balister 2012-12-13 21:32:43 UTC
I made the changes in a custom image file.

Try adding a line like this:

# Some text \
Some line that should do something

and build the recipe. The second line will be treated as a comment.\

I'm Crofton on irc if you want me to talk you through an example you can use in oe-core.
Comment 3 Richard Purdie 2012-12-14 13:54:02 UTC
Patch out for review on the bitbake-devel list.
Comment 4 Richard Purdie 2013-01-21 13:51:07 UTC
Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a5358511b1741e6abff1a8f5136f1c8662645fea (and preceeding patch)
Comment 5 Stoicescu Cornel 2013-02-25 16:48:04 UTC
There is a coherent error message that suggests the line is commented out. 
Verified in master:2cc4fe4a0874c42421b1bf3fa100160a9e60a9da