If a recipe has a function that contains _remove the override handling kicks in and generally results in a terse failure at parse time: ERROR: ExpansionError during parsing /home/ross/Yocto/poky/meta/recipes-graphics/xorg-proto/xcb-proto_1.11.bb: Failure expanding variable xcb_remove_python: TypeError: 'NoneType' object is not iterable It would be good if the system at least made the warning more usable, and ideally warned that attempting to name a function with _remove_ in (or _append_) is a bad idea.
I'm unable to reproduce this. Maybe it's been fixed?
i got error by adding this task to recipe addtask task_remove_test do_task_remove_test() { # prevent blank task echo ${WORKDIR} >> ${WORKDIR}/test } same error for _append_ and _prepend_ Error: File "/data/4T/poky-master/bitbake/lib/bb/codeparser.py", line 343, in ShellParser.parse_shell(value=None): > self._parse_shell(value) self.execs = set(cmd for cmd in self.allexecs if cmd not in self.funcdefs) File "/data/4T/poky-master/bitbake/lib/bb/codeparser.py", line 354, in ShellParser._parse_shell(value=None): except Exception: > bb.error('Error during parse shell code, the last 5 lines are:\n%s' % '\n'.join(value.split('\n')[-5:])) raise AttributeError: 'NoneType' object has no attribute 'split'
close with this commit https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=03f8c9d9f91ac9efe54e22e78575e4a248cfa62f