Skip to contentSkip to conversation

buildhistory.bbclass: Warn when PRSERV_HOST is not enabled

PATCH Superseded [email protected] 2 participants 4 messages Nov 16, 2025 – Nov 17, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 4a380c10c6..859fded472 100644
@@ -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
#2 lore raw
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.

---
 meta/classes/buildhistory.bbclass | 5 +++++

 1 file changed, 5 insertions(+)
meta/classes/buildhistory.bbclass +0 -0
index 4a380c10c6..859fded472 100644
@@ -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

#3 lore raw
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.

---
  meta/classes/buildhistory.bbclass | 5 +++++
  1 file changed, 5 insertions(+)
meta/classes/buildhistory.bbclass +0 -0
index 4a380c10c6..859fded472 100644
@@ -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