buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
cover buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
From: Robert Yang <[email protected]>
The following changes since commit e556df28f47e754b53e1f46c97dde2b19fd8fad1:
tcp-wrappers: Remove support (2025-11-10 17:56:48 +0000)
are available in the Git repository at:
https://github.com/robertlinux/yocto rbt/warn
https://github.com/robertlinux/yocto/tree/rbt/warn
Robert Yang (1):
buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
meta/classes/buildhistory.bbclass | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
2.49.0
PATCH 1/1 buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
From: Robert Yang <[email protected]>
The version-going-backwards check may fail without PRServer, and it's not easy to debug, so warn for that.
--- meta/classes/buildhistory.bbclass | 5 +++++ 1 file changed, 5 insertions(+)
meta/classes/buildhistory.bbclass +5 -0
@@ -57,6 +57,11 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" PATCH_GIT_USER_NAME ?= "OpenEmbedded" +python() { + if not d.getVar('PRSERV_HOST'): + bb.warn('PRServer is not enabled, version-going-backwards check may fail!') +} + # # Write out the contents of the sysroot #
Signature · 1 line
2.49.0
Quoted 18 lines · Robert Yang via lists.openembedded.org
From: Robert Yang <[email protected]>
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 <[email protected]>---
meta/classes/buildhistory.bbclass | 5 +++++1 file changed, 5 insertions(+)meta/classes/buildhistory.bbclass +0
-0@@ -57,6 +57,11 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot"PATCH_GIT_USER_EMAIL ?= "buildhistory@oe"
PATCH_GIT_USER_NAME ?= "OpenEmbedded"
meta/classes/buildhistory.bbclass BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" · line 64
Quoted 5 lines
meta/classes/buildhistory.bbclass +5
-0+python() { + if not d.getVar('PRSERV_HOST'): + bb.warn('PRServer is not enabled, version-going-backwards check may fail!') +} +
Shouldn't this be conditional on that test being enabled?
Cheers,
Richard
Quoted 19 lines · Richard Purdie
Quoted 18 lines · Robert Yang via lists.openembedded.org
From: Robert Yang <[email protected]>
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 <[email protected]>--- meta/classes/buildhistory.bbclass | 5 +++++ 1 file changed, 5 insertions(+)meta/classes/buildhistory.bbclass +0
-0@@ -57,6 +57,11 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" PATCH_GIT_USER_NAME ?= "OpenEmbedded"
Quoted 8 lines
meta/classes/buildhistory.bbclass BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" · line 64
Quoted 5 lines
meta/classes/buildhistory.bbclass +5
-0+python() { + if not d.getVar('PRSERV_HOST'): + bb.warn('PRServer is not enabled, version-going-backwards check may fail!') +} +Shouldn't this be conditional on that test being enabled?
Yes, you're right, I will send a V2 for it.
// Robert
Quoted 4 lines
Cheers,
Richard