Hello Alexander,

On Thu, 20 Jan 2022 15:37:26 +0100
Alexander Kanavin <alex.kana...@gmail.com> wrote:

> Can we rather make a dependency on the task that prepares the sysroot,
> instead of listing the dependencies one by one (with anonymous python too!)?

Thanks for the review,
I do not understand your comments as the make_icudata is before the
configuration task.
Could you be more explicit or use an example?

Regards,

Köry

> 
> Alex
> 
> On Thu, 20 Jan 2022 at 15:32, Kory Maincent <kory.mainc...@bootlin.com>
> wrote:
> 
> > The make_icudata task is set before the configure task then the
> > dependencies for this task are not populate yet.
> >
> > Fixed it by setting autoconf, automake and ccache native dependencies
> > to this task.
> >
> > Signed-off-by: Kory Maincent <kory.mainc...@bootlin.com>
> > ---
> >  meta/recipes-support/icu/icu_70.1.bb | 8 ++++++++
> >  1 file changed, 8 insertions(+)
> >
> > diff --git a/meta/recipes-support/icu/icu_70.1.bb
> > b/meta/recipes-support/icu/icu_70.1.bb
> > index 0988ae8b8e..ae985bca4f 100644
> > --- a/meta/recipes-support/icu/icu_70.1.bb
> > +++ b/meta/recipes-support/icu/icu_70.1.bb
> > @@ -123,6 +123,14 @@ EXTRA_OECONF:append:libc-musl = "
> > ac_cv_func_strtod_l=no"
> >  PACKAGECONFIG ?= ""
> >  PACKAGECONFIG[make-icudata] = ",,,"
> >
> > +# Add dependencies to make_icudata
> > +do_make_icudata[depends] = "autoconf-native:do_populate_sysroot
> > automake-native:do_populate_sysroot"
> > +python() {
> > +    if not (bb.data.inherits_class("native", d) or
> > +            bb.utils.to_boolean(d.getVar('CCACHE_DISABLE'))):
> > +        d.appendVarFlag('do_make_icudata', 'depends', '
> > ccache-native:do_populate_sysroot')
> > +}
> > +
> >  do_make_icudata:class-target () {
> >      ${@bb.utils.contains('PACKAGECONFIG', 'make-icudata', '', 'exit 0',
> > d)}
> >      cd ${S}
> > --
> > 2.25.1
> >
> >  

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#160765): 
https://lists.openembedded.org/g/openembedded-core/message/160765
Mute This Topic: https://lists.openembedded.org/mt/88559548/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to