Bug 9719

Summary: yocto-bsp list fails after latest python3 changes
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Humberto Ibarra <humberto.ibarra.lopez>
Component: Scripts and ToolsAssignee: Humberto Ibarra <humberto.ibarra.lopez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: ross.burton
Version: 2.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Humberto Ibarra 2016-06-06 17:06:30 UTC
yocto-bsp list fails with the following error:

[humberto@jhibarra-MOBL1 build]$ yocto-bsp list
Traceback (most recent call last):
  File "/home/humberto/poky_test/scripts/yocto-bsp", line 45, in <module>
    from bsp.engine import *
  File "/home/humberto/poky_test/scripts/lib/bsp/engine.py", line 1657
    for key, val props.items():
                     ^
SyntaxError: invalid syntax
[humberto@jhibarra-MOBL1 build]$
Comment 1 Humberto Ibarra 2016-06-06 17:08:18 UTC
Problem was added with latest changes for python3 compatibility. The "in" key word was omitted, causing this syntax error.

The commit that introduced this issue is http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/scripts/lib/bsp/engine.py?id=3af9f6b88fcc5d7fddff01595f9bcf2aba548720

Will send a patch soon.