On Tue, May 30, 2023 at 4:23 PM Richard Purdie
<[email protected]> wrote:
>
> On Tue, 2023-05-30 at 15:41 -0500, Joshua Watt wrote:
> > emit_pkgdata needs to re-run when PKGDATA_VARS changes, but bitbake is
> > unaware of this because the code that uses it is in a python library.
> > Fix this by explicitly marking PKGDATA_VARS as a dependency
> >
> > Signed-off-by: Joshua Watt <[email protected]>
> > ---
> >  meta/classes-global/package.bbclass | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta/classes-global/package.bbclass 
> > b/meta/classes-global/package.bbclass
> > index e8055a9cdc5..c466601266e 100644
> > --- a/meta/classes-global/package.bbclass
> > +++ b/meta/classes-global/package.bbclass
> > @@ -381,6 +381,7 @@ python emit_pkgdata() {
> >      import oe.packagedata
> >      oe.packagedata.emit_pkgdata(pkgfiles, d)
> >  }
> > +emit_pkgdata[vardeps] += "PKGDATA_VARS"
> >  emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime 
> > ${PKGDESTWORK}/runtime-reverse ${PKGDESTWORK}/runtime-rprovides 
> > ${PKGDESTWORK}/extended"
> >
> >  ldconfig_postinst_fragment() {
>
> Is the auto dependency code somehow breaking for that function?

It empirically seemed to not re-run the functions when I changed that
variable as part of a (now abandoned) way to fix the SPDX builds.

I thought the code scanner didn't go into library functions; or am I
mistaken there?

>
> Cheers,
>
> Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#181954): 
https://lists.openembedded.org/g/openembedded-core/message/181954
Mute This Topic: https://lists.openembedded.org/mt/99228649/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to