[bitbake-devel] [PATCH 1/1] die if a .bbappend file matches no existing .bb recipe

Cui, Dexuan dexuan.cui at intel.com
Wed Jun 29 16:28:52 UTC 2011


Richard Purdie wrote:
> On Thu, 2011-06-30 at 00:03 +0800, Cui, Dexuan wrote:
>> Sorry -- what's the conclusion?
>> Keeping the v2 patch
>> (http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=dcui/bb-v2&id=2a520959f71ec2cd80ed2088bfcf082631161a1a)
>> , or changing bb.error() to bb.warn()?
> 
> Where you have:
> 
>   bb.error('No recipes available for:\n%s' % '\n'.join(appendlines))
> 
> this would become something like:
> 
>   msg = 'No recipes available for:\n%s' % '\n'.join(appendlines)
>   if d.getVar("BB_DANGLINGAPPENDS_WARNONLY", False):
>      bb.warn(msg)
>   else:
>      bb.fatal(msg)
> 
> which means we can have a strong default but advanced
> users/distros/whoever can avoid this.
Hi Richard, thanks very much for the explanation!

I'll make and test a new version like this.

Thanks,
-- Dexuan



More information about the bitbake-devel mailing list