Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] packagegroup-core-base-utils: Make it machine specific
@ 2019-07-23 12:37 Ricardo Ribalda Delgado
  2019-07-25  4:15 ` Mittal, Anuj
  0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Ribalda Delgado @ 2019-07-23 12:37 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ricardo Ribalda Delgado

Recipe makes use of the variable MACHINE_FEATURES, which is machine
specific:

  ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "kbd", "", d)}

This patch avoids multiconfig errors such as:

ERROR: mc:qt5222:packagegroup-core-base-utils-1.0-r0 do_package_qa_setscene: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_package_qa_setscene(d)
     0003:
File: '/workdir/repo/poky/meta/classes/insane.bbclass', lineno: 1026, function: do_package_qa_setscene
     1022:SSTATETASKS += "do_package_qa"
     1023:do_package_qa[sstate-inputdirs] = ""
     1024:do_package_qa[sstate-outputdirs] = ""
     1025:python do_package_qa_setscene () {
 *** 1026:    sstate_setscene(d)
     1027:}
     1028:addtask do_package_qa_setscene
     1029:
     1030:python do_qa_staging() {

Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
---
 .../packagegroups/packagegroup-core-base-utils.bb               | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb b/meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb
index 611e0cafcc..935322cfe0 100644
--- a/meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb
+++ b/meta/recipes-extended/packagegroups/packagegroup-core-base-utils.bb
@@ -9,6 +9,8 @@ inherit packagegroup
 
 VIRTUAL-RUNTIME_vim ?= "vim-tiny"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 RDEPENDS_${PN} = "\
     base-passwd \
     bash \
-- 
2.20.1



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

* Re: [PATCH] packagegroup-core-base-utils: Make it machine specific
  2019-07-23 12:37 [PATCH] packagegroup-core-base-utils: Make it machine specific Ricardo Ribalda Delgado
@ 2019-07-25  4:15 ` Mittal, Anuj
  2019-07-25  7:22   ` Ricardo Ribalda Delgado
  0 siblings, 1 reply; 3+ messages in thread
From: Mittal, Anuj @ 2019-07-25  4:15 UTC (permalink / raw)
  To: openembedded-core@lists.openembedded.org, ricardo@ribalda.com

This is causing errors:

Parsing recipes...ERROR: /home/pokybuild/yocto-
worker/multilib/build/meta/recipes-extended/packagegroups/packagegroup-
core-base-utils.bb: Please ensure recipe /home/pokybuild/yocto-
worker/multilib/build/meta/recipes-extended/packagegroups/packagegroup-
core-base-utils.bb sets PACKAGE_ARCH before inherit packagegroup
ERROR: /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
extended/packagegroups/packagegroup-core-base-utils.bb: Please ensure
recipe /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
extended/packagegroups/packagegroup-core-base-utils.bb sets
PACKAGE_ARCH before inherit packagegroup
ERROR: /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
extended/packagegroups/packagegroup-core-base-utils.bb: Please ensure
recipe /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
extended/packagegroups/packagegroup-core-base-utils.bb sets
PACKAGE_ARCH before inherit packagegroup
done.

https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/879/steps/8/logs/step6b

Thanks,

Anuj

On Tue, 2019-07-23 at 14:37 +0200, Ricardo Ribalda Delgado wrote:
> Recipe makes use of the variable MACHINE_FEATURES, which is machine
> specific:
> 
>   ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "kbd", "", d)}
> 
> This patch avoids multiconfig errors such as:
> 
> ERROR: mc:qt5222:packagegroup-core-base-utils-1.0-r0
> do_package_qa_setscene: Error executing a python function in
> exec_python_func() autogenerated:
> 
> The stack trace of python calls that resulted in this
> exception/failure was:
> File: 'exec_python_func() autogenerated', lineno: 2, function:
> <module>
>      0001:
>  *** 0002:do_package_qa_setscene(d)
>      0003:
> File: '/workdir/repo/poky/meta/classes/insane.bbclass', lineno: 1026,
> function: do_package_qa_setscene
>      1022:SSTATETASKS += "do_package_qa"
>      1023:do_package_qa[sstate-inputdirs] = ""
>      1024:do_package_qa[sstate-outputdirs] = ""
>      1025:python do_package_qa_setscene () {
>  *** 1026:    sstate_setscene(d)
>      1027:}
>      1028:addtask do_package_qa_setscene
>      1029:
>      1030:python do_qa_staging() {
> 
> Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
> ---
>  .../packagegroups/packagegroup-core-base-utils.bb               | 2
> ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-
> base-utils.bb b/meta/recipes-extended/packagegroups/packagegroup-
> core-base-utils.bb
> index 611e0cafcc..935322cfe0 100644
> --- a/meta/recipes-extended/packagegroups/packagegroup-core-base-
> utils.bb
> +++ b/meta/recipes-extended/packagegroups/packagegroup-core-base-
> utils.bb
> @@ -9,6 +9,8 @@ inherit packagegroup
>  
>  VIRTUAL-RUNTIME_vim ?= "vim-tiny"
>  
> +PACKAGE_ARCH = "${MACHINE_ARCH}"
> +
>  RDEPENDS_${PN} = "\
>      base-passwd \
>      bash \
> -- 
> 2.20.1
> 

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

* Re: [PATCH] packagegroup-core-base-utils: Make it machine specific
  2019-07-25  4:15 ` Mittal, Anuj
@ 2019-07-25  7:22   ` Ricardo Ribalda Delgado
  0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Ribalda Delgado @ 2019-07-25  7:22 UTC (permalink / raw)
  To: Mittal, Anuj; +Cc: openembedded-core@lists.openembedded.org

Sorry about that, I did not catch that on my builder.

I have sent a v2 of the patch, please let me know if you prefer
instead a "patch to fix the patch".

Thanks!

On Thu, Jul 25, 2019 at 6:15 AM Mittal, Anuj <anuj.mittal@intel.com> wrote:
>
> This is causing errors:
>
> Parsing recipes...ERROR: /home/pokybuild/yocto-
> worker/multilib/build/meta/recipes-extended/packagegroups/packagegroup-
> core-base-utils.bb: Please ensure recipe /home/pokybuild/yocto-
> worker/multilib/build/meta/recipes-extended/packagegroups/packagegroup-
> core-base-utils.bb sets PACKAGE_ARCH before inherit packagegroup
> ERROR: /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
> extended/packagegroups/packagegroup-core-base-utils.bb: Please ensure
> recipe /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
> extended/packagegroups/packagegroup-core-base-utils.bb sets
> PACKAGE_ARCH before inherit packagegroup
> ERROR: /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
> extended/packagegroups/packagegroup-core-base-utils.bb: Please ensure
> recipe /home/pokybuild/yocto-worker/multilib/build/meta/recipes-
> extended/packagegroups/packagegroup-core-base-utils.bb sets
> PACKAGE_ARCH before inherit packagegroup
> done.
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/44/builds/879/steps/8/logs/step6b
>
> Thanks,
>
> Anuj
>
> On Tue, 2019-07-23 at 14:37 +0200, Ricardo Ribalda Delgado wrote:
> > Recipe makes use of the variable MACHINE_FEATURES, which is machine
> > specific:
> >
> >   ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "kbd", "", d)}
> >
> > This patch avoids multiconfig errors such as:
> >
> > ERROR: mc:qt5222:packagegroup-core-base-utils-1.0-r0
> > do_package_qa_setscene: Error executing a python function in
> > exec_python_func() autogenerated:
> >
> > The stack trace of python calls that resulted in this
> > exception/failure was:
> > File: 'exec_python_func() autogenerated', lineno: 2, function:
> > <module>
> >      0001:
> >  *** 0002:do_package_qa_setscene(d)
> >      0003:
> > File: '/workdir/repo/poky/meta/classes/insane.bbclass', lineno: 1026,
> > function: do_package_qa_setscene
> >      1022:SSTATETASKS += "do_package_qa"
> >      1023:do_package_qa[sstate-inputdirs] = ""
> >      1024:do_package_qa[sstate-outputdirs] = ""
> >      1025:python do_package_qa_setscene () {
> >  *** 1026:    sstate_setscene(d)
> >      1027:}
> >      1028:addtask do_package_qa_setscene
> >      1029:
> >      1030:python do_qa_staging() {
> >
> > Signed-off-by: Ricardo Ribalda Delgado <ricardo@ribalda.com>
> > ---
> >  .../packagegroups/packagegroup-core-base-utils.bb               | 2
> > ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/meta/recipes-extended/packagegroups/packagegroup-core-
> > base-utils.bb b/meta/recipes-extended/packagegroups/packagegroup-
> > core-base-utils.bb
> > index 611e0cafcc..935322cfe0 100644
> > --- a/meta/recipes-extended/packagegroups/packagegroup-core-base-
> > utils.bb
> > +++ b/meta/recipes-extended/packagegroups/packagegroup-core-base-
> > utils.bb
> > @@ -9,6 +9,8 @@ inherit packagegroup
> >
> >  VIRTUAL-RUNTIME_vim ?= "vim-tiny"
> >
> > +PACKAGE_ARCH = "${MACHINE_ARCH}"
> > +
> >  RDEPENDS_${PN} = "\
> >      base-passwd \
> >      bash \
> > --
> > 2.20.1
> >



-- 
Ricardo Ribalda


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

end of thread, other threads:[~2019-07-25  7:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-23 12:37 [PATCH] packagegroup-core-base-utils: Make it machine specific Ricardo Ribalda Delgado
2019-07-25  4:15 ` Mittal, Anuj
2019-07-25  7:22   ` Ricardo Ribalda Delgado

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