From: AshishKumar Mishra <emailaddress.ashish@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: AshishKumar Mishra <emailaddress.ashish@gmail.com>
Subject: [scarthgap][PATCH] package.bbclass: fix execution order bug in emit_pkgdata
Date: Wed, 22 Jul 2026 17:41:19 +0530 [thread overview]
Message-ID: <20260722121119.888611-1-emailaddress.ashish@gmail.com> (raw)
emit_pkgdata was previously part of the PACKAGEFUNCS list.
Because other layers and recipes often append custom cleanup or processing
functions to PACKAGEFUNCS , those ended up running after
emit_pkgdata
To fix this, pull emit_pkgdata out of PACKAGEFUNCS and call it explicitly
at the very end of do_package() ensuring it always runs last.
(From OE-Core rev aa85baff9ebdd3f932811c3b43d1918c38373cb9)
Signed-off-by: AshishKumar Mishra <emailaddress.ashish@gmail.com>
---
meta/classes-global/package.bbclass | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index aa1eb5e901..ffe3ed93ef 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -468,8 +468,7 @@ PACKAGEFUNCS += " \
package_do_shlibs \
package_do_pkgconfig \
read_shlibdeps \
- package_depchains \
- emit_pkgdata"
+ package_depchains"
python do_package () {
# Change the following version to cause sstate to invalidate the package
@@ -561,9 +560,13 @@ python do_package () {
for file in files:
pkgfiles[pkg].append(walkroot + os.sep + file)
+
+ # We want emit_pkgdata to run last, after everything
for f in (d.getVar('PACKAGEFUNCS') or '').split():
bb.build.exec_func(f, d)
+ bb.build.exec_func("emit_pkgdata", d)
+
oe.qa.exit_if_errors(d)
}
--
2.43.0
next reply other threads:[~2026-07-22 12:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 12:11 AshishKumar Mishra [this message]
2026-07-22 12:15 ` [scarthgap][PATCH] package.bbclass: fix execution order bug in emit_pkgdata AshishKumar Mishra
2026-07-22 12:20 ` [OE-core] " Yoann Congal
2026-07-22 12:25 ` Ashish Mishra
2026-07-22 12:32 ` Yoann Congal
2026-07-22 12:38 ` Ashish Mishra
2026-07-24 10:26 ` AshishKumar Mishra
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=20260722121119.888611-1-emailaddress.ashish@gmail.com \
--to=emailaddress.ashish@gmail.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