From: Angelo.Ribeiro Date: Mon, 23 Dec 2024 16:24:34 +0000 (+0000) Subject: report-error: Add PN to error report file X-Git-Tag: uninative-4.7~486 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2d54fa0c5ade523edf6be9105c6e943824988fa;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git report-error: Add PN to error report file Extracting the PN out of the PF value is not allways trivial. For example when PE is set the package name will have the PE value before the '_' that clearly makes the division between name and version. Other packages include a number in their naming separated by a '-', for example mozjs-115 and openjdk-17. Signed-off-by: Angelo Ribeiro Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes/report-error.bbclass b/meta/classes/report-error.bbclass index 1452513a66b..2b880c8b0c7 100644 --- a/meta/classes/report-error.bbclass +++ b/meta/classes/report-error.bbclass @@ -81,6 +81,7 @@ python errorreport_handler () { task = e.task taskdata={} log = e.data.getVar('BB_LOGFILE') + taskdata['recipe'] = e.data.expand("${PN}") taskdata['package'] = e.data.expand("${PF}") taskdata['task'] = task if log: