Bug 4754

Summary: bitbake-prserv-tool export gives ParseError
Product: [Build System, Metadata & Runtime] BitBake Reporter: Stoicescu Cornel <corneliux.stoicescu>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: poky.bs.watcher, poky.watcher
Version: 1.5   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Stoicescu Cornel 2013-06-20 12:31:14 UTC
STATUS: FAILED
BUILD: master:590010a6525b0e1bc1de73e794764e23404591df
ENVIRONMENT: Fedora 18 X86_64
STEPS TO REPRODUCE: 

1. set PRSERV_HOST to localhost:0 in local.conf
2. run "bitbake-prserv-tool export export.inc"

Note ParseError:

ERROR: Traceback (most recent call last):
  File "/home/lserban/work/poky/bitbake/lib/bb/cookerdata.py", line 163, in wrapped
    return func(fn, *args)
  File "/home/lserban/work/poky/bitbake/lib/bb/cookerdata.py", line 177, in _inherit
    bb.parse.BBHandler.inherit(bbclass, "configuration INHERITs", 0, data)
  File "/home/lserban/work/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 88, in inherit
    include(fn, file, lineno, d, "inherit")
  File "/home/lserban/work/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 91, in include
    ret = handle(fn, data, True)
  File "/home/lserban/work/poky/bitbake/lib/bb/parse/__init__.py", line 91, in handle
    return h['handle'](fn, data, include)
  File "/home/lserban/work/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 151, in handle
    statements = get_statements(fn, abs_fn, base_name)
  File "/home/lserban/work/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 106, in get_statements
    feeder(lineno, s, filename, base_name, statements)
  File "/home/lserban/work/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py", line 253, in feeder
    return ConfHandler.feeder(lineno, s, fn, statements)
  File "/home/lserban/work/poky/bitbake/lib/bb/parse/parse_py/ConfHandler.py", line 177, in feeder
    raise ParseError("unparsed line: '%s'" % s, fn, lineno);
ParseError: ParseError at /home/lserban/work/poky/meta/classes/prexport.bbclass:58: unparsed line: 'prexport_handler bb.event.RecipeParsed bb.event.ParseStarted bb.event.ParseCompleted"'

ERROR: Unable to parse prexport: ParseError at /home/lserban/work/poky/meta/classes/prexport.bbclass:58: unparsed line: 'prexport_handler bb.event.RecipeParsed bb.event.ParseStarted bb.event.ParseCompleted"'
Exporting to file export.inc failed!
Comment 1 Richard Purdie 2013-06-20 12:37:30 UTC
Meant to send a fix for this but it got trapped in another patch. It is however fixed in master in the patch: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=de1841d9c2a0ec1d7103335d450b5fbc2273804e
Comment 2 Stoicescu Cornel 2013-07-01 09:14:49 UTC
Verified in master:8e9501ffa8726d69412d669580d787ffedb88d34