Bug 813 - bitbake can't parse a comment line that has a trailing backslash
Summary: bitbake can't parse a comment line that has a trailing backslash
Status: VERIFIED NOTABUG
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.0 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-06 23:11 UTC by Dexuan Cui
Modified: 2011-08-18 21:59 UTC (History)
5 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 Dexuan Cui 2011-03-06 23:11:45 UTC
Liping and I happened to find such an issue when bitbaking the following recipe:

adt-installer_svn.bb:

LICENSE = "MIT"
PV = "0.1.8+svnr${SRCPV}"
PR = "r0"
#SRC_URI = "http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz \
SRC_URI = "#svn://opkg.googlecode.com/svn;module=trunk;proto=http"

$ bitbake adt-installer
Loading cache: 100% |#############################################################################################################################################| ETA:  00:00:00
Loaded 971 entries from dependency cache.
ERROR: Error parsing /osel/dcui/110304/p1/meta/recipes-kernel/oprofile/adt-installer_svn.bb: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure for URL: 'None'. SRCREV was used yet no valid SCM was found in SRC_URI

Removing the trailing backslash of the commened SRC_URI line can resolve the ERROR, but we think this might be a parsing issue of bitbake we should fix?
Comment 1 Richard Purdie 2011-03-25 06:56:15 UTC
A backslash at the end of the line denotes a multi line. In this case bitbake parsed it as a multiline comment which was arguably the correct thing to do. This is a recent change in behavior to do with comment handling but it is consistent and behaving as intended.
Comment 2 Dexuan Cui 2011-04-10 22:45:43 UTC
(In reply to comment #1)
> A backslash at the end of the line denotes a multi line. In this case bitbake
> parsed it as a multiline comment which was arguably the correct thing to do.
> This is a recent change in behavior to do with comment handling but it is
> consistent and behaving as intended.

VERIFY the bug: NOTABUG.
Comment 3 Saul Wold 2011-08-18 21:59:31 UTC
*** Bug 1377 has been marked as a duplicate of this bug. ***