aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-08-24 12:20:08 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-08-24 16:17:00 +1200
commit7372b68b2cb53e68073c29709952a98d7f77eeb8 (patch)
tree076c9403dbc492033b14eb1ad5bfd3f895454408 /ChangeLog
parent49c3fd2489867c09dec6919a25b53d935a8204bb (diff)
downloadbitbake-contrib-paule/fix-event-save-restore.tar.gz
parse/ast: ensure saved event handlers really do get restoredpaule/fix-event-save-restore
In finalize() we save event handlers, register the ones relevant to the recipe being finalised, trigger events, and then restore the handlers so that one recipe's custom handlers (actually implemented within a class inherited by the recipe) do not affect other recipes. However, if an exception occurs during parsing, the saved handlers were not being restored. Use a try...finally block to ensure that the handlers are always restored. This issue became apparent since in OpenEmbedded-Core we have recently introduced a find_intercepts() handler for the bb.event.RecipePreFinalise event in image-postinst-intercepts.bbclass that images and old-style SDK recipes will end up inheriting. So far it doesn't seem that the the error has manifested itself in normal builds, but when parsing OE-Core recipes in the OE layer index it has: core-image-rt-* image recipes were parsed which in the default configuration raise SkipRecipe. The next non-image recipe that is parsed will trigger a real exception, because the find_intercepts() handler is still registered and gets fired, but in the context of the new recipe the POSTINST_INTERCEPTS_PATHS variable is not set, and the code in find_intercepts() is written with the reasonable assumption that that isn't possible given that the class itself sets a default, and thus it fails. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'ChangeLog')
0 files changed, 0 insertions, 0 deletions