[bitbake-devel] recipetool issue with empty bbappends

Paul Eggleton paul.eggleton at linux.intel.com
Tue Jul 19 09:25:03 UTC 2016


Hi there,

On Tue, 19 Jul 2016 07:33:00 Sai Pavan Boddu wrote:
> I see an issue, working with recipetool, which  basically gives error when I
> point out an empty bbappend file generated form recipetool itself. Below
> are the steps
> recipetool newappend meta-saip/ linux-xlnx
> recipetool setvar -r meta-saip/recipes-kernel/linux/linux-xlnx_4.4.bbappend
> XSCTH_PROC "arm" Traceback (most recent call last):
>   File "<path>/yocto/scripts/recipetool", line 116, in <module>
>     ret = main()
>   File "<path>/yocto/scripts/recipetool", line 107, in main
>     ret = args.func(args)
>   File "<path>/components/yocto/scripts/lib/recipetool/setvar.py", line 52,
> in setvar patches = [oe.recipeutils.patch_recipe_file(args.recipefile,
> varvalues, patch=args.patch)] File
> "<path>/yocto/meta/lib/oe/recipeutils.py", line 258, in patch_recipe_file
> if tolines[-1].strip() != '':
> IndexError: list index out of range
> 
> But I don't see the error if, bbappend file has atlease one line

I've just reproduced this and have filed the following bug for the issue:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=9972

BTW in future for issues with recipetool / devtool could you please use the 
openembedded-core at lists.openembedded.org (or yocto at yoctoproject.org if you 
prefer) since recipetool isn't part of BitBake.

Thanks,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the bitbake-devel mailing list