]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 17 Nov 2025 01:23:02 +0000 (17:23 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 22 Jan 2026 14:21:52 +0000 (14:21 +0000)
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 <liezhi.yang@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index 78037a64622b411f9fe639050250de79bdac7574..ab23680211a7560ff4c8bbc61df4b7a73653daf5 100644 (file)
@@ -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
 #