public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific
@ 2024-09-05 20:21 Paul Barker
  2024-09-05 22:40 ` [OE-core] " Richard Purdie
       [not found] ` <17F27A4142F288D2.30374@lists.openembedded.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Paul Barker @ 2024-09-05 20:21 UTC (permalink / raw)
  To: openembedded-core; +Cc: Paul Barker

meta-ide-support:do_write_test_data dumps the bitbake data dictionary to
a file using export2json(). As this obviously includes the value of
MACHINE, and other MACHINE-specific variables, the recipe needs to be
marked as MACHINE-specific.

Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
---
 meta/recipes-core/meta/meta-ide-support.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb
index d85aa120c08b..7ed422ce4ddb 100644
--- a/meta/recipes-core/meta/meta-ide-support.bb
+++ b/meta/recipes-core/meta/meta-ide-support.bb
@@ -1,6 +1,7 @@
 SUMMARY = "Integrated Development Environment support"
 DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
 LICENSE = "MIT"
+PACKAGE_ARCH = "${MACHINE_ARCH}"
 
 DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native"
 RM_WORK_EXCLUDE += "${PN}"
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [OE-core] [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific
  2024-09-05 20:21 [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific Paul Barker
@ 2024-09-05 22:40 ` Richard Purdie
       [not found] ` <17F27A4142F288D2.30374@lists.openembedded.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2024-09-05 22:40 UTC (permalink / raw)
  To: paul.barker.ct, openembedded-core

On Thu, 2024-09-05 at 21:21 +0100, Paul Barker via lists.openembedded.org wrote:
> meta-ide-support:do_write_test_data dumps the bitbake data dictionary to
> a file using export2json(). As this obviously includes the value of
> MACHINE, and other MACHINE-specific variables, the recipe needs to be
> marked as MACHINE-specific.
> 
> Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
> ---
>  meta/recipes-core/meta/meta-ide-support.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb
> index d85aa120c08b..7ed422ce4ddb 100644
> --- a/meta/recipes-core/meta/meta-ide-support.bb
> +++ b/meta/recipes-core/meta/meta-ide-support.bb
> @@ -1,6 +1,7 @@
>  SUMMARY = "Integrated Development Environment support"
>  DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
>  LICENSE = "MIT"
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
>  
>  DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native"
>  RM_WORK_EXCLUDE += "${PN}"

Something about this is making our toolchain tests unhappy, e.g.:

https://valkyrie.yoctoproject.org/#/builders/42/builds/86/steps/12/logs/stdio

I've not looked into it at all, just reporting what we've need to fix
in order to be able to consider merging this.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific
       [not found] ` <17F27A4142F288D2.30374@lists.openembedded.org>
@ 2024-09-06 13:48   ` Richard Purdie
  2024-09-30 10:23     ` Paul Barker
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2024-09-06 13:48 UTC (permalink / raw)
  To: paul.barker.ct, openembedded-core

On Thu, 2024-09-05 at 23:40 +0100, Richard Purdie via lists.openembedded.org wrote:
> On Thu, 2024-09-05 at 21:21 +0100, Paul Barker via lists.openembedded.org wrote:
> > meta-ide-support:do_write_test_data dumps the bitbake data dictionary to
> > a file using export2json(). As this obviously includes the value of
> > MACHINE, and other MACHINE-specific variables, the recipe needs to be
> > marked as MACHINE-specific.
> > 
> > Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
> > ---
> >  meta/recipes-core/meta/meta-ide-support.bb | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb
> > index d85aa120c08b..7ed422ce4ddb 100644
> > --- a/meta/recipes-core/meta/meta-ide-support.bb
> > +++ b/meta/recipes-core/meta/meta-ide-support.bb
> > @@ -1,6 +1,7 @@
> >  SUMMARY = "Integrated Development Environment support"
> >  DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
> >  LICENSE = "MIT"
> > +PACKAGE_ARCH = "${MACHINE_ARCH}"
> >  
> >  DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native"
> >  RM_WORK_EXCLUDE += "${PN}"
> 
> Something about this is making our toolchain tests unhappy, e.g.:
> 
> https://valkyrie.yoctoproject.org/#/builders/42/builds/86/steps/12/logs/stdio
> 
> I've not looked into it at all, just reporting what we've need to fix
> in order to be able to consider merging this.

It can be fixed with:

diff --git a/meta/lib/oeqa/selftest/cases/meta_ide.py b/meta/lib/oeqa/selftest/cases/meta_ide.py
index ffe0d2604d1..5a17ca52ea1 100644
--- a/meta/lib/oeqa/selftest/cases/meta_ide.py
+++ b/meta/lib/oeqa/selftest/cases/meta_ide.py
@@ -20,8 +20,8 @@ class MetaIDE(OESelftestTestCase):
         bitbake('meta-ide-support')
         bitbake('build-sysroots -c build_native_sysroot')
         bitbake('build-sysroots -c build_target_sysroot')
-        bb_vars = get_bb_vars(['MULTIMACH_TARGET_SYS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
-        cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS']
+        bb_vars = get_bb_vars(['MACHINE_ARCH', 'TARGET_VENDOR', 'TARGET_OS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
+        cls.environment_script = 'environment-setup-%s%s-%s' % (bb_vars['MACHINE_ARCH'], bb_vars['TARGET_VENDOR'], bb_vars['TARGET_OS'])
         cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE']
         cls.environment_script_path = '%s/%s' % (cls.deploydir, cls.environment_script)
         cls.corebasedir = bb_vars['COREBASE']

Whether that is a good/right fix, I'm not sure...

Cheers,

Richard


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [OE-core] [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific
  2024-09-06 13:48   ` Richard Purdie
@ 2024-09-30 10:23     ` Paul Barker
  2024-10-15 12:21       ` Paul Barker
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Barker @ 2024-09-30 10:23 UTC (permalink / raw)
  To: Richard Purdie, Steve Sakoman, openembedded-core


[-- Attachment #1.1.1: Type: text/plain, Size: 3345 bytes --]

On 06/09/2024 14:48, Richard Purdie wrote:
> On Thu, 2024-09-05 at 23:40 +0100, Richard Purdie via lists.openembedded.org wrote:
>> On Thu, 2024-09-05 at 21:21 +0100, Paul Barker via lists.openembedded.org wrote:
>>> meta-ide-support:do_write_test_data dumps the bitbake data dictionary to
>>> a file using export2json(). As this obviously includes the value of
>>> MACHINE, and other MACHINE-specific variables, the recipe needs to be
>>> marked as MACHINE-specific.
>>>
>>> Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
>>> ---
>>>  meta/recipes-core/meta/meta-ide-support.bb | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb
>>> index d85aa120c08b..7ed422ce4ddb 100644
>>> --- a/meta/recipes-core/meta/meta-ide-support.bb
>>> +++ b/meta/recipes-core/meta/meta-ide-support.bb
>>> @@ -1,6 +1,7 @@
>>>  SUMMARY = "Integrated Development Environment support"
>>>  DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
>>>  LICENSE = "MIT"
>>> +PACKAGE_ARCH = "${MACHINE_ARCH}"
>>>  
>>>  DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native"
>>>  RM_WORK_EXCLUDE += "${PN}"
>>
>> Something about this is making our toolchain tests unhappy, e.g.:
>>
>> https://valkyrie.yoctoproject.org/#/builders/42/builds/86/steps/12/logs/stdio
>>
>> I've not looked into it at all, just reporting what we've need to fix
>> in order to be able to consider merging this.
> 
> It can be fixed with:
> 
> diff --git a/meta/lib/oeqa/selftest/cases/meta_ide.py b/meta/lib/oeqa/selftest/cases/meta_ide.py
> index ffe0d2604d1..5a17ca52ea1 100644
> --- a/meta/lib/oeqa/selftest/cases/meta_ide.py
> +++ b/meta/lib/oeqa/selftest/cases/meta_ide.py
> @@ -20,8 +20,8 @@ class MetaIDE(OESelftestTestCase):
>          bitbake('meta-ide-support')
>          bitbake('build-sysroots -c build_native_sysroot')
>          bitbake('build-sysroots -c build_target_sysroot')
> -        bb_vars = get_bb_vars(['MULTIMACH_TARGET_SYS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
> -        cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS']
> +        bb_vars = get_bb_vars(['MACHINE_ARCH', 'TARGET_VENDOR', 'TARGET_OS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
> +        cls.environment_script = 'environment-setup-%s%s-%s' % (bb_vars['MACHINE_ARCH'], bb_vars['TARGET_VENDOR'], bb_vars['TARGET_OS'])
>          cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE']
>          cls.environment_script_path = '%s/%s' % (cls.deploydir, cls.environment_script)
>          cls.corebasedir = bb_vars['COREBASE']
> 
> Whether that is a good/right fix, I'm not sure...
> 
> Cheers,
> 
> Richard
> 

Hi Richard, Steve,

I see this has been committed as 3be2bc8a9b0c in openembedded-core [1]
for master/Styhead. Thanks for fixing the test case and merging this.

We saw the same issue when running yocto-check-layer in Scarthgap, do
you think this is suitable for backporting?

[1]: https://git.openembedded.org/openembedded-core/commit/?id=3be2bc8a9b0c9d6a178329c8b451a6bedf255d6c

Thanks,

-- 
Paul Barker

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3577 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific
  2024-09-30 10:23     ` Paul Barker
@ 2024-10-15 12:21       ` Paul Barker
  2024-10-15 12:44         ` Steve Sakoman
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Barker @ 2024-10-15 12:21 UTC (permalink / raw)
  To: Richard Purdie, Steve Sakoman, openembedded-core


[-- Attachment #1.1.1: Type: text/plain, Size: 3546 bytes --]

On 30/09/2024 11:23, Paul Barker wrote:
> On 06/09/2024 14:48, Richard Purdie wrote:
>> On Thu, 2024-09-05 at 23:40 +0100, Richard Purdie via lists.openembedded.org wrote:
>>> On Thu, 2024-09-05 at 21:21 +0100, Paul Barker via lists.openembedded.org wrote:
>>>> meta-ide-support:do_write_test_data dumps the bitbake data dictionary to
>>>> a file using export2json(). As this obviously includes the value of
>>>> MACHINE, and other MACHINE-specific variables, the recipe needs to be
>>>> marked as MACHINE-specific.
>>>>
>>>> Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
>>>> ---
>>>>  meta/recipes-core/meta/meta-ide-support.bb | 1 +
>>>>  1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb
>>>> index d85aa120c08b..7ed422ce4ddb 100644
>>>> --- a/meta/recipes-core/meta/meta-ide-support.bb
>>>> +++ b/meta/recipes-core/meta/meta-ide-support.bb
>>>> @@ -1,6 +1,7 @@
>>>>  SUMMARY = "Integrated Development Environment support"
>>>>  DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
>>>>  LICENSE = "MIT"
>>>> +PACKAGE_ARCH = "${MACHINE_ARCH}"
>>>>  
>>>>  DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native"
>>>>  RM_WORK_EXCLUDE += "${PN}"
>>>
>>> Something about this is making our toolchain tests unhappy, e.g.:
>>>
>>> https://valkyrie.yoctoproject.org/#/builders/42/builds/86/steps/12/logs/stdio
>>>
>>> I've not looked into it at all, just reporting what we've need to fix
>>> in order to be able to consider merging this.
>>
>> It can be fixed with:
>>
>> diff --git a/meta/lib/oeqa/selftest/cases/meta_ide.py b/meta/lib/oeqa/selftest/cases/meta_ide.py
>> index ffe0d2604d1..5a17ca52ea1 100644
>> --- a/meta/lib/oeqa/selftest/cases/meta_ide.py
>> +++ b/meta/lib/oeqa/selftest/cases/meta_ide.py
>> @@ -20,8 +20,8 @@ class MetaIDE(OESelftestTestCase):
>>          bitbake('meta-ide-support')
>>          bitbake('build-sysroots -c build_native_sysroot')
>>          bitbake('build-sysroots -c build_target_sysroot')
>> -        bb_vars = get_bb_vars(['MULTIMACH_TARGET_SYS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
>> -        cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS']
>> +        bb_vars = get_bb_vars(['MACHINE_ARCH', 'TARGET_VENDOR', 'TARGET_OS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
>> +        cls.environment_script = 'environment-setup-%s%s-%s' % (bb_vars['MACHINE_ARCH'], bb_vars['TARGET_VENDOR'], bb_vars['TARGET_OS'])
>>          cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE']
>>          cls.environment_script_path = '%s/%s' % (cls.deploydir, cls.environment_script)
>>          cls.corebasedir = bb_vars['COREBASE']
>>
>> Whether that is a good/right fix, I'm not sure...
>>
>> Cheers,
>>
>> Richard
>>
> 
> Hi Richard, Steve,
> 
> I see this has been committed as 3be2bc8a9b0c in openembedded-core [1]
> for master/Styhead. Thanks for fixing the test case and merging this.
> 
> We saw the same issue when running yocto-check-layer in Scarthgap, do
> you think this is suitable for backporting?
> 
> [1]: https://git.openembedded.org/openembedded-core/commit/?id=3be2bc8a9b0c9d6a178329c8b451a6bedf255d6c
> 
> Thanks,
> 

Gentle ping on this - can the patch be backported to Scarthgap?

Thanks,

-- 
Paul Barker

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3577 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [OE-core] [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific
  2024-10-15 12:21       ` Paul Barker
@ 2024-10-15 12:44         ` Steve Sakoman
  0 siblings, 0 replies; 6+ messages in thread
From: Steve Sakoman @ 2024-10-15 12:44 UTC (permalink / raw)
  To: Paul Barker; +Cc: Richard Purdie, openembedded-core

On Tue, Oct 15, 2024 at 5:21 AM Paul Barker
<paul.barker.ct@bp.renesas.com> wrote:
>
> On 30/09/2024 11:23, Paul Barker wrote:
> > On 06/09/2024 14:48, Richard Purdie wrote:
> >> On Thu, 2024-09-05 at 23:40 +0100, Richard Purdie via lists.openembedded.org wrote:
> >>> On Thu, 2024-09-05 at 21:21 +0100, Paul Barker via lists.openembedded.org wrote:
> >>>> meta-ide-support:do_write_test_data dumps the bitbake data dictionary to
> >>>> a file using export2json(). As this obviously includes the value of
> >>>> MACHINE, and other MACHINE-specific variables, the recipe needs to be
> >>>> marked as MACHINE-specific.
> >>>>
> >>>> Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
> >>>> ---
> >>>>  meta/recipes-core/meta/meta-ide-support.bb | 1 +
> >>>>  1 file changed, 1 insertion(+)
> >>>>
> >>>> diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb
> >>>> index d85aa120c08b..7ed422ce4ddb 100644
> >>>> --- a/meta/recipes-core/meta/meta-ide-support.bb
> >>>> +++ b/meta/recipes-core/meta/meta-ide-support.bb
> >>>> @@ -1,6 +1,7 @@
> >>>>  SUMMARY = "Integrated Development Environment support"
> >>>>  DESCRIPTION = "Meta package for ensuring the build directory contains all appropriate toolchain packages for using an IDE"
> >>>>  LICENSE = "MIT"
> >>>> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> >>>>
> >>>>  DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native cmake-native autoconf-native automake-native meson-native intltool-native pkgconfig-native"
> >>>>  RM_WORK_EXCLUDE += "${PN}"
> >>>
> >>> Something about this is making our toolchain tests unhappy, e.g.:
> >>>
> >>> https://valkyrie.yoctoproject.org/#/builders/42/builds/86/steps/12/logs/stdio
> >>>
> >>> I've not looked into it at all, just reporting what we've need to fix
> >>> in order to be able to consider merging this.
> >>
> >> It can be fixed with:
> >>
> >> diff --git a/meta/lib/oeqa/selftest/cases/meta_ide.py b/meta/lib/oeqa/selftest/cases/meta_ide.py
> >> index ffe0d2604d1..5a17ca52ea1 100644
> >> --- a/meta/lib/oeqa/selftest/cases/meta_ide.py
> >> +++ b/meta/lib/oeqa/selftest/cases/meta_ide.py
> >> @@ -20,8 +20,8 @@ class MetaIDE(OESelftestTestCase):
> >>          bitbake('meta-ide-support')
> >>          bitbake('build-sysroots -c build_native_sysroot')
> >>          bitbake('build-sysroots -c build_target_sysroot')
> >> -        bb_vars = get_bb_vars(['MULTIMACH_TARGET_SYS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
> >> -        cls.environment_script = 'environment-setup-%s' % bb_vars['MULTIMACH_TARGET_SYS']
> >> +        bb_vars = get_bb_vars(['MACHINE_ARCH', 'TARGET_VENDOR', 'TARGET_OS', 'DEPLOY_DIR_IMAGE', 'COREBASE'])
> >> +        cls.environment_script = 'environment-setup-%s%s-%s' % (bb_vars['MACHINE_ARCH'], bb_vars['TARGET_VENDOR'], bb_vars['TARGET_OS'])
> >>          cls.deploydir = bb_vars['DEPLOY_DIR_IMAGE']
> >>          cls.environment_script_path = '%s/%s' % (cls.deploydir, cls.environment_script)
> >>          cls.corebasedir = bb_vars['COREBASE']
> >>
> >> Whether that is a good/right fix, I'm not sure...
> >>
> >> Cheers,
> >>
> >> Richard
> >>
> >
> > Hi Richard, Steve,
> >
> > I see this has been committed as 3be2bc8a9b0c in openembedded-core [1]
> > for master/Styhead. Thanks for fixing the test case and merging this.
> >
> > We saw the same issue when running yocto-check-layer in Scarthgap, do
> > you think this is suitable for backporting?
> >
> > [1]: https://git.openembedded.org/openembedded-core/commit/?id=3be2bc8a9b0c9d6a178329c8b451a6bedf255d6c
> >
> > Thanks,
> >
>
> Gentle ping on this - can the patch be backported to Scarthgap?

Yes, I've got it in my test queue now.

Steve


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-10-15 12:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-05 20:21 [master/scarthgap PATCH] meta-ide-support: Mark recipe as MACHINE-specific Paul Barker
2024-09-05 22:40 ` [OE-core] " Richard Purdie
     [not found] ` <17F27A4142F288D2.30374@lists.openembedded.org>
2024-09-06 13:48   ` Richard Purdie
2024-09-30 10:23     ` Paul Barker
2024-10-15 12:21       ` Paul Barker
2024-10-15 12:44         ` Steve Sakoman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox