[OE-core] distro checking and lsb_release
Jack Mitchell
ml at embed.me.uk
Tue Nov 22 15:11:17 UTC 2016
On 22/11/16 14:25, Burton, Ross wrote:
>
> On 22 November 2016 at 14:07, Jack Mitchell <ml at embed.me.uk
> <mailto:ml at embed.me.uk>>wrote:
>
> With the recent changes to distro checking the lsb_release binary
> is now
> required. I tried adding this to SANITY_REQUIRED_UTILITIES however it
> seems as though the distro check is done before the SanityEvent is
> triggered. Where would be the best place to check this binary is
> available to prevent an ugly python traceback?
>
>
> It shouldn't be required at all. What error are you getting?
You can also run generated qemu images with a command like 'runqemu qemux86'
ERROR: Execution of event handler 'base_eventhandler' failed
Traceback (most recent call last):
File
"/home/jack/work/build/build-build/openembedded/oe-core.git/meta/classes/base.bbclass",
line 214, in base_eventhandler(e=<bb.event.ConfigParsed object at
0x7fb511f75438>):
if not e.data.getVar("NATIVELSBSTRING", False):
> e.data.setVar("NATIVELSBSTRING",
lsb_distro_identifier(e.data))
e.data.setVar('BB_VERSION', bb.__version__)
File
"/home/jack/work/build/build-build/openembedded/oe-core.git/meta/classes/base.bbclass",
line 47, in lsb_distro_identifier(d=<bb.data_smart.DataSmart object at
0x7fb5124079b0>):
pass
> return oe.lsb.distro_identifier(adjust_func)
File
"/home/jack/work/build/build-build/openembedded/oe-core.git/meta/lib/oe/lsb.py",
line 99, in distro_identifier(adjust_hook=None):
> distro_id = distro_data['DISTRIB_ID']
release = distro_data['DISTRIB_RELEASE']
TypeError: 'NoneType' object is not subscriptable
ERROR: Error parsing configuration files
Traceback (most recent call last):
File
"/home/jack/work/build/build-build/openembedded/bitbake.git/lib/bb/event.py",
line 124, in fire_class_handlers(event=<bb.event.ConfigParsed object at
0x7fb511f75438>, d=<bb.data_smart.DataSmart object at 0x7fb5124079b0>):
continue
> execute_handler(name, handler, event, d)
File
"/home/jack/work/build/build-build/openembedded/bitbake.git/lib/bb/event.py",
line 96, in execute_handler(name='base_eventhandler', handler=<function
base_eventhandler at 0x7fb511fd02f0>, event=<bb.event.ConfigParsed
object at 0x7fb511f75438>, d=<bb.data_smart.DataSmart object at
0x7fb5124079b0>):
try:
> ret = handler(event)
except (bb.parse.SkipRecipe, bb.BBHandledException):
File
"/home/jack/work/build/build-build/openembedded/oe-core.git/meta/classes/base.bbclass",
line 214, in base_eventhandler(e=<bb.event.ConfigParsed object at
0x7fb511f75438>):
if not e.data.getVar("NATIVELSBSTRING", False):
> e.data.setVar("NATIVELSBSTRING",
lsb_distro_identifier(e.data))
e.data.setVar('BB_VERSION', bb.__version__)
File
"/home/jack/work/build/build-build/openembedded/oe-core.git/meta/classes/base.bbclass",
line 47, in lsb_distro_identifier(d=<bb.data_smart.DataSmart object at
0x7fb5124079b0>):
pass
> return oe.lsb.distro_identifier(adjust_func)
File
"/home/jack/work/build/build-build/openembedded/oe-core.git/meta/lib/oe/lsb.py",
line 99, in distro_identifier(adjust_hook=None):
> distro_id = distro_data['DISTRIB_ID']
release = distro_data['DISTRIB_RELEASE']
TypeError: 'NoneType' object is not subscriptable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161122/f9486ae5/attachment-0002.html>
More information about the Openembedded-core
mailing list