* [PATCH 0/1] base.bbclass: Fix dangling NATIVELSBSTRING
@ 2023-02-14 8:28 Robert Yang
2023-02-14 8:28 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 5+ messages in thread
From: Robert Yang @ 2023-02-14 8:28 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 0049f6757f6f956fb4cc77b3df6a672c20b53cf4:
oeqa qemurunner.py: try to avoid reading one character at a time (2023-02-10 09:25:41 +0000)
are available in the Git repository at:
https://git.openembedded.org/openembedded-core-contrib rbt/lsb
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/lsb
Robert Yang (1):
base.bbclass: Fix dangling NATIVELSBSTRING
meta/classes-global/base.bbclass | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
--
2.39.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] base.bbclass: Fix dangling NATIVELSBSTRING
2023-02-14 8:28 [PATCH 0/1] base.bbclass: Fix dangling NATIVELSBSTRING Robert Yang
@ 2023-02-14 8:28 ` Robert Yang
2023-02-14 8:44 ` [OE-core] " Richard Purdie
0 siblings, 1 reply; 5+ messages in thread
From: Robert Yang @ 2023-02-14 8:28 UTC (permalink / raw)
To: openembedded-core
Fixed:
$ rm -fr tmp; bitbake quilt-native -n
Build Configuration:
[snip]
NATIVELSBSTRING = "ubuntu-18.04"
[snip]
And when run bitbake again:
$ bitbake quilt-native -n
Build Configuration:
NATIVELSBSTRING = "universal"
It has been changed from ubuntu-18.04 to universal on the same host and build
directory, this is because it is overridded by NATIVELSBSTRING. This patch
makes it print the correct value.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
meta/classes-global/base.bbclass | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
index 64e805c947..cf42d9d4d2 100644
--- a/meta/classes-global/base.bbclass
+++ b/meta/classes-global/base.bbclass
@@ -226,7 +226,12 @@ BUILDCFG_FUNCS[type] = "list"
def buildcfg_vars(d):
statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
for var in statusvars:
- value = d.getVar(var)
+ # NATIVELSBSTRING var may have been overridden with "universal", so
+ # get actual host distribution id and version
+ if var == 'NATIVELSBSTRING':
+ value = lsb_distro_identifier(d)
+ else:
+ value = d.getVar(var)
if value is not None:
yield '%-20s = "%s"' % (var, value)
--
2.39.0
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [OE-core] [PATCH 1/1] base.bbclass: Fix dangling NATIVELSBSTRING
2023-02-14 8:28 ` [PATCH 1/1] " Robert Yang
@ 2023-02-14 8:44 ` Richard Purdie
2023-02-14 9:44 ` Robert Yang
0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2023-02-14 8:44 UTC (permalink / raw)
To: Robert Yang, openembedded-core
On Tue, 2023-02-14 at 00:28 -0800, Robert Yang wrote:
> Fixed:
> $ rm -fr tmp; bitbake quilt-native -n
> Build Configuration:
> [snip]
> NATIVELSBSTRING = "ubuntu-18.04"
> [snip]
>
> And when run bitbake again:
> $ bitbake quilt-native -n
> Build Configuration:
> NATIVELSBSTRING = "universal"
>
> It has been changed from ubuntu-18.04 to universal on the same host and build
> directory, this is because it is overridded by NATIVELSBSTRING. This patch
> makes it print the correct value.
>
> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
> ---
> meta/classes-global/base.bbclass | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
> index 64e805c947..cf42d9d4d2 100644
> --- a/meta/classes-global/base.bbclass
> +++ b/meta/classes-global/base.bbclass
> @@ -226,7 +226,12 @@ BUILDCFG_FUNCS[type] = "list"
> def buildcfg_vars(d):
> statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
> for var in statusvars:
> - value = d.getVar(var)
> + # NATIVELSBSTRING var may have been overridden with "universal", so
> + # get actual host distribution id and version
> + if var == 'NATIVELSBSTRING':
> + value = lsb_distro_identifier(d)
> + else:
> + value = d.getVar(var)
> if value is not None:
> yield '%-20s = "%s"' % (var, value)
The uninative code runs "late" and this is an known issue, there is an
open bug for it if I remember correctly.
I don't really want to put hacks into the BUILDCFG display code to work
around it since it is just going to make it less clear what is going on
and is also likely to break if we evern change the way NATIVELSBSTRING
is set. If you really don't like this, we should fix it properly some
other way rather than work around it.
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [OE-core] [PATCH 1/1] base.bbclass: Fix dangling NATIVELSBSTRING
2023-02-14 8:44 ` [OE-core] " Richard Purdie
@ 2023-02-14 9:44 ` Robert Yang
0 siblings, 0 replies; 5+ messages in thread
From: Robert Yang @ 2023-02-14 9:44 UTC (permalink / raw)
To: Richard Purdie, openembedded-core
Hi RP,
On 2/14/23 16:44, Richard Purdie wrote:
> On Tue, 2023-02-14 at 00:28 -0800, Robert Yang wrote:
>> Fixed:
>> $ rm -fr tmp; bitbake quilt-native -n
>> Build Configuration:
>> [snip]
>> NATIVELSBSTRING = "ubuntu-18.04"
>> [snip]
>>
>> And when run bitbake again:
>> $ bitbake quilt-native -n
>> Build Configuration:
>> NATIVELSBSTRING = "universal"
>>
>> It has been changed from ubuntu-18.04 to universal on the same host and build
>> directory, this is because it is overridded by NATIVELSBSTRING. This patch
>> makes it print the correct value.
>>
>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>> ---
>> meta/classes-global/base.bbclass | 7 ++++++-
>> 1 file changed, 6 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/classes-global/base.bbclass b/meta/classes-global/base.bbclass
>> index 64e805c947..cf42d9d4d2 100644
>> --- a/meta/classes-global/base.bbclass
>> +++ b/meta/classes-global/base.bbclass
>> @@ -226,7 +226,12 @@ BUILDCFG_FUNCS[type] = "list"
>> def buildcfg_vars(d):
>> statusvars = oe.data.typed_value('BUILDCFG_VARS', d)
>> for var in statusvars:
>> - value = d.getVar(var)
>> + # NATIVELSBSTRING var may have been overridden with "universal", so
>> + # get actual host distribution id and version
>> + if var == 'NATIVELSBSTRING':
>> + value = lsb_distro_identifier(d)
>> + else:
>> + value = d.getVar(var)
>> if value is not None:
>> yield '%-20s = "%s"' % (var, value)
>
> The uninative code runs "late" and this is an known issue, there is an
> open bug for it if I remember correctly.
>
> I don't really want to put hacks into the BUILDCFG display code to work
> around it since it is just going to make it less clear what is going on
> and is also likely to break if we evern change the way NATIVELSBSTRING
> is set. If you really don't like this, we should fix it properly some
> other way rather than work around it.
I'd like to drop the patch since it doesn't affect the build.
// Robert
>
> Cheers,
>
> Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 0/1] base.bbclass: Fix dangling NATIVELSBSTRING
@ 2021-01-06 12:04 Robert Yang
0 siblings, 0 replies; 5+ messages in thread
From: Robert Yang @ 2021-01-06 12:04 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 23cb39a5fa2a55681e7bc2605f435135cec9173b:
diffstat: point the license checksum at the license (2021-01-05 13:48:07 +0000)
are available in the Git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/lsb
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/lsb
Robert Yang (1):
base.bbclass: Fix dangling NATIVELSBSTRING
meta/classes/base.bbclass | 2 ++
1 file changed, 2 insertions(+)
--
2.17.1
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-02-14 9:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-14 8:28 [PATCH 0/1] base.bbclass: Fix dangling NATIVELSBSTRING Robert Yang
2023-02-14 8:28 ` [PATCH 1/1] " Robert Yang
2023-02-14 8:44 ` [OE-core] " Richard Purdie
2023-02-14 9:44 ` Robert Yang
-- strict thread matches above, loose matches on Subject: below --
2021-01-06 12:04 [PATCH 0/1] " Robert Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox