Skip to contentSkip to conversation

externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes

PATCH New Ola x Nilsson 1 participant 1 message Oct 4, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 externalsrc.bbclass: Set BB_DONT_CACHE for non-target recipes

BB_DONT_CACHE was not set for non-virtual recipes where PN != BPN, such as quilt-native. Recipes that do not set BBCLASSEXTEND should always have BB_DONT_CACHE set by externalsrc.

---
 meta/classes/externalsrc.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/externalsrc.bbclass +2 -2
index ad87d85f78..3618b99a86 100644
@@ -41,8 +41,8 @@ python () {
     # re-parsed so that the file-checksums function for do_compile is run every
     # time.
     bpn = d.getVar('BPN')
-    if bpn == d.getVar('PN'):
-        classextend = (d.getVar('BBCLASSEXTEND') or '').split()
+    classextend = (d.getVar('BBCLASSEXTEND') or '').split()
+    if bpn == d.getVar('PN') or not classextend:
         if (externalsrc or
                 ('native' in classextend and
                  d.getVar('EXTERNALSRC_pn-%s-native' % bpn)) or
Signature · 1 line
2.11.0