Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package: disable renamed dependency error if allarch is overridden
@ 2025-05-09 21:19 Oleksandr Hnatiuk
  2025-05-12  9:02 ` [OE-core] " Alexander Kanavin
  0 siblings, 1 reply; 16+ messages in thread
From: Oleksandr Hnatiuk @ 2025-05-09 21:19 UTC (permalink / raw)
  To: openembedded-core

allarch code is only triggered if PACKAGE_ARCH remains set to "all".
This is not the case under some circumstances, like in the case of
nativesdk class which overrides this variable. This error then breaks
nativesdk package groups which depend on renamed packages yet aren't
affected by allarch.

Signed-off-by: Oleksandr Hnatiuk <ohnatiuk@cisco.com>
---
 meta/lib/oe/packagedata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/packagedata.py b/meta/lib/oe/packagedata.py
index 2d1d6ddeb75e..2bc57b8c343c 100644
--- a/meta/lib/oe/packagedata.py
+++ b/meta/lib/oe/packagedata.py
@@ -138,7 +138,7 @@ def get_package_mapping(pkg, basepkg, d, depversions=None):
     key = "PKG:%s" % pkg
 
     if key in data:
-        if bb.data.inherits_class('allarch', d) and bb.data.inherits_class('packagegroup', d) and pkg != data[key]:
+        if d.getVar("PACKAGE_ARCH") == "all" and bb.data.inherits_class('packagegroup', d) and pkg != data[key]:
             bb.error("An allarch packagegroup shouldn't depend on packages which are dynamically renamed (%s to %s)" % (pkg, data[key]))
         # Have to avoid undoing the write_extra_pkgs(global_variants...)
         if bb.data.inherits_class('allarch', d) and not d.getVar('MULTILIB_VARIANTS') \
-- 
2.35.6



^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-07-26 22:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-09 21:19 [PATCH] package: disable renamed dependency error if allarch is overridden Oleksandr Hnatiuk
2025-05-12  9:02 ` [OE-core] " Alexander Kanavin
2025-05-12  9:31   ` Oleksandr Hnatiuk
2025-05-12  9:40     ` [OE-core] " Alexander Kanavin
2025-05-13 10:30       ` Oleksandr Hnatiuk
2025-05-14 13:16         ` [OE-core] " Alexander Kanavin
2025-05-14 15:35           ` Oleksandr Hnatiuk
2025-05-15 12:55             ` [OE-core] " Alexander Kanavin
2025-05-19 10:13               ` Oleksandr Hnatiuk
2025-05-19 10:24                 ` Oleksandr Hnatiuk
2025-05-20 13:06                   ` [OE-core] " Alexander Kanavin
2025-05-20 13:23                     ` Richard Purdie
2025-07-10 15:02                     ` Oleksandr Hnatiuk
2025-07-11 17:42                       ` [OE-core] " Alexander Kanavin
2025-07-25 19:24                         ` Oleksandr Hnatiuk
2025-07-26 22:00                           ` [OE-core] " Alexander Kanavin

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