Bug 13199

Summary: devtool check-upgrade-status : traceback when meta-openembedded added in bblayers
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Armin Kuster <akuster>
Component: devtools / tool chainAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: alex.kanavin, meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.7   
Target Milestone: 3.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Armin Kuster 2019-02-23 23:07:42 UTC
NOTE: gupnp-igd                 0.2.4           0.2.5           None  
NOTE: gupnp-tools               0.8.13          0.8.15          None  
NOTE: gupnp                     1.0.2           1.1.2           None  
concurrent.futures.process._RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib/python3.6/concurrent/futures/process.py", line 175, in _process_worker
    r = call_item.fn(*call_item.args, **call_item.kwargs)
  File "/usr/lib/python3.6/concurrent/futures/process.py", line 153, in _process_chunk
    return [fn(*args) for args in chunk]
  File "/usr/lib/python3.6/concurrent/futures/process.py", line 153, in <listcomp>
    return [fn(*args) for args in chunk]
  File "/home/build/releases/master/openembedded-core/meta/lib/oe/recipeutils.py", line 1024, in _get_recipe_upgrade_status
    uv = get_recipe_upstream_version(data)
  File "/home/build/releases/master/openembedded-core/meta/lib/oe/recipeutils.py", line 1009, in get_recipe_upstream_version
    pupver = ud.method.latest_versionstring(ud, rd)
  File "/home/build/releases/master/openembedded-core/bitbake/lib/bb/fetch2/git.py", line 645, in latest_versionstring
    if verstring and bb.utils.vercmp(("0", tag, ""), ("0", verstring, "")) < 0:
  File "/home/build/releases/master/openembedded-core/bitbake/lib/bb/utils.py", line 135, in vercmp
    r = vercmp_part(va, vb)
  File "/home/build/releases/master/openembedded-core/bitbake/lib/bb/utils.py", line 124, in vercmp_part
    elif ca < cb:
TypeError: '<' not supported between instances of 'int' and 'NoneType'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/build/releases/master/openembedded-core/scripts/devtool", line 344, in <module>
    ret = main()
  File "/home/build/releases/master/openembedded-core/scripts/devtool", line 331, in main
    ret = args.func(args, config, basepath, workspace)
  File "/home/build/releases/master/openembedded-core/scripts/lib/devtool/upgrade.py", line 607, in check_upgrade_status
    for result in results:
  File "/usr/lib/python3.6/concurrent/futures/process.py", line 366, in _chain_from_iterable_of_lists
    for element in iterable:
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 586, in result_iterator
    yield fs.pop().result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result
    return self.__get_result()
  File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
    raise self._exception
TypeError: '<' not supported between instances of 'int' and 'NoneType'
akuster@hilo:/home/build/builds/master$
Comment 1 Armin Kuster 2019-02-23 23:08:29 UTC
Gave the new functionality a shot after change pushed to master.

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/scripts?id=3bf20354725b460434ad8aee4f6a4e41ce683a49
Comment 2 Armin Kuster 2019-02-23 23:32:30 UTC
just need to add only mete-openembedded/mete-oe to 

/poky 
/poky/meta-poky
MACHINE=qemux86-64
Comment 3 Alexander Kanavin 2019-02-24 20:10:49 UTC
The offending recipe is rocksdb.

Patch sent:
http://lists.openembedded.org/pipermail/bitbake-devel/2019-February/019837.html
Comment 4 Randy MacLeod 2019-02-28 15:40:13 UTC
The patch has been merge Robert so just confirm that the bug is now fixed please.
Comment 5 Alexander Kanavin 2020-04-17 07:09:47 UTC
This has been fixed for over a year.