Bug 2512 - Parse failure with SCM in SRC_URI and SRCREV not specified
Summary: Parse failure with SCM in SRC_URI and SRCREV not specified
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.2
Hardware: All Multiple
: Undecided normal
Target Milestone: ---
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard: Fixed
Depends on:
Blocks:
 
Reported: 2012-05-28 13:36 UTC by Paul Eggleton
Modified: 2012-05-30 17:13 UTC (History)
2 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 Paul Eggleton 2012-05-28 13:36:29 UTC
Since the file checksum change went in we get an exception during parsing any recipe that has an SCM in SRC_URI (e.g. pointing at a git or svn repository) and SRCREV is not specified. This is not recommended, however it did used to at least be permitted.

Example error output:

ERROR: Failure expanding variable None, expression was ${@bb.fetch.get_checksum_file_list(d)} which triggered exception FetchError: Fetcher failure for URL: 'svn://anonsvn.kde.org/home/kde/tags/KDE/3.5.1;module=kdelibs;date=20060404'. Please set SRCREV to a valid value
ERROR: Command execution failed: Traceback (most recent call last):
  File "/home/paul/poky/poky/bitbake/lib/bb/command.py", line 84, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1202, in updateCache
    if not self.parser.parse_next():
  File "/home/paul/poky/poky/bitbake/lib/bb/cooker.py", line 1672, in parse_next
    self.virtuals += len(result)
UnboundLocalError: local variable 'result' referenced before assignment


Note that this also demonstrates that there are certain kinds of failure that we still don't report well - there is no recipe mentioned in the above error.