Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/1] icecc: calculate pn and bpn from FILE
@ 2025-06-03  8:58 Peter Suti
  2025-06-03  9:40 ` [OE-core] " Richard Purdie
       [not found] ` <18457EF875184E76.9693@lists.openembedded.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Suti @ 2025-06-03  8:58 UTC (permalink / raw)
  To: openembedded-core; +Cc: Peter Suti

Starting with Yocto Mickledore the PN and BPN variables are set to "no-pn"
at this point in the `use_icecc()` function, so instead we need to
re-parse them from the file again as a workaround otherwise icecc is broken.

Fixes: 3be00ad9052de ("bitbake.conf: Add BB_HASH_CODEPARSER_VALS")
Where "PN=nopn" is set to optimise the codeparser cache's size.

[0] https://lists.yoctoproject.org/g/yocto/topic/icecc_support_broken/103429714

Signed-off-by: Peter Suti <peter.suti@streamunlimited.com>
---
 meta/classes/icecc.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 8a48f2ad63..e3b07028b8 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -143,8 +143,8 @@ def use_icecc(bb,d):
     if icecc_is_cross_canadian(bb, d):
         return "no"
 
-    pn = d.getVar('PN')
-    bpn = d.getVar('BPN')
+    pn = bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'
+    bpn = oe.utils.prune_suffix(pn, d.getVar('SPECIAL_PKGSUFFIX').split(), d)
 
     # Enable/disable checks are made against BPN, because there is a good
     # chance that if icecc should be skipped for a recipe, it should be skipped
-- 
2.43.0



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

end of thread, other threads:[~2025-06-03 23:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-03  8:58 [PATCH 1/1] icecc: calculate pn and bpn from FILE Peter Suti
2025-06-03  9:40 ` [OE-core] " Richard Purdie
     [not found] ` <18457EF875184E76.9693@lists.openembedded.org>
2025-06-03  9:58   ` Richard Purdie
2025-06-03 11:01     ` Peter Suti
2025-06-03 21:55       ` Douglas Royds
2025-06-03 22:15         ` Richard Purdie
2025-06-03 23:23           ` Joshua Watt

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