Skip to content

RFC skipped recipe handling

Paul Eggleton bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2bitbake: track skipped packagesbitbake/lib/bb/cache.py bitbake/lib/bb/cooker.py bitbake/lib/bb/parse/ast.py+31 -93 replies
2/2bitbake-layers: handle skipped recipesbitbake/bin/bitbake-layers+19 -51 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] skipped recipe handling

I noticed bitbake-layers did not handle bbappends for skipped recipes properly (e.g. in Poky it complained that uclibc_git.bbappend did not match any recipe). Thus I added a mechanism to bitbake within cooker that lists skipped recipes and extended bitbake-layers to use it.

This (or something similar) will also be needed for improving the NoProvider error handling - ideally we should be reporting if the target being requested has been skipped and why. To this end the SkippedPackage class includes the reason and DEPENDS/RDEPENDS info (although at the moment RDEPENDS does not get populated). Some may prefer I remove the DEPENDS/RDEPENDS bits until the future patch where they are used, if so I wouldn't object to removing them.

I also considered adding to skiplist for BBMASKed-out recipes but on reflection I elected not to do so since I assumed we ought to be completely ignoring recipes that are masked out in this way.

Patch summary (these are against Poky but they apply cleanly with -p2 against bitbake master):

Paul Eggleton (2):
bitbake: track skipped packages
bitbake-layers: handle skipped recipes

 bitbake/bin/bitbake-layers  |   24 +++++++++++++++++++-----
 bitbake/lib/bb/cache.py     |   12 +++++++++---
 bitbake/lib/bb/cooker.py    |   16 ++++++++++++++++
 bitbake/lib/bb/parse/ast.py |   12 ++++++------
 4 files changed, 50 insertions(+), 14 deletions(-)
Signature · 1 line
1.7.4.1