summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDorinda <dorindabassey@gmail.com>2021-01-27 23:52:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-30 10:41:04 +0000
commitef208aaf0f05c478a3dbade3d2bfd3744f91d87e (patch)
tree7e6a304e99b01f990359210c391724336497946c /meta
parent3f1c05e14840ce0db9a8ca813dca0466520888d8 (diff)
downloadpoky-ef208aaf0f05c478a3dbade3d2bfd3744f91d87e.tar.gz
sanity.bbclass: check if PSEUDO_IGNORE_PATHS and ${S} overlap
added a sanity check for when PSEUDO_IGNORE_PATHS and ${S} overlap to avoid random failures generated. [YOCTO #14193] (From OE-Core rev: c5a6cc4146402620851e2a1f2b01d69989150ba2) Signed-off-by: Dorinda Bassey <dorindabassey@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index c6842ff549..34215ebfb2 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -710,6 +710,14 @@ def check_sanity_version_change(status, d):
710 if i and workdir.startswith(i): 710 if i and workdir.startswith(i):
711 status.addresult("You are building in a path included in PSEUDO_IGNORE_PATHS " + str(i) + " please locate the build outside this path.\n") 711 status.addresult("You are building in a path included in PSEUDO_IGNORE_PATHS " + str(i) + " please locate the build outside this path.\n")
712 712
713 # Check if PSEUDO_IGNORE_PATHS and ${S} overlap
714 pseudoignorepaths = d.getVar('PSEUDO_IGNORE_PATHS', expand=True).split(",")
715 sourcefile = d.getVar('S')
716 for i in pseudoignorepaths:
717 if i and sourcefile:
718 if sourcefile.startswith(i) or i.startswith(sourcefile):
719 status.addresult("a path included in PSEUDO_IGNORE_PATHS " + str(i) + " and ${S} (source files) path " + str(sourcefile) + " are overlapping each other, please set ${S} in your recipe to point to a different directory. \n")
720
713 # Some third-party software apparently relies on chmod etc. being suid root (!!) 721 # Some third-party software apparently relies on chmod etc. being suid root (!!)
714 import stat 722 import stat
715 suid_check_bins = "chown chmod mknod".split() 723 suid_check_bins = "chown chmod mknod".split()