From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Adam Blank <adam.blank.g@gmail.com>,
Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v2 2/4] package_pkgdata: fix typo to stop calling undefined function
Date: Thu, 16 Apr 2026 08:03:14 +0100 [thread overview]
Message-ID: <aa893eb861bf4dd18e3e84e6bbebdee3b0367d1b.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAFAffzwtCKC7HGtRptDoTDFUyCg4kYfkTGmYUCy3Atn-2TqWXA@mail.gmail.com>
On Sun, 2026-04-12 at 16:18 +0200, Adam Blank wrote:
> I've dug some more, as I couldn't come to terms with it ;-)
I'm certainly a bit concerned with what you found and have been wanting
to try and find time to understand what is going on. It would seem we
simply must not be calling that code path?
> I've got a fix and a reasoning behind it: when the typo is fixed, a
> new callable function is identified and treated as a dependency of
> 'do_package'. This in turn pulls in its dependency on
> 'PACKAGE_EXTRA_ARCHS' and the test must fail.
> The fix is simply about making sure, that
> 'package_populate_pkgdata_dir' has 'PACKAGE_EXTRA_ARCHS' and a few
> other variables in its 'vardepsexclude'.
That is a good find and would certainly explain the error.
> What bothered me was something else though. I could clearly see, how
> this part of code in 'package.bbclass' was based on
> 'staging.bbclass'. There is an identical chain of dependencies:
> - do_prepare_recipe_sysroot -> extend_recipe_sysroot -
> > staging_populate_sysroot_dir (referencing 'PACKAGE_EXTRA_ARCHS')
> - do_package -> package_prepare_pkgdata -
> > package_populate_pkgdata_dir (referencing 'PACKAGE_EXTRA_ARCHS')
That would bother me too and is a very good question.
> I couldn't believe that somehow 'do_package' had this issue, but
> 'do_prepare_recipe_sysroot' didn't (for no apparent reason). After an
> extremely long chase, I found 'extend_recipe_sysroot' in
> 'BB_BASEHASH_IGNORE_VARS'... Since this was more unexpected to me
> than the Spanish Inquisition, and has been there since 2017, I'd like
> to ask:
>
> - Is it truly justified for 'extend_recipe_sysroot' to have this sort
> of globally unique, special treatment?
> - Wouldn't it be better for it to be handled using the same mechanism
> that are applied to other functions?
Those are good questions. I suspect this:
* was done to make things a little easier on rebuilds if/as/when
that code changes
* was by 'design' in that it was anticipated that
extend_recipe_sysroot would be called from more places than it
may have ended up being called from
* may have predated the exclusion mechanisms being reliable
I'd not be against using more exclusions and moving it out of
BB_BASEHASH_IGNORE_VARS but we'd have to be very careful about the
potential new dependency chains and carefully audit them.
Cheers,
Richard
next prev parent reply other threads:[~2026-04-16 7:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-02 15:39 [PATCH v2 0/4] Slight code cleanup - remove dead code, fix typos, unify patterns Adam Blank
2026-04-02 15:39 ` [PATCH v2 1/4] lib/packagedata.py: slight improvement to code readability Adam Blank
2026-04-02 15:39 ` [PATCH v2 2/4] package_pkgdata: fix typo to stop calling undefined function Adam Blank
2026-04-03 8:00 ` [OE-core] " Mathieu Dubois-Briand
2026-04-03 10:32 ` Adam Blank
2026-04-03 11:31 ` Mathieu Dubois-Briand
2026-04-04 17:14 ` Adam Blank
2026-04-07 12:52 ` Mathieu Dubois-Briand
2026-04-12 14:18 ` Adam Blank
2026-04-16 7:03 ` Richard Purdie [this message]
2026-04-02 15:39 ` [PATCH v2 3/4] sstate: remove dead code and unify path operations Adam Blank
2026-04-02 15:39 ` [PATCH v2 4/4] package: update the comment block explaining 'emit_pkgdata' Adam Blank
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aa893eb861bf4dd18e3e84e6bbebdee3b0367d1b.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=adam.blank.g@gmail.com \
--cc=mathieu.dubois-briand@bootlin.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox