diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-15 13:49:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-23 10:41:21 +0100 |
commit | 8679e29df13002f6c37d19511236e8879bba5681 (patch) | |
tree | b0b4ff2ffd0799495485cf1506fd669bd4d4bfda /meta | |
parent | 7594d55a1da7513c7d7f7b5af9cd9d618e7a94a5 (diff) | |
download | poky-8679e29df13002f6c37d19511236e8879bba5681.tar.gz |
sanity: Add error check for '%' in build path
It has been reported that '%' characters in build paths break with python
exceptions, probably due to confusion with python string escaping. Whilst it
is probably fixable, showing the user a human readable error is better given
it doesn't work.
[YOCTO #14282]
(From OE-Core rev: bcdadcc77ec4bf5aa46e16f6952ad05a2e7aeb84)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 31a3cf78452270131a657be45e76569515cff7ef)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/sanity.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass index 01c5434f0d..c450b37bf0 100644 --- a/meta/classes/sanity.bbclass +++ b/meta/classes/sanity.bbclass | |||
@@ -887,6 +887,8 @@ def check_sanity_everybuild(status, d): | |||
887 | 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.") | 887 | 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.") |
888 | if oeroot.find('@') != -1: | 888 | if oeroot.find('@') != -1: |
889 | 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.") | 889 | 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.") |
890 | if oeroot.find('%') != -1: | ||
891 | status.addresult("Error, you have an invalid character (%) in your COREBASE directory path which causes problems with python string formatting. Please move the installation to a directory which doesn't include any % characters.") | ||
890 | if oeroot.find(' ') != -1: | 892 | if oeroot.find(' ') != -1: |
891 | 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.") | 893 | 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.") |
892 | 894 | ||