* [PATCH 0/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
@ 2025-11-16 12:18 liezhi.yang
2025-11-16 12:18 ` [PATCH 1/1] " liezhi.yang
0 siblings, 1 reply; 4+ messages in thread
From: liezhi.yang @ 2025-11-16 12:18 UTC (permalink / raw)
To: openembedded-core
From: Robert Yang <liezhi.yang@windriver.com>
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(+)
--
2.49.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
2025-11-16 12:18 [PATCH 0/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled liezhi.yang
@ 2025-11-16 12:18 ` liezhi.yang
2025-11-16 16:27 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 4+ messages in thread
From: liezhi.yang @ 2025-11-16 12:18 UTC (permalink / raw)
To: openembedded-core
From: Robert Yang <liezhi.yang@windriver.com>
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>
---
meta/classes/buildhistory.bbclass | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 4a380c10c6..859fded472 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -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
#
--
2.49.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH 1/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
2025-11-16 12:18 ` [PATCH 1/1] " liezhi.yang
@ 2025-11-16 16:27 ` Richard Purdie
2025-11-17 1:22 ` Robert Yang
0 siblings, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2025-11-16 16:27 UTC (permalink / raw)
To: liezhi.yang, openembedded-core
On Sun, 2025-11-16 at 04:18 -0800, Robert Yang via lists.openembedded.org wrote:
> From: Robert Yang <liezhi.yang@windriver.com>
>
> 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>
> ---
> meta/classes/buildhistory.bbclass | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
> index 4a380c10c6..859fded472 100644
> --- a/meta/classes/buildhistory.bbclass
> +++ b/meta/classes/buildhistory.bbclass
> @@ -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!')
> +}
> +
Shouldn't this be conditional on that test being enabled?
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH 1/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled
2025-11-16 16:27 ` [OE-core] " Richard Purdie
@ 2025-11-17 1:22 ` Robert Yang
0 siblings, 0 replies; 4+ messages in thread
From: Robert Yang @ 2025-11-17 1:22 UTC (permalink / raw)
To: Richard Purdie, openembedded-core
On 11/17/25 12:27 AM, Richard Purdie wrote:
> On Sun, 2025-11-16 at 04:18 -0800, Robert Yang via lists.openembedded.org wrote:
>> From: Robert Yang <liezhi.yang@windriver.com>
>>
>> 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>
>> ---
>> meta/classes/buildhistory.bbclass | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
>> index 4a380c10c6..859fded472 100644
>> --- a/meta/classes/buildhistory.bbclass
>> +++ b/meta/classes/buildhistory.bbclass
>> @@ -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!')
>> +}
>> +
>
>
> Shouldn't this be conditional on that test being enabled?
Yes, you're right, I will send a V2 for it.
// Robert
>
> Cheers,
>
> Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-11-17 1:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-16 12:18 [PATCH 0/1] buildhistory.bbclass: Warn when PRSERV_HOST is not enabled liezhi.yang
2025-11-16 12:18 ` [PATCH 1/1] " liezhi.yang
2025-11-16 16:27 ` [OE-core] " Richard Purdie
2025-11-17 1:22 ` Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox