public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [OE-core][PATCH] classes-global/package: Ensure -src package is handled in signatures
@ 2026-04-09 15:46 Joshua Watt
  0 siblings, 0 replies; only message in thread
From: Joshua Watt @ 2026-04-09 15:46 UTC (permalink / raw)
  To: openembedded-core; +Cc: Joshua Watt

populate_packages() will automatically insert a -src package if
PACKAGE_DEBUG_SPLIT_STYLE is "debug-with-srcpkg", even if there is not
-src package in PACKAGES. However, when the -src package is not in
PACKAGES, it is not accounted for in the task signatures which results
in errors.

[YOCTO #16238]

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta/classes-global/package.bbclass | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/meta/classes-global/package.bbclass b/meta/classes-global/package.bbclass
index bd32a6ede5..e50a2e586e 100644
--- a/meta/classes-global/package.bbclass
+++ b/meta/classes-global/package.bbclass
@@ -443,6 +443,12 @@ PACKAGEVARS = "FILES RDEPENDS RRECOMMENDS SUMMARY DESCRIPTION RSUGGESTS RPROVIDE
 def gen_packagevar(d, pkgvars="PACKAGEVARS"):
     ret = []
     pkgs = (d.getVar("PACKAGES") or "").split()
+    # populate_packages will add a -src package if debug-with-srcpkg which must
+    # be replicated here
+    if d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-with-srcpkg':
+        src_pkg = "%s-src" % d.getVar("PN")
+        if src_pkg not in pkgs:
+            pkgs.append(src_pkg)
     vars = (d.getVar(pkgvars) or "").split()
     for v in vars:
         ret.append(v)
-- 
2.53.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-04-09 15:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-09 15:46 [OE-core][PATCH] classes-global/package: Ensure -src package is handled in signatures Joshua Watt

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