Bug 644 - ParameterError in "bitbake -e"
Summary: ParameterError in "bitbake -e"
Status: VERIFIED FIXED
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-01-06 20:28 UTC by Lianhao Lu
Modified: 2011-02-28 10:59 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lianhao Lu 2011-01-06 20:28:01 UTC
When "bitbake -e" on the master (with latest commit id of 3f78c071b7a04bfc486dadc387863cc0fbb53fc8), the following error was reported:

ERROR: SRCREV was used yet no valid SCM was found in SRC_URI
ERROR: Error evaluating '${@bb.fetch.get_srcrev(d)}'
Traceback (most recent call last):
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/fetch/__init__.py", line 394, in get_srcrev
    raise ParameterError
ParameterError

ERROR: SRCREV was used yet no valid SCM was found in SRC_URI
ERROR: Error evaluating '${@bb.fetch.get_srcrev(d)}'
Traceback (most recent call last):
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/fetch/__init__.py", line 394, in get_srcrev
    raise ParameterError
ParameterError

ERROR: Error evaluating '${SRCPV}'
Traceback (most recent call last):
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 116, in expandWithRefs
    s = __expand_var_regexp__.sub(varparse.var_sub, s)
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 60, in var_sub
    var = self.d.getVar(key, 1)
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 260, in getVar
    return self.expand(value, var)
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 132, in expand
    return self.expandWithRefs(s, varname).value
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/utils.py", line 400, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
  File "/home/lulianhao/poky-build/poky/bitbake/lib/bb/fetch/__init__.py", line 394, in get_srcrev
    raise ParameterError
ParameterError
Comment 2 Lianhao Lu 2011-02-24 17:31:48 UTC
Verified that with the commit http://git.pokylinux.org/cgit.cgi/poky/commit/?id=101b599110f7bc29f52a14a968f30323aeb797ca, the errors mentioned above was gone.