summaryrefslogtreecommitdiffstats
path: root/meta/classes/sanity.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-25 18:08:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-27 10:04:50 +0100
commit4707a74db3822f5ad26e720fa47dd011c5d32a1c (patch)
tree96e9da7d72d0122018dc15cadadd3078d1adb8c7 /meta/classes/sanity.bbclass
parent8e9501ffa8726d69412d669580d787ffedb88d34 (diff)
downloadpoky-4707a74db3822f5ad26e720fa47dd011c5d32a1c.tar.gz
sanity.bbclass: Add check for @ character in build directory name
The @ character is not escaped properly in too many places within the system to easily support it so add the character to the list of blacklisted characters. Also tweak the other messages and ensure that all appropriate error messages are disabled in one go. [YOCTO #4772] (From OE-Core rev: 008cb3c501c8313a0a1a0ebce2b0aa61239b548d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sanity.bbclass')
-rw-r--r--meta/classes/sanity.bbclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 622bb41856..cf2398276e 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -589,10 +589,12 @@ def check_sanity_everybuild(status, d):
589 pass 589 pass
590 590
591 oeroot = d.getVar('COREBASE') 591 oeroot = d.getVar('COREBASE')
592 if oeroot.find ('+') != -1: 592 if oeroot.find('+') != -1:
593 status.addresult("Error, you have an invalid character (+) in your COREBASE directory path. Please move the installation to a directory which doesn't include a +.") 593 status.addresult("Error, you have an invalid character (+) in your COREBASE directory path. Please move the installation to a directory which doesn't include any + characters.")
594 elif oeroot.find (' ') != -1: 594 if oeroot.find('@') != -1:
595 status.addresult("Error, you have a space in your COREBASE directory path. Please move the installation to a directory which doesn't include a space.") 595 status.addresult("Error, you have an invalid character (@) in your COREBASE directory path. Please move the installation to a directory which doesn't include any @ characters.")
596 if oeroot.find(' ') != -1:
597 status.addresult("Error, you have a space in your COREBASE directory path. Please move the installation to a directory which doesn't include a space since autotools doesn't support this.")
596 598
597 # Check that TMPDIR hasn't changed location since the last time we were run 599 # Check that TMPDIR hasn't changed location since the last time we were run
598 tmpdir = d.getVar('TMPDIR', True) 600 tmpdir = d.getVar('TMPDIR', True)