From: Robert Yang Date: Mon, 17 Nov 2025 01:23:02 +0000 (-0800) Subject: buildhistory.bbclass: Warn when PRSERV_HOST is not enabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c446d5badd404c852037a7159bb089ebd489cf20;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git buildhistory.bbclass: Warn when PRSERV_HOST is not enabled The version-going-backwards check may fail without PRServer, and it's not easy to debug, so warn for that. Signed-off-by: Robert Yang Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 78037a6462..ab23680211 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -57,6 +57,13 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" PATCH_GIT_USER_NAME ?= "OpenEmbedded" +python() { + warn_qa = d.getVar('WARN_QA') + error_qa = d.getVar('ERROR_QA') + if ('version-going-backwards' in warn_qa + error_qa) and not d.getVar('PRSERV_HOST'): + bb.warn('PRServer is not enabled, version-going-backwards check may fail!') +} + # # Write out the contents of the sysroot #